mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 09:39:44 +02:00
[bitnami/*] Split workflow responsibilites (#6418)
* PRs created by bitnami-bot will be handled by triage workflow to include it in the support project (at the moment in bitnami column) and set the 'auto-merge' label, without assigning people to work on it Signed-off-by: Fran Mulero <fmulero@vmware.com> * Remove concurrency config from triage workflow. It doesn't make sense because only have one job and all steps are sequential Signed-off-by: Fran Mulero <fmulero@vmware.com> * Remove unnecessary code from move-closed-issues workflow Signed-off-by: Fran Mulero <fmulero@vmware.com> * Add 'permissions' section to stale workflow Signed-off-by: Fran Mulero <fmulero@vmware.com> * Remove labeling from comments workflow and delegate it to moving-cards workflow Signed-off-by: Fran Mulero <fmulero@vmware.com> * Remove assignments and labeling from CI workflow Signed-off-by: Fran Mulero <fmulero@vmware.com> * Change moving-cards.yml workflow to listen created task event Signed-off-by: Fran Mulero <fmulero@vmware.com> * Apply suggestions Signed-off-by: Fran Mulero <fmulero@vmware.com> * Apply suggestions Signed-off-by: Fran Mulero <fmulero@vmware.com> * Include new 'automated' label form bitnami-bot PRs Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
@@ -8,14 +8,8 @@ permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
# To fix the concurrency when for example more than one label is added
|
||||
concurrency:
|
||||
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'))) || (github.event.issue && (!contains(github.event.issue.labels.*.name, 'auto-merge')))) }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Repo checkout
|
||||
@@ -26,32 +20,32 @@ jobs:
|
||||
uses: xom9ikk/dotenv@v1.0.2
|
||||
with:
|
||||
path: .github/workflows/
|
||||
- name: Move into From Bitnami
|
||||
uses: peter-evans/create-or-update-project-card@v2
|
||||
if: ${{ github.actor == 'bitnami-bot' }}
|
||||
with:
|
||||
project-name: Support
|
||||
column-name: From Bitnami
|
||||
# Required to trigger moving-cards.yml workflow (clean labels and assign people to work on it)
|
||||
# NOTE: we will need to change it when the new column for failed automated PRs is created
|
||||
token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
|
||||
- name: Move into Pending
|
||||
uses: peter-evans/create-or-update-project-card@v2
|
||||
if: ${{ (!contains(github.event.issue.labels.*.name, 'bitnami')) && contains(fromJson(env.BITNAMI_TEAM), github.event.comment.user.login) }}
|
||||
if: ${{ github.actor != 'bitnami-bot' && (!contains(github.event.issue.labels.*.name, 'bitnami')) && contains(fromJson(env.BITNAMI_TEAM), github.actor) }}
|
||||
with:
|
||||
project-name: Support
|
||||
column-name: Pending
|
||||
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)) }}
|
||||
if: ${{ github.actor != 'bitnami-bot' && contains(github.event.issue.labels.*.name, 'in-progress') && (!contains(fromJson(env.BITNAMI_TEAM), github.actor)) }}
|
||||
with:
|
||||
project-name: Support
|
||||
column-name: In progress
|
||||
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)) }}
|
||||
if: ${{ github.actor != 'bitnami-bot' && ((contains(github.event.issue.labels.*.name, 'triage')) || (contains(github.event.issue.labels.*.name, 'solved'))) && (!contains(fromJson(env.BITNAMI_TEAM), github.actor)) }}
|
||||
with:
|
||||
project-name: Support
|
||||
column-name: Triage
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Label as triage back
|
||||
# Only if commented when solved
|
||||
if: ${{ contains(github.event.issue.labels.*.name, 'solved') }}
|
||||
uses: andymckay/labeler@1.0.4
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
add-labels: "triage"
|
||||
remove-labels: "solved"
|
||||
# Needs reasignation of the task
|
||||
token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
|
||||
Reference in New Issue
Block a user