diff --git a/.github/workflows/SubmitReview.yml b/.github/workflows/SubmitReview.yml new file mode 100644 index 0000000000..a6839f136e --- /dev/null +++ b/.github/workflows/SubmitReview.yml @@ -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