Skip to content

Include documentation on the creation of hooks in the ReadMe #295

Closed

Description

@Jack-Collins

Sorry if this is the wrong place - I have been trying to set up a Travis hook via the github api using this library but can not find any documentation on this in the readme, or anywhere else. If somebody knows how to do it, it would be a great addition to this repo's readme I think.

Activity

  1. AurelioDeRosa commented on Feb 26, 2016

    @AurelioDeRosa
    Member

    You can start here but for sure this is something we should document.

  2. self-assigned this
    on Apr 23, 2016
  3. clayreimann commented on May 17, 2016

    @clayreimann
    Member
  4. Jack-Collins commented on May 19, 2016

    @Jack-Collins
    Author
    var options = {
                "name" : "travis",
            "config" : {
                        "user" : "your-Username",
                        "token" : "00000000000000000000000000",
                        "domain" : "http://notify.travis-ci.org",
                        "content_type": "json"
                        },
            "events" : ["push", "pull_request"],
            "active" : true
            }
            //create the git-travis hook
            try{
                fork.createHook(options, function(){
                    console.log("A travis hook has been created which will trigger a build on push and pull request events...");
                });
            }
            catch(err){
                 console.log(err);
            }
  5. Jack-Collins commented on May 19, 2016

    @Jack-Collins
    Author

    I successfully created a travis hook using the above. Wasn't sure where to document it...

  6. clayreimann commented on May 19, 2016

    @clayreimann
    Member

    @Jack-Collins the best place to document it would be to add an example in the gh-pages branch.

  7. Jack-Collins commented on May 20, 2016

    @Jack-Collins
    Author

    pr here: #336

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy