From d99a0aca85a84178c82f2b495e35a394ab2839bf Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Fri, 13 Jan 2023 15:57:34 +0100 Subject: [PATCH] [bitnami/charts] Add workflow to move issue cards based on PR reviews (#14333) * [bitnami/charts] Add workflow to move issue cards based on PR reviews Signed-off-by: Fran Mulero --- .github/workflows/comments.yml | 2 +- .github/workflows/pr-reviews.yml | 35 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-reviews.yml diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index a2e4ce7e29..6a2a40f822 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -1,4 +1,4 @@ -name: '[Support] Organizing cards based on comments' +name: '[Support] Comments based card movements' on: issue_comment: types: diff --git a/.github/workflows/pr-reviews.yml b/.github/workflows/pr-reviews.yml new file mode 100644 index 0000000000..2c4ea8df18 --- /dev/null +++ b/.github/workflows/pr-reviews.yml @@ -0,0 +1,35 @@ +name: '[Support] Review based card movements' +on: + pull_request: + types: + - review_requested + - synchronize + pull_request_review: + types: + - submitted +permissions: + repository-projects: write +jobs: + comments_handler: + runs-on: ubuntu-latest + # This job will ignore: + # * Events triggered by bitnami-bot (README commits for example). + # * Events triggered over automated PRs (They are managed in comments.yml workflow). + # * PRs with 'bitnami' label. + if: | + github.actor != 'bitnami-bot' && github.event.pull_request.user.login != 'bitnami-bot' && + (!contains(github.event.pull_request.labels.*.name, 'bitnami')) + steps: + - name: Move into Pending + uses: peter-evans/create-or-update-project-card@v2 + # Pull request review submitted + if: ${{ github.event.action == 'submitted' }} + with: + project-name: Support + column-name: Pending + - name: Move into In Progress + uses: peter-evans/create-or-update-project-card@v2 + if: ${{ github.event.action != 'submitted' }} + with: + project-name: Support + column-name: In progress \ No newline at end of file