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

Reference = assignee

Open RicoP opened this issue 3 years ago • 3 comments

I use the pattern

// TODO(RicoP) bla

very commonly to refer to a username. Is there a option to automatically add a reference to the assignees list?

RicoP avatar Dec 09 '21 14:12 RicoP

Not at the moment, but this is certainly doable. We can't treat references as assignees by default as the reference may not always be an assignee:

// TODO([email protected]): Use a "*" here for concatenation operator.
// TODO(Zeke) change this to use relations.
// TODO(bug 12345): remove the "Last visitors" feature.

However, the workflow file could take an optional input, say REFERENCE_ASSIGNEE, which if true would treat all references as assignees.

If you'd like to submit a PR feel free, otherwise I'll take a look when I get chance.

alstr avatar Dec 10 '21 15:12 alstr

As Google's Style Guide makes it ambiguous, I'd favor Conventional Commits' more precise use as scope reference. However, scope being defined as 'section of the codebase' there, I wonder if it could be that useful here.

Of course, a config toggle could be nice, but then you may find a chain of requests to have one for all possible usages. In which case, a config mapping option like reference: assignee or reference: issue may be better.

silopolis avatar Feb 10 '23 11:02 silopolis