From 3d6918438d286f2da4b2256e0798f34a577525f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez=20Mor=C3=B3n?= Date: Mon, 25 Jul 2022 11:20:23 +0200 Subject: [PATCH] [bitnami/*] Fix autoassigning issues (#640) 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 * Fixing when the change is related to an issue Signed-off-by: Alejandro Gómez --- .github/workflows/comments.yml | 8 ++++---- .github/workflows/move-closed-issues.yml | 2 +- .github/workflows/moving-cards.yml | 2 +- .github/workflows/triage.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index aff6b51ee2b3..3b7fc8bbd3b6 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -14,7 +14,7 @@ concurrency: jobs: comments_handler: - if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} + if: ${{ github.actor != 'bitnami-bot' && ((github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge'))) || github.event_name == 'issues') }} runs-on: ubuntu-latest steps: - name: Repo checkout @@ -31,21 +31,21 @@ jobs: with: project-name: Support column-name: Pending - token: "${{ secrets.GHPROJECT_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Move into In Progress uses: peter-evans/create-or-update-project-card@v2 if: ${{ contains(github.event.issue.labels.*.name, 'in-progress') && (!contains(fromJson(env.BITNAMI_TEAM), github.event.comment.user.login)) }} with: project-name: Support column-name: In progress - token: "${{ secrets.GHPROJECT_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Move into Triage uses: peter-evans/create-or-update-project-card@v2 if: ${{ ((contains(github.event.issue.labels.*.name, 'triage')) || (contains(github.event.issue.labels.*.name, 'solved'))) && (!contains(fromJson(env.BITNAMI_TEAM), github.event.comment.user.login)) }} with: project-name: Support column-name: Triage - token: "${{ secrets.GHPROJECT_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Label as triage back # Only if commented when solved if: ${{ contains(github.event.issue.labels.*.name, 'solved') }} diff --git a/.github/workflows/move-closed-issues.yml b/.github/workflows/move-closed-issues.yml index 76ea6c477fad..d60283662b1b 100644 --- a/.github/workflows/move-closed-issues.yml +++ b/.github/workflows/move-closed-issues.yml @@ -18,7 +18,7 @@ concurrency: jobs: send_to_solved: - if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} + if: ${{ github.actor != 'bitnami-bot' }} runs-on: ubuntu-latest steps: - name: Repo checkout diff --git a/.github/workflows/moving-cards.yml b/.github/workflows/moving-cards.yml index 34cc4cca79b3..8275ee52ee99 100644 --- a/.github/workflows/moving-cards.yml +++ b/.github/workflows/moving-cards.yml @@ -16,7 +16,7 @@ concurrency: jobs: label-card: - if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }} + if: ${{ github.actor != 'bitnami-bot' }} runs-on: ubuntu-latest steps: - name: Repo checkout diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index e5de68c1f035..6b1f7806a2e2 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -21,7 +21,7 @@ concurrency: 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')) }} + if: ${{ github.actor != 'bitnami-bot' }} runs-on: ubuntu-latest steps: - name: Repo checkout