You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2020. It is now read-only.
calling createRepositoryTag doesn't trigger push tag event hook #211
If you used the addprojecthook to create the hook and didn't pass in push=True it could be what is causing your issue. There is a reported issue I just found related to a similar problem #152.
it is the code to add a hook. I want to trigger the hook not when calling updateFile but when calling createRepositoryTag. event using API, it doesn't work.
I'm rather late on this but after some searching around. I believe this is a GitLab issue. I also don't have access to a 7.2.1 gitlab environment to test further.
Activity
hanbaga commentedon May 16, 2017
createRepositoryTag doesn't trigger push tag hook, is it normal. @the-kid89
Sudo-Kid commentedon May 16, 2017
I'm looking into it but from what I have found from Gitlab it doesn't appear to trigger any hooks.
Edit: If you create it from the API it doesn't appear to trigger.
Sudo-Kid commentedon May 16, 2017
Can you expand a little on your setup currently so I can better look into this. Is there a post/pre-receive setup on the server?
Sudo-Kid commentedon May 16, 2017
If you used the
addprojecthookto create the hook and didn't pass inpush=Trueit could be what is causing your issue. There is a reported issue I just found related to a similar problem #152.hanbaga commentedon May 17, 2017
it is the code to add a hook. I want to trigger the hook not when calling updateFile but when calling createRepositoryTag. event using API, it doesn't work.
Sudo-Kid commentedon May 17, 2017
What version of Gitlab are you currently running?
hanbaga commentedon May 18, 2017
GitLab 7.2.1
Sudo-Kid commentedon May 18, 2017
That's an old one. I will need to setup an old version to test with.
Are you pushing the tags through the API or over git and can you check to make sure that the hook has been added to the gitlab project?
Sudo-Kid commentedon Jul 7, 2017
I'm rather late on this but after some searching around. I believe this is a GitLab issue. I also don't have access to a 7.2.1 gitlab environment to test further.