diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index 7d321fd..017f883 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -10,6 +10,9 @@ permissions: contents: read pull-requests: write issues: write +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.issue.number }} jobs: call-comments-workflow: uses: bitnami/support/.github/workflows/comment-created.yml@main diff --git a/.github/workflows/move-closed-issues.yml b/.github/workflows/move-closed-issues.yml index 76664ce..d9c7425 100644 --- a/.github/workflows/move-closed-issues.yml +++ b/.github/workflows/move-closed-issues.yml @@ -12,6 +12,9 @@ on: permissions: issues: write pull-requests: write +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.repository.id }}-${{ github.event.issue != null && github.event.issue.number || github.event.number }} jobs: call-move-closed-workflow: uses: bitnami/support/.github/workflows/item-closed.yml@main diff --git a/.github/workflows/pr-reviews-requested.yml b/.github/workflows/pr-reviews-requested.yml new file mode 100644 index 0000000..2f3725f --- /dev/null +++ b/.github/workflows/pr-reviews-requested.yml @@ -0,0 +1,18 @@ +# Copyright VMware, Inc. +# SPDX-License-Identifier: APACHE-2.0 + +name: '[Support] Review based card movements' +on: + pull_request_target: + types: + - review_requested + - synchronize +permissions: + contents: read +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.number }} +jobs: + call-pr-review-workflow: + uses: bitnami/support/.github/workflows/pr-review-requested-sync.yml@main + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-reviews.yml b/.github/workflows/pr-reviews.yml index bd3da55..07882f1 100644 --- a/.github/workflows/pr-reviews.yml +++ b/.github/workflows/pr-reviews.yml @@ -1,15 +1,25 @@ # Copyright VMware, Inc. # SPDX-License-Identifier: APACHE-2.0 -name: '[Support] Review based card movements' +name: '[Support] PR review comment card movements' on: - pull_request_target: + pull_request_review_comment: types: - - review_requested - - synchronize -permissions: - contents: read + - created + pull_request_review: + types: + - submitted + - dismissed +permissions: {} +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.pull_request.number }} jobs: + call-pr-review-comment-workflow: + if: ${{ github.event_name == 'pull_request_review_comment' }} + uses: bitnami/support/.github/workflows/pr-review-comment.yml@main + secrets: inherit call-pr-review-workflow: - uses: bitnami/support/.github/workflows/pr-review-requested-sync.yml@main + if: ${{ github.event_name == 'pull_request_review' }} + uses: bitnami/support/.github/workflows/pr-review.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/reasign.yml b/.github/workflows/reasign.yml index 633079e..ce670f7 100644 --- a/.github/workflows/reasign.yml +++ b/.github/workflows/reasign.yml @@ -13,6 +13,9 @@ permissions: contents: read pull-requests: write issues: write +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }} jobs: call-reasign-workflow: uses: bitnami/support/.github/workflows/item-labeled.yml@main diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 8a86133..8800317 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -16,6 +16,9 @@ permissions: contents: read pull-requests: write issues: write +# Avoid concurrency over the same issue +concurrency: + group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }} jobs: call-triage-workflow: uses: bitnami/support/.github/workflows/item-opened.yml@main