aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-02-13 14:52:02 +0000
committerGitHub <noreply@github.com>2024-02-13 14:52:02 +0000
commit38c706e30f5f339bfb0bfb26fd7b5c2d5086064a (patch)
tree15d136793d366cdc95f962beca640c1573b62a64 /flang/lib/Frontend/CompilerInvocation.cpp
parent5e5e51e9062895bed9fcf0dbb157d868be0adf8d (diff)
downloadllvm-38c706e30f5f339bfb0bfb26fd7b5c2d5086064a.zip
llvm-38c706e30f5f339bfb0bfb26fd7b5c2d5086064a.tar.gz
llvm-38c706e30f5f339bfb0bfb26fd7b5c2d5086064a.tar.bz2
[GitHub][workflows] Ask reviewers to merge PRs when author cannot (#81142)
This uses https://pygithub.readthedocs.io/en/stable/github_objects/Repository.html?highlight=get_collaborator_permission#github.Repository.Repository.get_collaborator_permission. Which does https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#get-repository-permissions-for-a-user and returns the top level "permission" key. This is less detailed than the user/permissions key but should be fine for this use case. When a review is submitted we check: * If it's an approval. * Whether we have already left a merge on behalf comment (by looking for a hidden HTML comment). * Whether the author has permissions to merge their own PR. * Whether the reviewer has permissions to merge. If needed we leave a comment tagging the reviewer. If the reviewer also doesn't have merge permission, then it asks them to find someone else who does.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions