Report issue of hooks test_url not working #121193
Unanswered
shadow625
asked this question in
API and Webhooks
Replies: 1 comment
-
Rephrase the decription, plz have a look. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
background
We wanna trigger the hook once it is created.
So from the response of the creation request , we extract the
test_url
property and send post request.Issue
Then we got 403 forbidden.
Investigation
After reading the test hook request, guessing the reson is test hook api using
https://HOSTNAME/repos/octocat/Hello-World/hooks/12345678/tests
but we havehttps://HOSTNAME/repos/octocat/Hello-World/hooks/12345678/test
in creation response. missing as
which seems to be the old verison schema.Expected:
The webhook creation response should be this.
test_url = "https://gheurl/api/v3/repos/test-org/test/hooks/1000/tests",
Actual:
test_url = "https://gheurl/api/v3/repos/test-org/test/hooks/1000/test",
Beta Was this translation helpful? Give feedback.
All reactions