File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,8 @@ async function _updateNotionStatuses (branch) {
89
89
}
90
90
break
91
91
case 'staging' :
92
- if ( commitMessage . includes ( 'from coursedog/dev' ) ) {
93
- // Update all tasks that are in Completed Dev to Completed Staging
94
- notionUtil . updateByStatus ( 'Completed (Dev)' , 'Completed (Staging)' )
95
- } else if ( commitMessage . match ( / # + [ 0 - 9 ] / ) ) {
96
- // direct from open PR to staging
92
+ if ( commitMessage . match ( / # + [ 0 - 9 ] / ) ) {
93
+ // direct from open PR to dev
97
94
const prNumber = extractPrNumber ( commitMessage )
98
95
if ( ! prNumber ) return
99
96
notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Staging)' )
@@ -104,7 +101,7 @@ async function _updateNotionStatuses (branch) {
104
101
// direct from open PR to dev
105
102
const prNumber = extractPrNumber ( commitMessage )
106
103
if ( ! prNumber ) return
107
- notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Dev )' )
104
+ notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Staging )' )
108
105
}
109
106
break
110
107
You can’t perform that action at this time.
0 commit comments