@jira-deploy/core 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jira-deploy/core",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "repository": {
@@ -756,10 +756,10 @@ async function executeGrayReleaseDeployFlow(issueKey, ctx) {
756
756
  }
757
757
 
758
758
  log.push(`🚀 開始執行 GrayRelease Deploy - 環境: ${environment.toUpperCase()}`);
759
- log.push(' 確保每次都會從 build 開始,先執行: Planning');
759
+ log.push(' 先執行 Planning,確保部署流程從可簽核狀態重新開始');
760
760
  await jira.transitionByName(issueKey, 'Planning');
761
- await notifier.notify(issueKey, '確保每次都會從 Planning 開始,準備進入部署流程');
762
-
761
+ await notifier.notify(issueKey, '開始執行 GrayRelease deploy 流程,先回到 Planning');
762
+
763
763
  while (true) {
764
764
  const issue = await jira.getIssue(issueKey);
765
765
  const currentStatus = issue.fields.status.name;
@@ -867,6 +867,9 @@ async function executeAutoGrayReleaseFlow(issueKey, options, ctx) {
867
867
  }
868
868
 
869
869
  log.push(`🚀 開始執行 GrayRelease 流程 - 環境: ${environment.toUpperCase()}`);
870
+ log.push(' 先執行 PLANNING,確保流程從頭開始');
871
+ await jira.transitionByName(issueKey, 'Planning');
872
+ await notifier.notify(issueKey, '開始自動執行 GrayRelease 流程,從 PLANNING 開始');
870
873
 
871
874
  while (true) {
872
875
  const issue = await jira.getIssue(issueKey);
@@ -1154,7 +1157,7 @@ async function handleGrayReleaseApproval(issueKey, environment, systemCode, ctx)
1154
1157
 
1155
1158
  // UAT: assign first reviewer → 等待留言 → 轉 final approver → 等待 approve
1156
1159
  if (env === 'uat') {
1157
- const {commentReviewerAlias, finalApproverAlias} = getGrayReleaseUatApprovers();
1160
+ const { commentReviewerAlias, finalApproverAlias } = getGrayReleaseUatApprovers();
1158
1161
  const commentReviewerAccountId = resolveAccountId(commentReviewerAlias);
1159
1162
  if (!commentReviewerAccountId) {
1160
1163
  throw new Error(`找不到 UAT 第一階段簽核人 accountId,請設定 GRAYRELEASE_UAT_COMMENT_REVIEWER_ALIAS 或 release.grayReleaseUatApprovers.commentReviewerAlias`);