Commit tasks like pullRequest now support optionally defining a Personal Access Token that you create through your SCM and provide as a GraphQL Mutation input.
You must grant sufficient permission when creating these Personal Access Tokens. These permissions will vary from provider to provider but generally include read/write access to Repositories and Pull Requests.
Note:Bitbucket Data Center and Server requires version 5.5.x or later
For more information on creating Personal Access Tokens, please see: