-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat(ci): implement PR command /request-review #1638
feat(ci): implement PR command /request-review #1638
Conversation
aea7f92
to
4af1980
Compare
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.
GITHUB_TOKEN
will soon be restrictive after https://github.com/cryostatio/cryostat/pull/1635.
We should explicitly declare permissions here. You mostly need pull_request: write
.
d91b384
to
2413645
Compare
2413645
to
275edc2
Compare
Link to the test run aali309/cryostat#16 Looking at this now, the label is being added. i also see this error:
|
275edc2
to
9afa25d
Compare
The last part:
looks like it's probably related to:
There shouldn't be |
dfb7718
to
7861b18
Compare
4911f98
to
08124b6
Compare
0a2dcfe
to
7523fad
Compare
Didn't work: https://github.com/cryostatio/cryostat/actions/runs/6087853970/job/16517292637
I checked the organization settings and it looks like the reviewers team is publicly readable, so I think this workflow might need to run with some elevated token permissions? |
It seems to still work regardless of that workflow failure though, somehow... |
I am quite confused on this one to be honest. Honestly, If you dint explain to me that the --add-reviewer would work the same in a team and individual environment, I would have thought that was the reason. |
The failure seems to be a permissioning issue ("resource not accessible"), not that the reviewer is a team, so I don't think that really has to do with it. Anyway, this is not a very high priority thing to troubleshoot, so we can come back around to it later. I'll file a separate bug. |
Welcome to Cryostat! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/main
Fixes: #1585
Description of the change:
This change will add a label
review-requested
on the PR when/request-review
command is detected and then remove it if the reviewer requested changed on the PRMotivation for the change:
Raised by Max in the Cryostat team
How to manually test: