Skip to content

Commit

Permalink
GitHub workflow: Add SubmitReview (#4960)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource committed Oct 31, 2023
1 parent b51d84b commit 48546ab
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/SubmitReview.yml
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

0 comments on commit 48546ab

Please sign in to comment.