We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In run send a GitHub commit status for pending, then on complete either error or success.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks
go-github is already used by the package so it can be used here, the logic would be:
func (m *Monkey) run(errs []error) { // commit status pending if err := m.RunJob(); err != nil { appendAndLog(errs, "Running job `%s` failed with error: %s", m.Id, err.Error()) // commit status failed } else { m.logFile.Seek(0, io.SeekEnd) m.logFile.WriteString(chidori.Format(logger, log.LevelInfo, "\nRunning job `%s` was successful\n", m.Id)) // commit status success } }
Here's the create commit status endpoint from the typescript Octokit library, I'm not exactly sure how this would be done with the go-github library:
createCommitStatus: { parameters: RequestParameters & Omit<Endpoints["POST /repos/{owner}/{repo}/statuses/{sha}"]["parameters"], "baseUrl" | "headers" | "mediaType">; response: Endpoints["POST /repos/{owner}/{repo}/statuses/{sha}"]["response"]; };
The text was updated successfully, but these errors were encountered:
@skelouse can you add more details to the issue
Sorry, something went wrong.
No branches or pull requests
In run send a GitHub commit status for pending, then on complete either error or success.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks
go-github is already used by the package so it can be used here, the logic would be:
Here's the create commit status endpoint from the typescript Octokit library, I'm not exactly sure how this would be done with the go-github library:
Example
The text was updated successfully, but these errors were encountered: