diff options
| author | Shinigami <[email protected]> | 2022-01-09 21:45:30 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-09 15:45:30 -0500 |
| commit | 0c8506faf1c2fe4d74cab33d9244e34e40b23711 (patch) | |
| tree | d80c8603bb142da07623f88637d1967fd5f57939 /.github/workflows | |
| parent | 7b0558edab05b7440cb36f920abbf78037b13c8a (diff) | |
| download | faker-0c8506faf1c2fe4d74cab33d9244e34e40b23711.tar.xz faker-0c8506faf1c2fe4d74cab33d9244e34e40b23711.zip | |
chore(ci): automated issue labeling and issue templates (#41)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/issue-labeling.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/issue-labeling.yml b/.github/workflows/issue-labeling.yml new file mode 100644 index 00000000..a9bbaaac --- /dev/null +++ b/.github/workflows/issue-labeling.yml @@ -0,0 +1,32 @@ +name: Issue Labeling + +on: + issues: + types: [labeled] + +jobs: + reply-labeled: + runs-on: ubuntu-latest + steps: + - name: contribution welcome + # If the issue is labeled with 'help wanted', a comment will be posted + if: github.event.label.name == 'help wanted' + uses: actions-cool/issues-helper@v2 + with: + actions: "create-comment, remove-labels" + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! + labels: "pending triage" + + - name: remove pending + # If the issue is given either the 'enhancement' or 'bug' label, the 'pending triage' label will be removed + # Issues without the label 'pending triage' are filtered with the third part of the condition, since the label does not have to be removed + if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug' || (contains(github.event.label.name, 'pending triage') == false) + uses: actions-cool/issues-helper@v2 + with: + actions: "remove-labels" + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + labels: "pending triage" |
