Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9539

Improve PreReceiveHook API to provide new commits

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 5.0.0
    • Enterprise
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Problem Definition

      When writing a pre-receive hook for Bitbucket, it's quite difficult to get the new commits being pushed, especially if the RefChange is an UPDATE.

      When doing validation on, for example, the commit message of new commits, or validating the commit in some other way, a rev-list command is required to determine which commits are "new" and need to be checked.

      Why should we do this?

      It would be more efficient if Bitbucket provided a way to access these new commits in some way, as all consumers of the API could use the list of Commits provided by Bitbucket, and would not have to fork their own process to get the same information.

      Attachments

        Issue Links

          Activity

            People

              mheemskerk Michael Heemskerk (Inactive)
              fhaehnel Felix
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: