Actions29
Overview
This node integrates with the Bitbucket Data Center API to manage pull requests within a specified project repository. The "Get" operation for the "Pull Request" resource retrieves detailed information about a specific pull request by its ID. This is useful in scenarios where you want to programmatically fetch the status, details, or metadata of a particular pull request for review, automation, or reporting purposes.
Practical examples include:
- Automatically fetching pull request details to trigger downstream workflows based on their status.
- Integrating pull request data into dashboards or notifications.
- Auditing or logging pull request activity as part of CI/CD pipelines.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication: "Personal Access Token" or "Basic Auth". |
| Project | The key of the project containing the repository (loaded dynamically). |
| Repository | The slug of the repository within the project (loaded dynamically based on selected project). |
| Pull Request ID | The numeric ID of the pull request to retrieve. |
Output
The output JSON contains the full details of the requested pull request as returned by the Bitbucket Data Center API. This typically includes fields such as:
- Pull request ID, title, description, and state.
- Source and destination branches.
- Author and reviewers.
- Creation and update timestamps.
- Merge status and related metadata.
The output is a single JSON object representing the pull request.
Dependencies
- Requires an API server URL for Bitbucket Data Center.
- Requires either a personal access token or basic authentication credentials configured in n8n.
- Uses the Bitbucket Data Center REST API endpoints under
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}.
Troubleshooting
Common issues:
- Invalid or missing project key or repository slug will cause API errors.
- Incorrect pull request ID may result in "not found" errors.
- Authentication failures if credentials are incorrect or expired.
- Network connectivity issues to the Bitbucket Data Center server.
Error messages:
"Bitbucket Data Center API request failed: ..."indicates an issue with the API call; check credentials, endpoint URL, and parameters."The operation "get" is not supported for resource "pullRequest"would indicate a misconfiguration but should not occur here since "get" is supported.
Resolution tips:
- Verify that the project and repository exist and the user has access.
- Confirm the pull request ID is correct.
- Ensure credentials are valid and have sufficient permissions.
- Check network connectivity and server availability.
Links and References
- Bitbucket Data Center REST API Documentation
- Bitbucket Pull Requests API (specific section for pull requests)