Skip to content
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

Merged
merged 12 commits into from
Jul 25, 2023

Conversation

ilia-kebets-sonarsource
Copy link
Contributor

@ilia-kebets-sonarsource ilia-kebets-sonarsource commented Jul 7, 2023

When merged, we would need to change the branches to @v1 like:

      - uses: sonarsource/gh-action-lt-backlog/MoveCardToReview@V1

instead of

      - uses: sonarsource/gh-action-lt-backlog/MoveCardToReview@ use-until-merged

@sonarqube-next sonarqube-next bot deleted a comment from sonarsource-next bot Jul 11, 2023
@sonarqube-next
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqube-next
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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'

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll explain tomorrow.

Copy link
Contributor Author

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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?

Copy link
Contributor Author

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.

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.

4 participants