Skip to content

Bitbucket Cloud - Draft Pull Request Support #367

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nazzer23
Copy link

@nazzer23 nazzer23 commented Jun 9, 2025

Bitbucket Cloud Pull Request - add the ability to be able to detect if a Pull Request is a Draft - assume false for when Payload doesn't provide draft key.

Testing done

Ran the included maven tests and within testProcessPullRequestApprovalWebhookGit - I outputted actionCaptor.getValue().getPayload().getPullRequest() to ensure that draft=false - as draft isn't included in the existing dataset.
Bitbucket Cloud Event Payloads (https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Pull-request) specify that the Pull Request object should return draft. This may not be happening in practice as it appears to have only been incorporated into Bitbucket Cloud in the last 6 months.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

…f a Pull Request is a Draft - assume false for when Payload doesn't provide draft key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant