-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 処理内容を説明するコメント追加 * format修正のPR -> 修正PR
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ runs: | |
script: | | ||
const script = require('${{ github.action_path }}/scripts/action/get_pull_requests.js') | ||
return await script({github, context}) | ||
# pushしたブランチでPRを作る | ||
# pushしたブランチで修正PRを作る | ||
- name: Create PullRequest | ||
uses: actions/[email protected] | ||
if: steps.diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch') | ||
|
@@ -79,6 +79,7 @@ runs: | |
script: | | ||
const script = require('${{ github.action_path }}/scripts/action/create_pull_request.js') | ||
return await script({github, context}) | ||
# 元のPRを出したユーザーを修正PRにアサインする | ||
- name: Assign a user | ||
uses: actions/[email protected] | ||
if: steps.diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 && github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]' | ||
|
@@ -89,7 +90,7 @@ runs: | |
script: | | ||
const script = require('${{ github.action_path }}/scripts/action/assign_a_user.js') | ||
await script({github, context}) | ||
# 既にformat修正のPRがある状態で、手動でformatを修正した場合、format修正のPRを閉じる | ||
# 既に修正PRがある状態で、手動でformatを修正した場合、修正PRを閉じる | ||
- name: Close PullRequest | ||
uses: actions/[email protected] | ||
if: (github.event_name == 'pull_request' && (github.event.action == 'closed' || steps.diff.outputs.result == '')) || ((github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch') && steps.diff.outputs.result == '') | ||
|
@@ -100,6 +101,7 @@ runs: | |
script: | | ||
const script = require('${{ github.action_path }}/scripts/action/close_pull_request.js') | ||
await script({github, context}) | ||
# exit-failureがtrueで差分がある場合は異常終了する | ||
- name: Exit | ||
if: (github.event_name != 'pull_request' || github.event.action != 'closed') && steps.diff.outputs.result != '' && inputs.exit-failure == 'true' | ||
run: exit 1 | ||
|
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