alstr / todo-to-issue-action

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

Label TODO is being appended to issue though alternative labels specified #172

Closed mraht closed 2 months ago

mraht commented 10 months ago

In an ABAP test report I use the following line to specify a TODO: ##FIX " Fix wrong number (0001 > 0003) "assignees: mraht

This generates the following issues: image

As one can see from the screenshot an additional TODO flag is being added though I defined default flags: IDENTIFIERS: '[{"name": "NEW", "labels": ["new"]}, {"name": "FIX", "labels": ["bug"]}, {"name": "OPT", "labels": ["opt"]}]'

alstr commented 10 months ago

Hi. Thanks for the report. The todo label is automatically appended regardless of any custom labels as it is used by the action to check for any existing issues that it has created previously, to help avoid duplication. It might not be an ideal scenario but it's the way things work as it stands.

https://github.com/alstr/todo-to-issue-action/blob/5c97b3cb39d2d868453245e62bccc9a022b6d680/main.py#L97