How to apply a git patch when given a pull number

Save the patch somewhere. If you’re using linux you can use curl: curl -L https://github.com/JustinTulloss/zeromq.node/pull/47.patch > /tmp/47.patch To apply the patch use git apply. You can see if the patch will apply cleanly with the check option. Change to your git directory and run: git apply –check /tmp/47.patch If it looks like you want to … Read more

GitHub search – how to exclude (logical NOT) company or user from search results

Prefixing any search qualifier with a – excludes all results that are matched by that qualifier. For example, you might be interested in finding all “cats” repositories with more than 10 stars that are not written in JavaScript: cats stars:>10 -language:javascript You might also want to find all issues mentioning @defunkt that are not in … Read more

Pull Request, ignore some file changes

You can’t ignore some files from a pull request selectively. Two workarounds for this can be – First – Create a new branch from ‘release’ Replace the non-required files from ‘master’ Create pull request from this new branch Second – Create a new branch from ‘master’ Put changes of required files from ‘release’ Create pull … Read more

Create a GitHub webhook for when a pull request is accepted & merged to master

So, you can’t customize the conditions of the trigger, but as LeGec mentions you can customize your code to only trigger when the Pull Request is merged. To do that, make sure your script responds to the PullRequestEvent. The conditions to test are: “action” is “closed“ “merged” (inside of “pull_request”) is true This way your … Read more

tech