alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
630 stars 121 forks source link

Content of issue for multi-line todos #90

Closed mbtools closed 1 month ago

mbtools commented 2 years ago

If a comment spans multiple lines, extend the link in the issue accordingly. It should end in Lxxx-Lyyy.

Should be easy to add by calculating the number of lines and appending the URL here:

https://github.com/alstr/todo-to-issue-action/blob/master/main.py#L117

Example Issue:

https://github.com/mbtools/TEST-Todo-to-Issue/issues/3

Change the link from https://github.com/mbtools/TEST-Todo-to-Issue/blob/13691e69ea7ca5fc58ad620ff98bdcaedb64ff73/src/ztest_todo_4.prog.abap#L5 to https://github.com/mbtools/TEST-Todo-to-Issue/blob/13691e69ea7ca5fc58ad620ff98bdcaedb64ff73/src/ztest_todo_4.prog.abap#L5-L7

mbtools commented 1 month ago

Nice. Thank you 🙏