Files
containers/.github/workflows/comments.yml
Fran Mulero 13f4e46d45 [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>
2022-09-15 13:39:38 +02:00

51 lines
2.1 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: '[Support] Organizing cards based on comments'
on:
issue_comment:
types:
- created
permissions:
repository-projects: write
issues: write
pull-requests: write
jobs:
comments_handler:
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Load .env file
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: ${{ 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
- name: Move into In Progress
uses: peter-evans/create-or-update-project-card@v2
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
- name: Move into Triage
uses: peter-evans/create-or-update-project-card@v2
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
# Needs reasignation of the task
token: "${{ secrets.BITNAMI_BOT_TOKEN }}"