-
Suggestion
-
Resolution: Done
-
None
-
None
Users have a requirement to distinguish between the author and the committer in pre-receive hooks etc.
Although this is possible to get the committer information via the low-level git API, it's much more cumbersome than the higher-level API which returns for example com.atlassian.bitbucket.commit.Commit objects.
Consider adding the following methods to Commit:
@Nonnull Person getCommitter(); @Nonnull Date getCommitterTimestamp();
- relates to
-
BSERV-4415 Make merge commit from author of pull requests
- Closed
-
BSERV-8868 Show both author and committer information on Bitbucket Server UI
- Closed
Bitbucket Server 5.0 will introduce Commit.getCommitter(), Commit.getCommitterTimestamp(), Blame.getCommitter() and Blame.getCommitterTimestamp(). The new properties are available via both the Java API and the REST API.
In addition, Bitbucket Server 5.0 also introduces the ability to pass an explicit committer to MergeCommandParameters when creating merges, allowing plugin developers to control author and committer independently. If one is provided and not the other, it will be used for both (so if you only provide an author, they'll also be the committer, and if you only provide a committer, they'll also be the author).
Rendering the new data in the UI will be tracked separately on
BSERV-8868. Changes to how pull request merges are handled are also tracked separately, onBSERV-4415. This issue only tracks the API enhancement.Best regards,