enhance(gh): Allow edits and access to secrets by maintainersが無効な場合、コメントを表示するように

This commit is contained in:
kakkokari-gtyih 2025-01-04 13:06:03 +09:00
parent 3c81926f71
commit bcfc73ad57
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
name: Check PR can be modified by maintainer
on:
pull_request_target:
branches:
- master
- develop
jobs:
check-pr-maintainer:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Send Message
if: github.event.pull_request.maintainer_can_modify != 'true'
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: check-pr-maintainer
message: |
Please allow maintainers to modify this Pull Request so that we can help you with your changes.
You can do this by checking the box "Allow edits and access to secrets by maintainers" in the Pull Request settings.
- name: Send Message
if: github.event.pull_request.maintainer_can_modify == 'true'
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: check-pr-maintainer
mode: delete
message: |
Thank you!
create_if_not_exists: false