-
Suggestion
-
Resolution: Fixed
-
None
-
None
-
None
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)
- was cloned as
-
BSERV-3889 Make repository/project name available to git hooks
- Gathering Interest
Stefan, we are trying the same .. but seems like the build fails as soon as we add the constructor to the pre-hook plugin.
I have opened a question with details In regards to the same as below .. hopefully you can guide us.
https://answers.atlassian.com/questions/32968488/how-to-retrieve-logged-in-userid-in-pre-receive-hook-plugin
-Thanks in advance