Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test the web app before deploying? #10

Closed
BoltzmannBrain opened this issue Jul 12, 2016 · 1 comment
Closed

Test the web app before deploying? #10

BoltzmannBrain opened this issue Jul 12, 2016 · 1 comment
Assignees

Comments

@BoltzmannBrain
Copy link

Is there a recommended way to test the web app defined in the script webhooks.py locally? Sorry if this is obvious, but I'm new to webhooks and web apps in general.

@carlos-jenkins
Copy link
Owner

carlos-jenkins commented Jul 13, 2016

Hi,

To test your hook you may use the GitHub REST API:

https://developer.github.com/v3/

curl --user "<youruser>" https://api.github.com/repos/<youruser>/<myrepo>/hooks

Take note of the test_url.

curl --user "<youruser>" -i -X POST <test_url>

You should be able to see any log error in your webapp.

I'll keep this issue open to remember me to add this information to the README.

Regards

Sancus pushed a commit to thunderbird/python-github-webhooks that referenced this issue May 18, 2023
…config-file

Upgrade to GitHub-native Dependabot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants