-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
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
Hooks api #103
base: master
Are you sure you want to change the base?
Hooks api #103
Conversation
I'll check this after merging #102. 👍 |
# Send 'DELETE a hook for a repository' request | ||
# @see https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/hooks/%7Buid%7D#delete | ||
# | ||
# @param options [Hash] The attributes to update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this comment should be fixed. 🤔
# | ||
# @param options [Hash] The attributes to update | ||
# @return [Tinybucket::Model::Hook] | ||
def update(hook, options = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method require hook
param comment just like here.
# | ||
# @param options [Hash] The attributes to update | ||
# @return [Boolean] | ||
def delete(hook, options = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method require hook
param comment just like here.
lib/tinybucket/resource/hooks.rb
Outdated
# @param branch [String] | ||
# @param options [Hash] | ||
# @return [Tinybucket::Model::Hook] | ||
def find(branch, options = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According this code, I think that branch
argument should be renamed to hook
. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just add some comments, right now. 📝
And I'll test this pull request after some days.
Pushed updates regarding your comments. Feel free to review whenever you can |
I created a script to test each hooks API with real test repository on Bitbucket. And I found these points. (1) Bitbucket pipeline webhook can fetch via
|
This looks like a bitbucket issue. in the past i managed to avoid these errors by explicitly setting the |
No description provided.