Actions50
- Branch Actions
- Commit Actions
- Issue Actions
- Project Actions
- Pull Request Actions
- Repository Actions
- Tag Actions
- File Actions
- User Actions
- Webhook Actions
Overview
This node integrates with Bitbucket Data Center to manage pull requests and other related resources. Specifically, the "Add Comment" operation for the Pull Request resource allows users to add textual comments to a specified pull request within a repository hosted on Bitbucket Data Center.
Common scenarios where this node is beneficial include:
- Automating code review workflows by programmatically adding comments to pull requests.
- Integrating external systems or CI/CD pipelines that need to post feedback or status updates directly into pull requests.
- Enhancing collaboration by automatically annotating pull requests based on analysis results or external triggers.
For example, after running automated tests, a CI system could use this node to add a comment summarizing test results on the relevant pull request.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication: either "Personal Access Token" or "Basic Auth". |
| Project | The key of the project containing the repository and pull request. |
| Pull Request ID | The numeric ID of the pull request to which the comment will be added. |
| Comment Text | The text content of the comment to add to the pull request. |
Output
The node outputs JSON data representing the newly created comment object as returned by the Bitbucket Data Center API. This typically includes details such as the comment's ID, text, author information, timestamps, and possibly links to the comment in the UI.
No binary data output is involved in this operation.
Dependencies
- Requires access to a Bitbucket Data Center instance with appropriate API permissions.
- Requires an API authentication credential configured in n8n, either via a personal access token or basic authentication.
- The node uses Bitbucket Data Center REST API endpoints under
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments.
Troubleshooting
- Authentication errors: Ensure the provided API token or credentials have sufficient permissions to add comments on pull requests.
- Invalid project or repository: Verify that the project key and repository slug are correct and accessible.
- Pull Request ID not found: Confirm the pull request ID exists in the specified repository.
- API request failures: Network issues or incorrect server URLs can cause failures; check connectivity and server configuration.
- Error messages from the node typically start with
Bitbucket Data Center API request failed:followed by the specific error message from the API. Review the message to identify issues like permission denied, resource not found, or invalid input.