github-enterprise

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

血红的双手。 提交于 2019-12-03 03:31:04
问题 I have a webhook that currently fires on push to any branch. This triggers the webhook far too frequently. Ideally, the webhook would only fire when a pull request is merged into master . I don't see that as an option, though: Is there a way to get additional webhook options or to customize the webhook somehow? 回答1: 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

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

自作多情 提交于 2019-12-02 17:26:41
I have a webhook that currently fires on push to any branch. This triggers the webhook far too frequently. Ideally, the webhook would only fire when a pull request is merged into master . I don't see that as an option, though: Is there a way to get additional webhook options or to customize the webhook somehow? 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"

github server-side git hooks (i.e. pre-commit and post-commit)

不问归期 提交于 2019-11-30 06:03:23
I've looked around the answers on SO, and the web, and I can't see anything on how to set up a server-side git hook on github (as opposed to webhooks). Is there a way to do this? Or alternatively, is there a way to set it up so that .git/hooks is a symlink to a part of the working tree at the time of cloning ? I should add that this is an internally-hosted github server. For obvious reasons, GitHub won’t allow you to execute arbitrary code on their servers as part of Git hooks. The only hooking they allow is through their webhooks or the integrated third-party services. If you need to run some

github server-side git hooks (i.e. pre-commit and post-commit)

久未见 提交于 2019-11-29 05:35:59
问题 I've looked around the answers on SO, and the web, and I can't see anything on how to set up a server-side git hook on github (as opposed to webhooks). Is there a way to do this? Or alternatively, is there a way to set it up so that .git/hooks is a symlink to a part of the working tree at the time of cloning ? I should add that this is an internally-hosted github server. 回答1: For obvious reasons, GitHub won’t allow you to execute arbitrary code on their servers as part of Git hooks. The only

How to import git repositories with large files?

半城伤御伤魂 提交于 2019-11-28 14:28:44
Given that GitHub doesn't allow to push files larger than 100 MB , it is not possible to git clone and push a repository with large files into GitHub enterprise. The push fails with a: remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: File large.zip is 145.00 MB; this exceeds GitHub Enterprise's file size limit of 100.00 MB (N.B.: there is a repository importer , but this is only for github.com, and requires public access to your repository) Fortunately, GitHub provides support for storage of files larger than

How can I export GitHub issues to Excel?

微笑、不失礼 提交于 2019-11-28 04:59:47
How can I export all my issues from an Enterprise GitHub repository to an Excel file? I have tried searching many Stack Overflow answers but did not succeed. I tried this solution too ( exporting Git issues to CSV and getting "ImportError: No module named requests" errors. Is there any tool or any easy way to export all the issues to Excel? To export from a private repo using curl, you can run the following: curl -i "https://api.github.com/repos/<repo-owner>/<repo-name>/issues" -u "<user-name>" Where the user has access to the private repo. You can then convert the resulting json into csv

How can I export GitHub issues to Excel?

天涯浪子 提交于 2019-11-27 05:22:14
问题 How can I export all my issues from an Enterprise GitHub repository to an Excel file? I have tried searching many Stack Overflow answers but did not succeed. I tried this solution too (exporting Git issues to CSV and getting "ImportError: No module named requests" errors. Is there any tool or any easy way to export all the issues to Excel? 回答1: To export from a private repo using curl, you can run the following: curl -i "https://api.github.com/repos/<repo-owner>/<repo-name>/issues" -u "<user