Skip to content

Commit

Permalink
SNOW-197364 fixed assignee for Jiras generated (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mkeller authored Sep 23, 2020
1 parent c20f24c commit 5b4a588
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/gajira-create/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = class {
providedFields.push({
key: 'assignee',
value: {
name: argv.assignee
id: argv.assignee
}
})
}
Expand Down Expand Up @@ -92,7 +92,7 @@ module.exports = class {

const issue = await this.Jira.createIssue(payload)

return { issue: issue.key , body: payload}
return { issue: issue.key }
}

preprocessArgs () {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/gajira-create/dist/index.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions .github/actions/gajira-create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ async function exec () {
// result.issue is the issue key
console.log(`Created issue: ${result.issue}`)

console.log(`With body:`)
console.log(JSON.stringify(result.body, null, 4))
// Expose created issue's key as an output
core.setOutput("issue", result.issue)

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jira_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
PROJECT: SNOW
TYPE: Bug
AREA: "Data Platform: Ecosystem"
ASSIGNEE: triage-data_platform_drivers_cli-dl
ASSIGNEE: "5d56d115ba0a060da220202b"
SUMMARY: "{{ event.issue.title }}"
DESCRIPTION: "{{ event.issue.body }}\n\n_Created from GitHub Action_ for {{ event.issue.html_url }}"
- name: update issue
Expand Down

0 comments on commit 5b4a588

Please sign in to comment.