Skip to content

Commit

Permalink
ARC-407: Fix workflow mapping before sending it to Jira. (atlassian#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
atrigueiro authored Jul 21, 2021
1 parent 7fd777e commit 03558d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/transforms/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function mapPullRequests(pull_requests) {
));
}
module.exports = async (payload) => {
const { workflow_run } = payload;
const { workflow_run, workflow } = payload;
const { issueKeys } = parseSmartCommit(`${workflow_run.head_branch}\n${workflow_run.head_commit.message}`);

if (!issueKeys) {
Expand All @@ -57,7 +57,7 @@ module.exports = async (payload) => {
product: 'GitHub Actions',
builds: [{
schemaVersion: '1.0',
pipelineId: workflow_run.id,
pipelineId: workflow.id,
buildNumber: workflow_run.run_number,
updateSequenceNumber: Date.now(),
displayName: workflow_run.name,
Expand Down

0 comments on commit 03558d5

Please sign in to comment.