Greasy Fork is available in English.

讨论 » Greasy Fork 反馈

Webhook Update Option Not Triggering

§
发表于:2019-09-18
编辑于:2019-09-18

Webhook Update Option Not Triggering

I have already set up a webhook to my Github repo. I can import scripts from there and they do get updated automatically but I only just realized the "Update by webhook" option was not setting itself after the first push. I do have one new script (I made recently) that works and has the webhook set. The other 4 just won't set.

Does anyone have more advanced troubleshooting skills than me?

§
发表于:2019-09-30

Thanks!

§
发表于:2021-07-01

Wondering if I have something wrongly configured.
I do a push from Visual Code to github and then github (successfully) triggers the webhook to Greasy, but Greasy is not syncing the file from github. I have it set for "Manual - it will be checked for updates only when you trigger it"
For now I am just manually clicking the update/sync button, which is fine, but it would be nice if this would occur automagically.

§
发表于:2021-07-02
I have it set for "Manual - it will be checked for updates only when you trigger it"
For now I am just manually clicking the update/sync button, which is fine, but it would be nice if this would occur automagically.

You can set it to "Automatic", it will check once a day.

§
发表于:2021-08-23
I do a push from Visual Code to github and then github (successfully) triggers the webhook to Greasy, but Greasy is not syncing the file from github.
What is the response from Greasy Fork to this request? What is the URL of your script?

According to the response on GitHub,

Headers
Access-Control-Allow-Origin: *
Cache-Control: max-age=0, private, must-revalidate
Content-Type: application/json; charset=utf-8
Date: Mon, 23 Aug 2021 10:37:09 GMT
Etag: W/"3a9920af96e19ec8b76600adcd047fc2"
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx/1.18.0 (Ubuntu)
Strict-Transport-Security: max-age=31536000
Vary: Accept
X-Backend-Server: janeway
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Request-Id: f24664a1-729c-4de9-aaea-020197644916
X-Runtime: 0.019230
X-Xss-Protection: 1; mode=block
Body
{"updated_scripts":[],"updated_failed":[]}

§
发表于:2021-08-31

Request URL: https://greasyfork.org/en/users/668704-phuz/webhook
Request method: POST
Accept: */*
content-type: application/json
User-Agent: GitHub-Hookshot/8d33975
X-GitHub-Delivery: 00fd6666-0a65-11ec-8eea-209821708911
X-GitHub-Event: push
X-GitHub-Hook-ID: 305392826
X-GitHub-Hook-Installation-Target-ID: 303397840
X-GitHub-Hook-Installation-Target-Type: repository
X-Hub-Signature: sha1=a2f774621cc4c160614ec87e9ecc56622f64969c
X-Hub-Signature-256: sha256=24e373aeb37e1d6cfb890e9d6e2d3e5b528ec01d89f6849407f26b1e16cf6f83

§
发表于:2021-08-31

{
"ref": "refs/heads/main",
"before": "2ad31ace47778b7df8169bb191799494598b824c",
"after": "b078105d3ec09942efe5f2547fa15fca16c42e57",
"repository": {
"id": 303397840,
"node_id": "MDEwOlJlcG9zaXRvcnkzMDMzOTc4NDA=",
"name": "WME-DOT-Advisories",
"full_name": "skykep/WME-DOT-Advisories",
"private": false,
"owner": {
"name": "skykep",
"email": "",
"login": "skykep",
"id": 26309313,
"node_id": "MDQ6VXNlcjI2MzA5MzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/26309313?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/skykep",
"html_url": "https://github.com/skykep",
"followers_url": "https://api.github.com/users/skykep/followers",
"following_url": "https://api.github.com/users/skykep/following{/other_user}",
"gists_url": "https://api.github.com/users/skykep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skykep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skykep/subscriptions",
"organizations_url": "https://api.github.com/users/skykep/orgs",
"repos_url": "https://api.github.com/users/skykep/repos",
"events_url": "https://api.github.com/users/skykep/events{/privacy}",
"received_events_url": "https://api.github.com/users/skykep/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/skykep/WME-DOT-Advisories",
"description": "WME DOT Advisories",
"fork": false,
"url": "https://github.com/skykep/WME-DOT-Advisories",
"forks_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/forks",
"keys_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/teams",
"hooks_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/hooks",
"issue_events_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/issues/events{/number}",
"events_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/events",
"assignees_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/assignees{/user}",
"branches_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/branches{/branch}",
"tags_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/tags",
"blobs_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/statuses/{sha}",
"languages_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/languages",
"stargazers_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/stargazers",
"contributors_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/contributors",
"subscribers_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/subscribers",
"subscription_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/subscription",
"commits_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/contents/{+path}",
"compare_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/merges",
"archive_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/downloads",
"issues_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/issues{/number}",
"pulls_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/pulls{/number}",
"milestones_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/milestones{/number}",
"notifications_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/labels{/name}",
"releases_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/releases{/id}",
"deployments_url": "https://api.github.com/repos/skykep/WME-DOT-Advisories/deployments",
"created_at": 1602508673,
"updated_at": "2021-08-31T14:09:09Z",
"pushed_at": 1630433237,
"git_url": "git://github.com/skykep/WME-DOT-Advisories.git",
"ssh_url": "git@github.com:skykep/WME-DOT-Advisories.git",
"clone_url": "https://github.com/skykep/WME-DOT-Advisories.git",
"svn_url": "https://github.com/skykep/WME-DOT-Advisories",
"homepage": null,
"size": 323,
"stargazers_count": 0,
"watchers_count": 0,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 1,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 0,
"license": null,
"forks": 1,
"open_issues": 0,
"watchers": 0,
"default_branch": "main",
"stargazers": 0,
"master_branch": "main"
},
"pusher": {
"name": "skykep",
"email": ""
},
"sender": {
"login": "skykep",
"id": 26309313,
"node_id": "MDQ6VXNlcjI2MzA5MzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/26309313?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/skykep",
"html_url": "https://github.com/skykep",
"followers_url": "https://api.github.com/users/skykep/followers",
"following_url": "https://api.github.com/users/skykep/following{/other_user}",
"gists_url": "https://api.github.com/users/skykep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skykep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skykep/subscriptions",
"organizations_url": "https://api.github.com/users/skykep/orgs",
"repos_url": "https://api.github.com/users/skykep/repos",
"events_url": "https://api.github.com/users/skykep/events{/privacy}",
"received_events_url": "https://api.github.com/users/skykep/received_events",
"type": "User",
"site_admin": false
},
"created": false,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/skykep/WME-DOT-Advisories/compare/2ad31ace4777...b078105d3ec0",
"commits": [
{
"id": "b078105d3ec09942efe5f2547fa15fca16c42e57",
"tree_id": "538e1ebfea6f2e87f3de1e02857bafd660610c7e",
"distinct": true,
"message": "VA Weather closures",
"timestamp": "2021-08-31T14:07:13-04:00",
"url": "https://github.com/skykep/WME-DOT-Advisories/commit/b078105d3ec09942efe5f2547fa15fca16c42e57",
"author": {
"name": "",
"email": "",
"username": "skykep"
},
"committer": {
"name": "",
"email": "",
"username": "skykep"
},
"added": [

],
"removed": [

],
"modified": [
"WME DOT Advisories.user.js"
]
}
],
"head_commit": {
"id": "b078105d3ec09942efe5f2547fa15fca16c42e57",
"tree_id": "538e1ebfea6f2e87f3de1e02857bafd660610c7e",
"distinct": true,
"message": "VA Weather closures",
"timestamp": "2021-08-31T14:07:13-04:00",
"url": "https://github.com/skykep/WME-DOT-Advisories/commit/b078105d3ec09942efe5f2547fa15fca16c42e57",
"author": {
"name": "",
"email": "",
"username": "skykep"
},
"committer": {
"name": "",
"email": "",
"username": "skykep"
},
"added": [

],
"removed": [

],
"modified": [
"WME DOT Advisories.user.js"
]
}
}

§
发表于:2021-09-03

Nice, I'll give it a shot.

§
发表于:2021-09-05

That worked. Thanks for the fix!

发表回复

登录以发表回复。