Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the equivalent of --author in Bitbucket REST API?

Ehab Arman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2021

Hello,

I am trying to commit changes on behalf of another person using REST API

Is there an equivalent to git --author <name <email>>in rest endpoints?

The API version used is 1.0

Could someone help?

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
November 19, 2021

Hi @Ehab Arman

Welcome to Atlassian Community!

Bitbucket does not have endpoints for git commands, all your git commands are run locally on your machine and then synced to the remote repository.

Ehab Arman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2021

Thanks Mikael

Like Mikael Sandberg likes this
dbarn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 23, 2023

That's not technically true, the Bitbucket REST API does have endpoints for uploading and updating files in a repository, which includes the ability to specify a commit message, so these endpoints are clearly running git commands under the hood in order to perform commits. It seems like it should be technically possible to support an additional param to these endpoints for specifying the git author.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events