-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17ca5cf
commit 9ab000e
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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.state == 'changes_requested' | ||
steps: | ||
- uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
column-id: 19667121 # 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.state == 'approved' | ||
steps: | ||
- uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
column-id: 19667123 # Kanban "Review approved" column |