Ignoring automated PR (Release activity) from the support flow. (#342)

Automated PRs created by the bitnami-bot should be ignored by any workflow related to support activities.

Signed-off-by: Alejandro Gómez <morona@vmware.com>
This commit is contained in:
Alejandro Gómez Morón
2022-07-22 12:03:44 +02:00
committed by GitHub
parent c21a161648
commit 9de3b762e4
4 changed files with 13 additions and 7 deletions

View File

@@ -7,12 +7,14 @@ permissions:
repository-projects: write repository-projects: write
issues: write issues: write
# To fix the concurrency when for example more than one label is added
concurrency: concurrency:
group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} group: ${{ github.run_id }}
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
comments_handler: comments_handler:
if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repo checkout - name: Repo checkout

View File

@@ -11,12 +11,14 @@ permissions:
issues: write issues: write
repository-projects: write repository-projects: write
# To fix the concurrency when for example more than one label is added
concurrency: concurrency:
group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} group: ${{ github.run_id }}
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
send_to_solved: 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 runs-on: ubuntu-latest
steps: steps:
- name: Repo checkout - name: Repo checkout

View File

@@ -9,13 +9,14 @@ permissions:
repository-projects: read repository-projects: read
issues: write issues: write
# To fix the concurrency when for example more than one label is added
concurrency: concurrency:
# Cards are special group: ${{ github.run_id }}
group: ${{ github.event.project_card.content_url }}
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
label-card: label-card:
if: ${{ github.actor != 'bitnami-bot' && github.event.pull_request && (!contains(github.event.pull_request.labels.*.name, 'auto-merge')) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repo checkout - name: Repo checkout
@@ -52,6 +53,7 @@ jobs:
add-labels: "solved" add-labels: "solved"
remove-labels: "in-progress, on-hold, triage" remove-labels: "in-progress, on-hold, triage"
assign-assignee-if-needed: assign-assignee-if-needed:
if: ${{ github.actor != 'bitnami-bot' && (!contains(github.event.issue.labels.*.name, 'auto-merge')) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repo checkout - name: Repo checkout

View File

@@ -13,13 +13,15 @@ permissions:
repository-projects: write repository-projects: write
issues: write issues: write
# To fix the concurrency when for example more than one label is added
concurrency: concurrency:
group: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }} group: ${{ github.run_id }}
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
# For any opened or reopened issue, should be sent into Triage # For any opened or reopened issue, should be sent into Triage
send_to_board: 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 runs-on: ubuntu-latest
steps: steps:
- name: Repo checkout - name: Repo checkout
@@ -38,7 +40,6 @@ jobs:
# creating env variable "on the fly" # creating env variable "on the fly"
echo "TRIAGE_TEAM_STRING=$TRIAGE_TEAM_STRING" >> $GITHUB_ENV echo "TRIAGE_TEAM_STRING=$TRIAGE_TEAM_STRING" >> $GITHUB_ENV
- name: Assign to a person to work on it - name: Assign to a person to work on it
if: ${{ github.actor != 'bitnami-bot' }}
uses: pozil/auto-assign-issue@v1.7.3 uses: pozil/auto-assign-issue@v1.7.3
with: with:
numOfAssignee: 1 numOfAssignee: 1
@@ -47,7 +48,6 @@ jobs:
# teams: XXX # teams: XXX
repo-token: "${{ secrets.GHPROJECT_TOKEN }}" repo-token: "${{ secrets.GHPROJECT_TOKEN }}"
- name: Send to the board - name: Send to the board
if: ${{ github.actor != 'bitnami-bot' }}
uses: peter-evans/create-or-update-project-card@v2 uses: peter-evans/create-or-update-project-card@v2
with: with:
project-name: Support project-name: Support