Files
containers/.github/workflows/move-closed-issues.yml
Alejandro Gómez Morón 13ee4720b3 [bitnami/*] Parametrizing teams for the support workflows (#769)
* 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>

* Parametrizing triage and support teams. Automating BITNAMI_TEAM on .env file (daily). Using the BITNAMI_BOT_TOKEN instead of the PAT one

Signed-off-by: Alejandro Gómez <morona@vmware.com>

* Parametrizing triage and support teams. Automating BITNAMI_TEAM on .env file (daily). Using the BITNAMI_BOT_TOKEN instead of the PAT one

Signed-off-by: Alejandro Gómez <morona@vmware.com>

* Adding the proper user.name and user.email to the git commands

Signed-off-by: Alejandro Gómez <morona@vmware.com>

* Adding suggestions from fmulero

Signed-off-by: Alejandro Gómez <morona@vmware.com>

* Adding suggestions from fmulero

Signed-off-by: Alejandro Gómez <morona@vmware.com>
2022-07-26 13:29:11 +02:00

46 lines
1.3 KiB
YAML

name: '[Support] Move closed issues'
on:
issues:
types:
- closed
pull_request_target:
types:
- closed
permissions:
issues: write
repository-projects: write
# To fix the concurrency when for example more than one label is added
concurrency:
group: ${{ github.run_id }}
cancel-in-progress: false
jobs:
send_to_solved:
if: ${{ github.actor != 'bitnami-bot' }}
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Load .env file
uses: xom9ikk/dotenv@v1.0.2
with:
path: .github/workflows/
- name: Send to the Solved column
uses: peter-evans/create-or-update-project-card@v2
with:
project-name: Support
# If the author comes from Bitnami, send it to Bitnami. Otherwise, all to Triage
column-name: 'Solved'
token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
issue-number: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }}
- name: Solved labeling
# Only if moved into Solved
uses: andymckay/labeler@1.0.4
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: "solved"
remove-labels: "in-progress, on-hold, triage"