Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Thomas Stringer
7089b5f035
Add the issue link to the action output
Signed-off-by: Thomas Stringer <thomas@trstringer.com>
2022-11-14 19:23:34 -05:00

View file

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