[bitnami/*] Fix autoassigning issues (#640)
* 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> * Fixing when the change is related to an issue Signed-off-by: Alejandro Gómez <morona@vmware.com>
This commit is contained in:
parent
0682c62899
commit
3d6918438d
|
|
@ -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') }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue