@@ -2190,41 +2190,34 @@ def get_commits(
2190
2190
if limit :
2191
2191
params ["limit" ] = limit
2192
2192
return self ._get_paged (url , params = params )
2193
-
2194
- def get_commit_changes (
2195
- self ,
2196
- project_key ,
2197
- repository_slug ,
2198
- hash_newest = None ,
2199
- merges = "include" ,
2200
- commitId = None
2201
- ):
2193
+
2194
+ def get_commit_changes (self , project_key , repository_slug , hash_newest = None , merges = "include" , commit_id = None ):
2202
2195
"""
2203
2196
Get commit list from repo
2204
2197
:param project_key:
2205
2198
:param repository_slug:
2206
2199
:param hash_newest:
2207
2200
:param merges: OPTIONAL: include|exclude|only if present, controls how merge commits should be filtered.
2208
- :param commitId
2201
+ :param commit_id
2209
2202
:return:
2210
2203
"""
2211
- url = self ._url_commit_c (project_key , repository_slug , commitId = commitId )
2204
+ url = self ._url_commit_c (project_key , repository_slug , commit_id = commit_id )
2212
2205
params = {"merges" : merges }
2213
2206
if hash_newest :
2214
2207
params ["until" ] = hash_newest
2215
2208
return self .get (url , params = params )
2216
-
2217
- def _url_commit_c (self , project_key , repository_slug , api_root = None , api_version = None , commitId = None ):
2209
+
2210
+ def _url_commit_c (self , project_key , repository_slug , api_root = None , api_version = None , commit_id = None ):
2218
2211
return "{}/commits/{}/changes" .format (
2219
2212
self ._url_repo (
2220
2213
project_key ,
2221
2214
repository_slug ,
2222
2215
api_root = api_root ,
2223
2216
api_version = api_version ,
2224
2217
),
2225
- commitId
2218
+ commit_id ,
2226
2219
)
2227
-
2220
+
2228
2221
def _url_commit (
2229
2222
self ,
2230
2223
project_key ,
@@ -2347,7 +2340,7 @@ def get_code_insights_report(self, project_key, repository_slug, commit_id, repo
2347
2340
Retrieve the specified code-insights report.
2348
2341
:projectKey: str
2349
2342
:repositorySlug: str
2350
- :commitId : str
2343
+ :commit_id : str
2351
2344
:report_key: str
2352
2345
"""
2353
2346
url = self ._url_code_insights_report (project_key , repository_slug , commit_id , report_key )
@@ -2358,7 +2351,7 @@ def delete_code_insights_report(self, project_key, repository_slug, commit_id, r
2358
2351
Delete a report for the given commit. Also deletes any annotations associated with this report.
2359
2352
:projectKey: str
2360
2353
:repositorySlug: str
2361
- :commitId : str
2354
+ :commit_id : str
2362
2355
:report_key: str
2363
2356
"""
2364
2357
url = self ._url_code_insights_report (project_key , repository_slug , commit_id , report_key )
0 commit comments