Refactor Pull Request Reminder

This commit is contained in:
Mimi 2023-07-25 16:19:55 +08:00
parent c596155ef9
commit 8fd8f9247c
4 changed files with 11 additions and 20 deletions

View File

@ -27,3 +27,9 @@ labels:
issue:
body: This will not be worked on but we appreciate your contribution.
action: close
- name: Configuration
labeled:
pr:
body: |
This pull request contains changes to the configuration file. Please make sure the documentation in [NexT website](https://theme-next.js.org/docs/) is changed or added.
Please edit relevant source files here: https://github.com/next-theme/theme-next-docs/tree/master/source/docs and create a pull request with the changes here: https://github.com/next-theme/theme-next-docs/pulls

View File

@ -4,6 +4,9 @@ on:
issues:
types:
- labeled
pull_request_target:
types:
- labeled
jobs:
comment:

View File

@ -8,5 +8,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
# https://github.com/peaceiris/actions-label-commenter#work-with-other-auto-label-actions
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: "${{ secrets.GH_PAT }}"

View File

@ -1,19 +0,0 @@
name: Pull Request Reminder
on:
pull_request_target:
types:
- labeled
jobs:
reminder:
if: ${{ github.event.label.name == 'Configurations' }}
runs-on: ubuntu-latest
steps:
- name: Comment PR
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
This pull request contains changes to the configuration file. Please make sure the documentation in [NexT website](https://theme-next.js.org/docs/) is changed or added.
Please edit relevant source files here: https://github.com/next-theme/theme-next-docs/tree/master/source/docs and create a pull request with the changes here: https://github.com/next-theme/theme-next-docs/pulls