From 7335ebcbfb46904d7b804dd0f228ddcd6706a31d Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Tue, 5 Dec 2023 16:34:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/workfl?= =?UTF-8?q?ows/'=20with=20remote=20'workflows/'=20(#86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bitnami-bot --- .github/workflows/comments.yml | 3 +++ .github/workflows/move-closed-issues.yml | 3 +++ .github/workflows/pr-reviews-requested.yml | 18 ++++++++++++++++ .github/workflows/pr-reviews.yml | 24 +++++++++++++++------- .github/workflows/reasign.yml | 3 +++ .github/workflows/triage.yml | 3 +++ 6 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pr-reviews-requested.yml 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