File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 19
19
"branch" : " main" ,
20
20
"directories" : [" pandas" ],
21
21
"pylint_additional_args" : [" --ignore-patterns=\" test_" ],
22
- "url" : " https://github.com/pandas-dev/pandas.git "
22
+ "url" : " https://github.com/pandas-dev/pandas"
23
23
},
24
24
"psycopg" : {
25
25
"branch" : " master" ,
26
26
"directories" : [" psycopg/psycopg" ],
27
- "url" : " https://github.com/psycopg/psycopg.git "
27
+ "url" : " https://github.com/psycopg/psycopg"
28
28
},
29
29
"pygame" : {
30
30
"branch" : " main" ,
39
39
"sentry" : {
40
40
"branch" : " master" ,
41
41
"directories" : [" src/sentry" ],
42
- "url" : " https://github.com/getsentry/sentry.git "
42
+ "url" : " https://github.com/getsentry/sentry"
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -240,8 +240,10 @@ def _create_comment(
240
240
filepath = str (message ["path" ]).replace (
241
241
str (package_data .clone_directory ), ""
242
242
)
243
- without_suffix = package_data .url .rsplit (".git" )[0 ]
244
- comment += f"{ without_suffix } /blob/{ package_data .branch } { filepath } #L{ message ['line' ]} \n "
243
+ assert not package_data .url .endswith (
244
+ ".git"
245
+ ), "You don't need the .git at the end of the github url."
246
+ comment += f"{ package_data .url } /blob/{ package_data .branch } { filepath } #L{ message ['line' ]} \n "
245
247
count += 1
246
248
print (message )
247
249
if missing_messages :
You can’t perform that action at this time.
0 commit comments