From 9de3b762e4bca25169479cd83bc03c328dd7193c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez=20Mor=C3=B3n?= Date: Fri, 22 Jul 2022 12:03:44 +0200 Subject: [PATCH] Ignoring automated PR (Release activity) from the support flow. (#342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated PRs created by the bitnami-bot should be ignored by any workflow related to support activities. Signed-off-by: Alejandro Gómez --- .github/workflows/comments.yml | 4 +++- .github/workflows/move-closed-issues.yml | 4 +++- .github/workflows/moving-cards.yml | 6 ++++-- .github/workflows/triage.yml | 6 +++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index 4466e21fefac..aff6b51ee2b3 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -7,12 +7,14 @@ permissions: repository-projects: write issues: write +# To fix the concurrency when for example more than one label is added concurrency: - group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} + group: ${{ github.run_id }} cancel-in-progress: false jobs: comments_handler: + if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} runs-on: ubuntu-latest steps: - name: Repo checkout diff --git a/.github/workflows/move-closed-issues.yml b/.github/workflows/move-closed-issues.yml index e5b66a474b9e..76ea6c477fad 100644 --- a/.github/workflows/move-closed-issues.yml +++ b/.github/workflows/move-closed-issues.yml @@ -11,12 +11,14 @@ permissions: issues: write repository-projects: write +# To fix the concurrency when for example more than one label is added concurrency: - group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} + group: ${{ github.run_id }} cancel-in-progress: false jobs: send_to_solved: + if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} runs-on: ubuntu-latest steps: - name: Repo checkout diff --git a/.github/workflows/moving-cards.yml b/.github/workflows/moving-cards.yml index 7d8b84273b53..34cc4cca79b3 100644 --- a/.github/workflows/moving-cards.yml +++ b/.github/workflows/moving-cards.yml @@ -9,13 +9,14 @@ permissions: repository-projects: read issues: write +# To fix the concurrency when for example more than one label is added concurrency: - # Cards are special - group: ${{ github.event.project_card.content_url }} + group: ${{ github.run_id }} cancel-in-progress: false jobs: label-card: + if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} runs-on: ubuntu-latest steps: - name: Repo checkout @@ -52,6 +53,7 @@ jobs: add-labels: "solved" remove-labels: "in-progress, on-hold, triage" assign-assignee-if-needed: + if: ${{ github.actor != 'bitnami-bot' && (!contains(github.event.issue.labels.*.name, 'auto-merge')) }} runs-on: ubuntu-latest steps: - name: Repo checkout diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index ac452eb1a77a..e5de68c1f035 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -13,13 +13,15 @@ permissions: repository-projects: write issues: write +# To fix the concurrency when for example more than one label is added concurrency: - group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} + group: ${{ github.run_id }} cancel-in-progress: false jobs: # For any opened or reopened issue, should be sent into Triage send_to_board: + if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} runs-on: ubuntu-latest steps: - name: Repo checkout @@ -38,7 +40,6 @@ jobs: # creating env variable "on the fly" echo "TRIAGE_TEAM_STRING=$TRIAGE_TEAM_STRING" >> $GITHUB_ENV - name: Assign to a person to work on it - if: ${{ github.actor != 'bitnami-bot' }} uses: pozil/auto-assign-issue@v1.7.3 with: numOfAssignee: 1 @@ -47,7 +48,6 @@ jobs: # teams: XXX repo-token: "${{ secrets.GHPROJECT_TOKEN }}" - name: Send to the board - if: ${{ github.actor != 'bitnami-bot' }} uses: peter-evans/create-or-update-project-card@v2 with: project-name: Support