alstr / todo-to-issue-action

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

Scan all files the first time the action is run #112

Closed ChocolateLoverRaj closed 2 years ago

ChocolateLoverRaj commented 2 years ago

I added this action to my repository which has existing TODO comments. Because those files weren't diff, it did not create any issues from those TODOs. It would be nice if the action recognized that it was being added for the first time, and then scanned all files if it's the first time.

Here are some ways I can think of to know if it's the first time:

alstr commented 2 years ago

Thanks for the suggestion. It could potentially be a slow operation and we'd need to update how parts of the action work. It's not impossible though. If anyone wants to work on it that would be great, otherwise I'll look into it more when I get chance.

alstr commented 2 years ago

I've added the ability to manually run the action to target either a commit range or a specific commit. Hopefully that should help with this scenario; it's the most straightforward solution I could come up with. It'll be released in the next version.