Add the issue link to the action output (#64)

Signed-off-by: Thomas Stringer <thomas@trstringer.com>
This commit is contained in:
Thomas Stringer 2022-11-14 19:27:43 -05:00 committed by GitHub
parent 36a6b4b6cb
commit a28646d113
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,8 +77,13 @@ Respond %s to continue workflow or %s to cancel.`,
Body: &issueBody,
Assignees: &a.issueApprovers,
})
if err != nil {
return err
}
a.approvalIssueNumber = a.approvalIssue.GetNumber()
return err
fmt.Printf("Issue created: %s\n", a.approvalIssue.GetURL())
return nil
}
func approvalFromComments(comments []*github.IssueComment, approvers []string, minimumApprovals int) (approvalStatus, error) {