Submit Review #15310
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Submit Review | |
on: | |
pull_request_review: | |
types: ["submitted"] | |
jobs: | |
MoveCardToProgress_job: | |
name: Move card to progress | |
runs-on: ubuntu-latest | |
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals | |
# PRs from forks don't have required token authorization | |
if: | | |
github.event.pull_request.head.repo.full_name == github.repository | |
&& github.event.review.author_association != 'NONE' | |
&& github.event.review.state == 'changes_requested' | |
steps: | |
- uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
column-id: 4971952 # Kanban "In progress" column | |
ReviewApproved_job: | |
name: Move card to review approved | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.head.repo.full_name == github.repository | |
&& github.event.review.author_association != 'NONE' | |
&& github.event.review.state == 'approved' | |
steps: | |
- uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
column-id: 4971954 # Kanban "Review approved" column |