Skip to content

Commit 96f8bc9

Browse files
committed
Dont send null to Jira.
1 parent 7dee0da commit 96f8bc9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To update the fields of an issue you need to specify an issue key and field data
1212

1313
```yaml
1414
- name: Comment on issue
15-
uses: kherP/[email protected].1
15+
uses: kherP/[email protected].2
1616
with:
1717
issue: INC-2;INC-3
1818
fields: customfield_10006=https://www.google.com;customfield_10007=4

action.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ module.exports = class {
1717
const { fields } = this.argv
1818
console.log(this.argv, this.config)
1919
console.log(`updating ${issueIds} with \n${fields}`)
20-
await this.Jira.updateField(issueIds, fields)
21-
20+
if(issueIds !== null){
21+
await this.Jira.updateField(issueIds, fields)
22+
}
2223
return {}
2324
}
2425
}

0 commit comments

Comments
 (0)