- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.1k
Bitbucket: Add push_commands support when PR is updated #2085
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
Conversation
| PR Compliance Guide 🔍Below is a summary of compliance checks for this PR: 
 Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label | |||||||||||||||||||||||
| PR Code Suggestions ✨Latest suggestions up to 5886bae 
 
 Previous suggestionsSuggestions up to commit 46c47e1
 | |||||||||||||||||||||||||||||||||||||||
PR Type
Enhancement
Description
Add support for
push_commandswhen Bitbucket PR is updatedImplement validation to ensure push commands only trigger from actual commits
Validate time delta between last commit and PR update (max 15 seconds)
Verify commit author matches PR updater to prevent false triggers
Diagram Walkthrough
File Walkthrough
bitbucket_app.py
Add push_commands validation and pullrequest:updated handlerpr_agent/servers/bitbucket_app.py
_validate_time_from_last_commit_to_pr_update()function tovalidate push events by checking time delta and author match
pullrequest:updatedevent to triggerpush_commandswith validation
bitbucket_app.handle_push_triggersetting
new
PRAgent()instance