スナップショットの手動更新時に PR 作成先を起動時に指定したブランチにする #151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Helper | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
label: | |
name: Auto PR Label | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 | |
assign: | |
name: Auto PR Assign | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
permissions: | |
pull-requests: write | |
repository-projects: read | |
if: endsWith(github.event.pull_request.user.login, '[bot]') == false && github.event.pull_request.assignee == null | |
steps: | |
- name: Assign Author to PR | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.event.pull_request.user.login }} |