-
Notifications
You must be signed in to change notification settings - Fork 228
34 lines (31 loc) · 1.27 KB
/
SubmitReview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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