Skip to content

Conversation

@dunhor
Copy link
Member

@dunhor dunhor commented Dec 11, 2025

Assuming this works (I can't test until it's in the master branch...) maintainers & PR authors will be able to comment !run-clang-format on a PR and have GitHub automatically run clang-format on the changes & commit the result. This has been a longstanding desire of mine to avoid the need to ask contributors to run clang-format on their changes to satisfy the CI requirement.

I've debated making this automatic as part of the CI, but I'd rather it be explicit, at least for now.

I've also tried to limit permissions to just PR authors and maintainers, however it is my understanding that's not easily done w/ GitHub's API. If I'm understanding github.event.comment.author_association correctly, what I have here would give permissions to anyone in the microsoft org, which is more broad than I'd like, but unlikely to be an issue. The scope of impact of what anyone could do is significantly limited since it'll just run clang-format, something we're already enforcing.

Once this PR is complete, I'll do a round of testing since I unfortunately can't test it before completing the PR....

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 this pull request may close these issues.

2 participants