mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-25 07:16:42 +00:00
test: print message when issue URL has actually been inserted
Insertion of the URL is different from simply creating/updating the issue, so we want to have this level of output to ensure that as many file updates as expected are actually occurring. Note: The unit test is currently failing!
This commit is contained in:
1
main.py
1
main.py
@@ -84,6 +84,7 @@ def process_diff(diff, client=Client(), insert_issue_urls=False, parser=TodoPars
|
||||
file_lines.insert(line_number + 1, new_line)
|
||||
with open(raw_issue.file_name, 'w') as issue_file:
|
||||
issue_file.writelines(file_lines)
|
||||
print('Issue URL successfully inserted', file=output)
|
||||
elif status_code == 200:
|
||||
print(f'Issue updated: #{new_issue_number} @ {client.get_issue_url(new_issue_number)}', file=output)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user