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

How to fail the build if TODO has incorrect format?

Open dgroup opened this issue 2 years ago • 1 comments

How to force developers to use such a format of TODO items using indentation and expected tags like labels, assignees, etc.:

        # TODO Come up with a more imaginative greeting
        #  Everyone uses hello world and it's boring.
        #  labels: enhancement, help wanted
        #  assignees: alstr, bouteillerAlan, hbjydev
        #  milestone: 1

? Is it possible to fail workflow if todo has the wrong/unsupported format?

dgroup avatar Apr 17 '22 12:04 dgroup

At the moment, the action ignores any options specified other than labels, assignees, etc. Would you want it to fail if someone included something like label instead of labels? The indentation is helpful but I don't think there is a problem if it's not followed exactly.

In terms of the actual labels, there isn't really an incorrect format here. If someone included labels: enhancement bug, forgetting a comma, it would be hard to detect that because theoretically there could be a single label called 'enhancement bug'.

Assignees and milestones get silently dropped if they don't already exist. Would you want it to fail in those situations?

alstr avatar Apr 21 '22 12:04 alstr

Closing due to inactivity but please reply if you have more to add.

alstr avatar Oct 27 '22 11:10 alstr