File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,7 @@ 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 ] / ) ) {
97
93
const prNumber = extractPrNumber ( commitMessage )
98
94
if ( ! prNumber ) return
99
95
notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Staging)' )
@@ -104,7 +100,7 @@ async function _updateNotionStatuses (branch) {
104
100
// direct from open PR to dev
105
101
const prNumber = extractPrNumber ( commitMessage )
106
102
if ( ! prNumber ) return
107
- notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Dev )' )
103
+ notionUtil . updateByPR ( `${ repositoryName } /pull/${ prNumber } ` , 'Completed (Staging )' )
108
104
}
109
105
break
110
106
You can’t perform that action at this time.
0 commit comments