Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.
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

Open

Description

@hanbaga

in my local, "git push origin tag-name" call trigger the push tag hook. what's the difference.

Activity

  1. hanbaga commented on May 16, 2017

    @hanbaga
    Author

    createRepositoryTag doesn't trigger push tag hook, is it normal. @the-kid89

  2. Sudo-Kid commented on May 16, 2017

    @Sudo-Kid
    Contributor

    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.

  3. Sudo-Kid commented on May 16, 2017

    @Sudo-Kid
    Contributor

    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?

  4. Sudo-Kid commented on May 16, 2017

    @Sudo-Kid
    Contributor

    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.

  5. hanbaga commented on May 17, 2017

    @hanbaga
    Author
        git.addprojecthook(
            project_id=CONF.GITHUB.project_id,                      #valid project_id
            url=CONF.GITHUB.tag_hook,                                   #valid url
            push=True,
            tag_push=True
        ):
    

    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.

  6. Sudo-Kid commented on May 17, 2017

    @Sudo-Kid
    Contributor

    What version of Gitlab are you currently running?

  7. hanbaga commented on May 18, 2017

    @hanbaga
    Author

    GitLab 7.2.1

  8. Sudo-Kid commented on May 18, 2017

    @Sudo-Kid
    Contributor

    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?

  9. Sudo-Kid commented on Jul 7, 2017

    @Sudo-Kid
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions