todo-to-issue-action icon indicating copy to clipboard operation
todo-to-issue-action copied to clipboard

Scan all files the first time the action is run

Open ChocolateLoverRaj opened this issue 2 years ago • 1 comments

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:

  • If the file starting this workflow was created or modified in this commit
  • The file previously did not contain uses: alstr/[email protected]
  • All files in .github/workflows previously did not contain uses: alstr/[email protected]

ChocolateLoverRaj avatar Apr 09 '22 19:04 ChocolateLoverRaj

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 avatar Apr 11 '22 16:04 alstr

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.

alstr avatar Oct 27 '22 08:10 alstr