diff --git a/approval.go b/approval.go index e2bb13f..af03a4c 100644 --- a/approval.go +++ b/approval.go @@ -58,21 +58,30 @@ func (a *approvalEnvironment) createApprovalIssue(ctx context.Context) error { issueTitle = fmt.Sprintf("%s: %s", issueTitle, a.issueTitle) } - issueBody := fmt.Sprintf(`Workflow is pending manual review. -URL: %s + approversBody := "" + for _, approver := range a.issueApprovers { + approversBody = fmt.Sprintf("%s> * @%s\n", approversBody, approver) + } + + issueBody := fmt.Sprintf(`> Workflow is pending manual review. +> URL: %s -Required approvers: %s +> [!IMPORTANT] +> Required approvers: +%s -Respond %s to continue workflow or %s to cancel.`, +> [!TIP] +> Respond %s to continue workflow or %s to cancel.`, a.runURL(), - a.issueApprovers, + approversBody, formatAcceptedWords(approvedWords), formatAcceptedWords(deniedWords), ) if a.issueBody != "" { - issueBody = fmt.Sprintf("%s\n\n%s", a.issueBody, issueBody) + issueBody = fmt.Sprintf(">%s\n>\n%s", a.issueBody, issueBody) } + issueBody = fmt.Sprintf(">[!NOTE]\n%s", issueBody) var err error fmt.Printf(