Add debug statement for issue create
This PR adds a debug logging statement to stdout prior to creating the issue. This will help troubleshoot issues, such as a GitHub API http/422 response status with invalid message.
This commit is contained in:
parent
c24bf80784
commit
36e099bf8b
1 changed files with 8 additions and 0 deletions
|
|
@ -57,6 +57,14 @@ Respond %s to continue workflow or %s to cancel.`,
|
|||
formatAcceptedWords(deniedWords),
|
||||
)
|
||||
var err error
|
||||
fmt.Printf(
|
||||
"Creating issue in repo %s/%s with the following content:\nTitle: %s\nApprovers: %s\nBody:\n%s",
|
||||
a.repoOwner,
|
||||
a.repo,
|
||||
issueTitle,
|
||||
a.approvers,
|
||||
issueBody,
|
||||
)
|
||||
a.approvalIssue, _, err = a.client.Issues.Create(ctx, a.repoOwner, a.repo, &github.IssueRequest{
|
||||
Title: &issueTitle,
|
||||
Body: &issueBody,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue