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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great to support adding, deleting, updating a webhook of a git provider.
I'd be happy to help with this.
The text was updated successfully, but these errors were encountered:
👋 hey there, this is currently supported by this package: https://pkg.go.dev/github.com/drone/go-scm@v1.16.2/scm#example-Hook-Create
note that when creating hooks you should use NativeEvents since Events is being deprecated:
NativeEvents
Events
input := &scm.HookInput{ Name: "CI", Target: "https://ci.example.com", Secret: "topsecret", SkipVerify: false, NativeEvents: []string{"issue_comment", "issues"}, } _, _, err = client.Repositories.CreateHook(ctx, "octocat/Hello-World", input) `
Sorry, something went wrong.
hi @bradrydzewski , thanks for your quick response. Sorry I didn't go through the whole repo. I just try to find it from WebService interface
Great!
No branches or pull requests
It would be great to support adding, deleting, updating a webhook of a git provider.
I'd be happy to help with this.
The text was updated successfully, but these errors were encountered: