Add new input 'issue-body' (#74)
* Add new input 'issue-body' Similar to the 'issue-title' input, 'issue-body' allows to put custom text to the body of the approval issue. * Update readme for 'issue-body' input
This commit is contained in:
parent
a28646d113
commit
948dfe9537
5 changed files with 16 additions and 2 deletions
3
main.go
3
main.go
|
|
@ -171,6 +171,7 @@ func main() {
|
|||
}
|
||||
|
||||
issueTitle := os.Getenv(envVarIssueTitle)
|
||||
issueBody := os.Getenv(envVarIssueBody)
|
||||
minimumApprovalsRaw := os.Getenv(envVarMinimumApprovals)
|
||||
minimumApprovals := 0
|
||||
if minimumApprovalsRaw != "" {
|
||||
|
|
@ -180,7 +181,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
apprv, err := newApprovalEnvironment(client, repoFullName, repoOwner, runID, approvers, minimumApprovals, issueTitle)
|
||||
apprv, err := newApprovalEnvironment(client, repoFullName, repoOwner, runID, approvers, minimumApprovals, issueTitle, issueBody)
|
||||
if err != nil {
|
||||
fmt.Printf("error creating approval environment: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue