-
Notifications
You must be signed in to change notification settings - Fork 580
ci: Add Github action to add "has:owner-approval" label for approved PRs #2798
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2798 +/- ##
==========================================
+ Coverage 89.69% 89.74% +0.04%
==========================================
Files 186 186
Lines 9048 9048
Branches 1855 1855
==========================================
+ Hits 8116 8120 +4
+ Misses 932 928 -4 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
on: | ||
pull_request_review: | ||
types: | ||
- submitted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think that the pull_request_review
trigger only provides a read-only GITHUB_TOKEN
- I guess it would not be able to re-label the PR in that case, right? 🤔
Thinking more about it, I'm also wondering if there are some security concerns if we were to give the workflow additional permissions. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add permissions by workflow right? that would prevent us to change the default permissions and keep them read only for other workflows
Which problem is this PR solving?
Automate label tagging for owner reviews in PRs
Short description of the changes
Added scripts to parse component_owners.yml, to get existing components and owners by componer
Added script to get details about a PR, looks for all updated files and determine if one of the owner of that file already approved the PR, then add label.
Added workflow to kick off the script when a PR is reviewed and approved.