diff --git a/.github/config.yml b/.github/config.yml index 340e64a..d2eb157 100644 --- a/.github/config.yml +++ b/.github/config.yml @@ -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 diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 0000000..38c3309 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -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 diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..80d65fb --- /dev/null +++ b/.github/labeler.yml @@ -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/**/* diff --git a/.github/support.yml b/.github/support.yml deleted file mode 100644 index a4c9ea5..0000000 --- a/.github/support.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 0000000..dd8be08 --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -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 }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..8b0ba5b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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 }}"