In an internal bot that me and my team use, we would like the bot to the able to tag certain users in comments on a pull request. In our first draft of the system, we manually put the users with their @-name (e.g. @JohnDoe). These @-names were located in a configuration file that we created ourselves. However, this does not seem to work. The text rendered as normal text and not as a tag.
We thought this has to do with the recent GDPR changes and the removal of usernames of the Bitbucket API.
How could we achieve this result? We can obviously modify the format of the configuration file.
Hi all,
I wrote an article to cover how to add a comment to a PR with a mention to a user in a Forge app.
Have a look and let me know what you think:
Mention a user in a PR comment using the Bitbucket REST API
The Forge app itself is described in more detail here, the repository is open source so you can check the code and install it on your workspace (maybe a test one to start with) and adjust the logic to your teams' needs:
Assign PRs randomly to a specific list of users in Bitbucket Cloud
If you are just looking at the API request, here is a guide here on how to mention a user:
https://confluence.atlassian.com/bbkb/how-to-mention-users-in-pull-request-comments-through-the-bitbucket-cloud-rest-api-1167818794.html
(But my article goes into more details)
Cheers,
Caterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.