Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-2555

Make authenticated user available to git hooks

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Resolved (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Feedback Policy:
      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 An updated workflow for server feature suggestions.

      Description

      It would be useful for people writing custom git hooks to have access to the authenticated user in their hooks.

      Stash currently authenticates users when they push to or pull from a Stash repository, but does not pass on the user to git. We could easily make the user available through an environment variable (e.g. USER, STASH_USER or GIT_USER)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mheemskerk Michael Heemskerk
              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: