@@ -81,6 +81,11 @@ async function main() {
8181 type : 'boolean' ,
8282 default : false ,
8383 } )
84+ . option ( 'environment' , {
85+ choices : [ 'prod' , 'dev' ] ,
86+ type : 'string' ,
87+ default : process . env . ENVIRONMENT || 'prod' ,
88+ } )
8489 . example (
8590 '$0 --head-ref "hotfix/v0.5.3/preview/cherry-pick-abc1234" --test' ,
8691 'Test channel detection logic' ,
@@ -105,6 +110,7 @@ async function main() {
105110
106111 // Get inputs from CLI args or environment
107112 const headRef = argv . headRef || process . env . HEAD_REF ;
113+ const environment = argv . environment ;
108114 const body = argv . prBody || process . env . PR_BODY || '' ;
109115 const isDryRun = argv . dryRun || body . includes ( '[DRY RUN]' ) ;
110116 const forceSkipTests =
@@ -226,6 +232,8 @@ async function main() {
226232 '--field' ,
227233 `release_ref=${ releaseRef } ` ,
228234 '--field' ,
235+ `environment=${ environment } ` ,
236+ '--field' ,
229237 originalPr ? `original_pr=${ originalPr . toString ( ) } ` : 'original_pr=' ,
230238 ] ;
231239
@@ -259,6 +267,7 @@ async function main() {
259267 const commentBody = `🚀 **Patch Release Started!**
260268
261269**📋 Release Details:**
270+ - **Environment**: \`${ environment } \`
262271- **Channel**: \`${ channel } \` → publishing to npm tag \`${ npmTag } \`
263272- **Version**: \`${ version } \`
264273- **Hotfix PR**: Merged ✅
0 commit comments