64
64
script : |
65
65
const script = require('${{ github.action_path }}/scripts/action/get_pull_requests.js')
66
66
return await script({github, context})
67
- # pushしたブランチでPRを作る
67
+ # pushしたブランチで修正PRを作る
68
68
- name : Create PullRequest
69
69
70
70
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
79
script : |
80
80
const script = require('${{ github.action_path }}/scripts/action/create_pull_request.js')
81
81
return await script({github, context})
82
+ # 元のPRを出したユーザーを修正PRにアサインする
82
83
- name : Assign a user
83
84
84
85
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
90
script : |
90
91
const script = require('${{ github.action_path }}/scripts/action/assign_a_user.js')
91
92
await script({github, context})
92
- # 既にformat修正のPRがある状態で 、手動でformatを修正した場合、format修正のPRを閉じる
93
+ # 既に修正PRがある状態で 、手動でformatを修正した場合、修正PRを閉じる
93
94
- name : Close PullRequest
94
95
95
96
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:
100
101
script : |
101
102
const script = require('${{ github.action_path }}/scripts/action/close_pull_request.js')
102
103
await script({github, context})
104
+ # exit-failureがtrueで差分がある場合は異常終了する
103
105
- name : Exit
104
106
if : (github.event_name != 'pull_request' || github.event.action != 'closed') && steps.diff.outputs.result != '' && inputs.exit-failure == 'true'
105
107
run : exit 1
0 commit comments