diff --git a/.chloggen/fix-issuegenerator-body.yaml b/.chloggen/fix-issuegenerator-body.yaml new file mode 100644 index 000000000..7aa5ae423 --- /dev/null +++ b/.chloggen/fix-issuegenerator-body.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: bug_fix + +# The name of the component, or a single word describing the area of concern, (e.g. crosslink) +component: issuegenerator + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Print correct workflow link in the issue body. + +# One or more tracking issues related to the change +issues: [840] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/issuegenerator/main.go b/issuegenerator/main.go index caf4904be..abb436486 100644 --- a/issuegenerator/main.go +++ b/issuegenerator/main.go @@ -225,7 +225,7 @@ func (rg *reportGenerator) templateHelper(param string) string { case "jobName": return "`" + rg.envVariables[githubWorkflow] + "`" case "linkToBuild": - return fmt.Sprintf("%s/%s/actions/runs/%s", rg.envVariables[githubServerURL], rg.envVariables[githubOwnerAndRepository], rg.envVariables[githubRunID]) + return fmt.Sprintf("%s/%s/%s/actions/runs/%s", rg.envVariables[githubServerURL], rg.envVariables["githubOwner"], rg.envVariables["githubRepository"], rg.envVariables[githubRunID]) case "failedTests": return rg.reports[rg.reportIterator].getFailedTests() default: