-
Notifications
You must be signed in to change notification settings - Fork 183
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
Update "submit review" and "request review" actions to work for projectsV2 #4012
Update "submit review" and "request review" actions to work for projectsV2 #4012
Conversation
SonarQube Quality Gate |
SonarQube Quality Gate |
if: github.event.pull_request.head.repo.full_name == github.repository | ||
if: | | ||
github.event.pull_request.head.repo.full_name == github.repository | ||
&& github.event.review.author_association != 'NONE' |
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.
What's the meaning of this extra condition ? What's an author association ?
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.
I'll explain tomorrow.
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.
it means that the reviewer has at least some rights on the repo: https://docs.github.com/en/webhooks-and-events/events/issue-event-types#properties-for-commented
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.
👍
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.
Do you plan to document this kind of detail somewhere?
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.
These actions are made to be copy-pasted from their templates, and a few parameters replaced like this one from here: https://github.com/SonarSource/gh-action-lt-backlog/tree/master/MoveCardAfterReview#projects-v2
So we don't deem the documentation necessary.
When merged, we would need to change the branches to @v1 like:
instead of