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

PR login name for google-readability-todo #102

Closed
bwrsandman opened this issue Nov 23, 2023 · 2 comments · Fixed by #106
Closed

PR login name for google-readability-todo #102

bwrsandman opened this issue Nov 23, 2023 · 2 comments · Fixed by #106

Comments

@bwrsandman
Copy link
Contributor

It would be useful if the PR author's username was used for the suggested fix of google-readability-todo.
Currently it has unknown.
image

Clang-tidy gets the name from the USER environment variable, the config parameter and the config files.
This is how I would do it if it wasn't in a container.
USER: ${{ github.event.pull_request.user.login }}

@ZedThree
Copy link
Owner

Should be possible to pass that in as an argument?

@bwrsandman
Copy link
Contributor Author

Should be able to do this with the github api and setting the docker's env without needing an argument.

I don't see why we'd want an argument for this unless users prefer using something else than login

bwrsandman added a commit to bwrsandman/clang-tidy-review that referenced this issue Jan 16, 2024
Improves the recommendation for `google-readability-todo` by providing a
proper name which would previously be `TODO(docker)` or `TODO(unknown)`.

If for whatever reason, the name cannot be found, it will default to
`TODO(your name here)`.

Implements ZedThree#102 without the need for a new parameter.
bwrsandman added a commit to bwrsandman/clang-tidy-review that referenced this issue Jan 16, 2024
Improves the recommendation for `google-readability-todo` by providing a
proper name which would previously be `TODO(docker)` or `TODO(unknown)`.

If for whatever reason, the name cannot be found, it will default to
`TODO(your name here)`.

Implements ZedThree#102 without the need for a new parameter.
bwrsandman added a commit to bwrsandman/clang-tidy-review that referenced this issue Jan 16, 2024
Improves the recommendation for `google-readability-todo` by providing a
proper name which would previously be `TODO(docker)` or `TODO(unknown)`.

If for whatever reason, the name cannot be found, it will default to
`TODO(your name here)`.

Implements ZedThree#102 without the need for a new parameter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants