Skip to content

Commit

Permalink
ci: Add Label Commenter Action
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Apr 29, 2020
1 parent 2aa39a0 commit 271b8c5
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/label-commenter-config.yml
Original file line number Diff line number Diff line change
@@ -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://git.luolix.topmunity/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 changes: 25 additions & 0 deletions .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 271b8c5

Please sign in to comment.