6464 script : |
6565 const script = require('${{ github.action_path }}/scripts/action/get_pull_requests.js')
6666 return await script({github, context})
67- # pushしたブランチでPRを作る
67+ # pushしたブランチで修正PRを作る
6868 - name : Create PullRequest
69697070 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')
7979 script : |
8080 const script = require('${{ github.action_path }}/scripts/action/create_pull_request.js')
8181 return await script({github, context})
82+ # 元のPRを出したユーザーを修正PRにアサインする
8283 - name : Assign a user
83848485 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]'
8990 script : |
9091 const script = require('${{ github.action_path }}/scripts/action/assign_a_user.js')
9192 await script({github, context})
92- # 既にformat修正のPRがある状態で 、手動でformatを修正した場合、format修正のPRを閉じる
93+ # 既に修正PRがある状態で 、手動でformatを修正した場合、修正PRを閉じる
9394 - name : Close PullRequest
94959596 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:
100101 script : |
101102 const script = require('${{ github.action_path }}/scripts/action/close_pull_request.js')
102103 await script({github, context})
104+ # exit-failureがtrueで差分がある場合は異常終了する
103105 - name : Exit
104106 if : (github.event_name != 'pull_request' || github.event.action != 'closed') && steps.diff.outputs.result != '' && inputs.exit-failure == 'true'
105107 run : exit 1
0 commit comments