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 1919 "branch" : " main" ,
2020 "directories" : [" pandas" ],
2121 "pylint_additional_args" : [" --ignore-patterns=\" test_" ],
22- "url" : " https://github.com/pandas-dev/pandas.git "
22+ "url" : " https://github.com/pandas-dev/pandas"
2323 },
2424 "psycopg" : {
2525 "branch" : " master" ,
2626 "directories" : [" psycopg/psycopg" ],
27- "url" : " https://github.com/psycopg/psycopg.git "
27+ "url" : " https://github.com/psycopg/psycopg"
2828 },
2929 "pygame" : {
3030 "branch" : " main" ,
3939 "sentry" : {
4040 "branch" : " master" ,
4141 "directories" : [" src/sentry" ],
42- "url" : " https://github.com/getsentry/sentry.git "
42+ "url" : " https://github.com/getsentry/sentry"
4343 }
4444}
Original file line number Diff line number Diff line change @@ -240,8 +240,10 @@ def _create_comment(
240240 filepath = str (message ["path" ]).replace (
241241 str (package_data .clone_directory ), ""
242242 )
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 "
245247 count += 1
246248 print (message )
247249 if missing_messages :
You can’t perform that action at this time.
0 commit comments