Hi all!
By using the bitbucket Java APIs (eg: https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/pull/PullRequest.html), I am able to make commits via Bitbucket Java API based on an existing pull request in the Bitbucket server.
But I wonder if I can use the Bitbucket Java API to actually create a PullRequest? (eg: create repository, make file changes in that repository to create commit, open a pull request for that commit, and merge the pull request to the master branch.) It seems like Bitbucket API classes like PullRequest, Repository only provides getter methods. (https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/repository/Repository.html, eg: https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/pull/PullRequest.html)
Any help is greatly appreciated!
Thanks!
Jiawei
Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.
Get Certified! ✍️Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.