Skip to content

Commit 5d194af

Browse files
committed
fix jira
1 parent 7884a69 commit 5d194af

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

update_jira/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const github = require('@actions/github')
33
const { Octokit } = require('@octokit/rest')
44
const Jira = require('./../utils/jira')
55

6+
const stagingReleaseEnvId = 11942
7+
const prodReleaseEnvId = 11943
8+
69
const statusMap = {
710
'master': {
811
status: 'Done',
@@ -12,7 +15,7 @@ const statusMap = {
1215
customFields: {
1316
// prod release timestamp
1417
customfield_11475: new Date(),
15-
customfield_11473: { name: 'Production' }
18+
customfield_11473: { id: prodReleaseEnvId }
1619
}
1720
},
1821
'main': {
@@ -23,7 +26,7 @@ const statusMap = {
2326
customFields: {
2427
// prod release timestamp
2528
customfield_11475: new Date(),
26-
customfield_11473: { name: 'Production' }
29+
customfield_11473: { id: prodReleaseEnvId }
2730
}
2831
},
2932
'staging': {
@@ -34,7 +37,7 @@ const statusMap = {
3437
customFields: {
3538
// staging release timestamp
3639
customfield_11474: new Date(),
37-
customfield_11473: { name: 'Staging' }
40+
customfield_11473: { id: stagingReleaseEnvId }
3841
}
3942
},
4043
'dev': {

0 commit comments

Comments
 (0)