Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference = assignee #94

Open
RicoP opened this issue Dec 9, 2021 · 2 comments
Open

Reference = assignee #94

RicoP opened this issue Dec 9, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@RicoP
Copy link

RicoP commented Dec 9, 2021

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?

@alstr
Copy link
Owner

alstr commented Dec 10, 2021

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(kl@gmail.com): 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 alstr added the enhancement New feature or request label Dec 10, 2021
@silopolis
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants