mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-05 14:55:29 +08:00
ci: Add Label Commenter Action
https://github.com/peaceiris/actions-label-commenter
This commit is contained in:
parent
2aa39a0fb5
commit
271b8c5d4e
32
.github/label-commenter-config.yml
vendored
Normal file
32
.github/label-commenter-config.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
labels:
|
||||||
|
- name: invalid
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: Please follow the issue templates.
|
||||||
|
action: close
|
||||||
|
- name: forum
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: |
|
||||||
|
Please ask questions about GitHub Actions or Hugo at the following forum.
|
||||||
|
- [GitHub Actions Community Forum](https://github.community/t5/GitHub-Actions/bd-p/actions)
|
||||||
|
- [Hugo Community Forum](https://discourse.gohugo.io/)
|
||||||
|
action: close
|
||||||
|
- name: wontfix
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: This will not be worked on but we appreciate your contribution.
|
||||||
|
action: close
|
||||||
|
unlabeled:
|
||||||
|
issue:
|
||||||
|
body: This has become active again.
|
||||||
|
action: open
|
||||||
|
- name: duplicate
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: This issue already exists.
|
||||||
|
action: close
|
||||||
|
- name: good first issue
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: This issue is easy for contributing. Everyone can work on this.
|
25
.github/workflows/label-commenter.yml
vendored
Normal file
25
.github/workflows/label-commenter.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Label Commenter
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
# pull_request:
|
||||||
|
# types:
|
||||||
|
# - labeled
|
||||||
|
# - unlabeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Label Commenter
|
||||||
|
uses: peaceiris/actions-label-commenter@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# config_file: .github/label-commenter-config.yml
|
Loading…
Reference in New Issue
Block a user