mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Refactor Pull Request Reminder
This commit is contained in:
parent
c596155ef9
commit
8fd8f9247c
6
.github/label-commenter-config.yml
vendored
6
.github/label-commenter-config.yml
vendored
@ -27,3 +27,9 @@ labels:
|
|||||||
issue:
|
issue:
|
||||||
body: This will not be worked on but we appreciate your contribution.
|
body: This will not be worked on but we appreciate your contribution.
|
||||||
action: close
|
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
|
||||||
|
|||||||
3
.github/workflows/label-commenter.yml
vendored
3
.github/workflows/label-commenter.yml
vendored
@ -4,6 +4,9 @@ on:
|
|||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- labeled
|
- labeled
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
|
|||||||
3
.github/workflows/labeler.yml
vendored
3
.github/workflows/labeler.yml
vendored
@ -8,5 +8,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v4
|
- uses: actions/labeler@v4
|
||||||
|
# https://github.com/peaceiris/actions-label-commenter#work-with-other-auto-label-actions
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GH_PAT }}"
|
||||||
|
|||||||
19
.github/workflows/pr-reminder.yml
vendored
19
.github/workflows/pr-reminder.yml
vendored
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user