Hi.
I feel like this should be simple and perhaps I am just not getting it.
I want my App to add a comment to a PR through a API call. This is what I have:
- On a PR create hook my app gets called
- My App calls the Authorization server to get a access_token using a sign JWT token
- I am asking for a urn:bitbucket:oauth2:jwt as the grant
- I then use that token to call the API to post a comment
I feel like when I ask for the access token I need to ask on behalf of the user that wants to post the comment, but I can’t figure that out.
I want the comment to have a different author than the one who created the PR.
I have been trying to figure this out, but I either don’t get it, or it can’t be done.
Thanks Robert