1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-06 05:27:50 +00:00
plantuml/.github/workflows/close-and-put-in-backlog.yml
dependabot[bot] 0366571f50
chore(deps): bump actions/add-to-project from 0.4.1 to 0.5.0
Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/actions/add-to-project/releases)
- [Commits](https://github.com/actions/add-to-project/compare/v0.4.1...v0.5.0)

---
updated-dependencies:
- dependency-name: actions/add-to-project
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 01:46:12 +00:00

31 lines
1.2 KiB
YAML

on:
issues:
types: [labeled]
jobs:
close-and-put-in-backlog:
if: github.event.label.name == 'p:backlog'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
const welcomeMessage = `
Your issue is now part of the official [backlog](https://github.com/orgs/plantuml/projects/4).
For technical reason, it has been put at close state but it's really still open for us.
You can by the way go on and put any comment in this issue.
The main reason why we put this issue in the backlog is that we try to group issues together so that we fix them together, as similar issues often impact the same code area.
Please be patient, but stay tuned! 🙂`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: welcomeMessage
})
- uses: peter-evans/close-issue@v2
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/plantuml/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}