Configuration for bots

This commit is contained in:
Mimi 2020-07-19 08:36:59 +08:00
parent 5cd5a5deb1
commit 9ae16610c1
6 changed files with 68 additions and 29 deletions

6
.github/config.yml vendored
View File

@ -12,9 +12,3 @@ newPRWelcomeComment: >
# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congrats on merging your first pull request here! :tada: How awesome!
# =============================================================================================== #
# Configuration for request-info - https://github.com/behaviorbot/request-info
# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
requestInfoLabelToAdd: Need More Info

31
.github/label-commenter-config.yml vendored Normal file
View File

@ -0,0 +1,31 @@
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
labels:
- name: Invalid
labeled:
issue:
body: |
This issue has been closed because it does not meet our Issue template.
Please read our [guidelines for contributing](https://github.com/next-theme/hexo-theme-next/blob/master/.github/CONTRIBUTING.md#how-can-i-contribute)."
action: close
- name: Need More Info
labeled:
issue:
body: We would appreciate it if you could provide us with more info about this issue!
- name: 🎯 Roadmap
labeled:
issue:
body: This issue has been added to the latest roadmap.
- name: Support
labeled:
issue:
body: |
:wave: Hey there! we use the issue tracker exclusively for bug reports
and feature requests. However, this issue appears to be a support request.
Please use our [support channels](https://github.com/next-theme/hexo-theme-next#feedback) to get help with the project.
action: close
- name: Wontfix
labeled:
issue:
body: This will not be worked on but we appreciate your contribution.
action: close

7
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,7 @@
# Configuration for labeler - https://github.com/actions/labeler
🔌 3rd Party Plugin: package.json
Configurations: _config.yml
CSS: source/css/**/*
📖 Docs: docs/**/*
Layout: layout/**/*

23
.github/support.yml vendored
View File

@ -1,23 +0,0 @@
# Configuration for Support Requests - https://github.com/dessant/support-requests
# Label used to mark issues as support requests
supportLabel: Support
# Comment to post on issues marked as support requests, `{issue-author}` is an
# optional placeholder. Set to `false` to disable
supportComment: >
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports
and feature requests. However, this issue appears to be a support request.
Please use our [support channels](https://github.com/next-theme/hexo-theme-next#feedback) to get help with the project.
# Close issues marked as support requests
close: true
# Lock issues marked as support requests
lock: false
# Assign `off-topic` as the reason for locking. Set to `false` to disable
setLockReason: true
# Repository to extend settings from
# _extends: repo

18
.github/workflows/label-commenter.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Label Commenter
on:
issues:
types:
- labeled
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Label Commenter
uses: peaceiris/actions-label-commenter@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

12
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Pull Request Labeler
on:
- pull_request
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"