Greasy Fork is available in English.

Discussões » Feedback do Greasy Fork

Github release webhook not work

§
Publicado: 21/10/2022
Editado: 21/10/2022

Around 30m ago, I released csdn@0.0.3 https://github.com/ilyydy/tampermonkey-script/releases, but received such response

{"updated_scripts":[],"updated_failed":[]}

request playload is below

{
  "action": "published",
  "release": {
    "url": "https://api.github.com/repos/ilyydy/tampermonkey-script/releases/80632379",
    "assets_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/releases/80632379/assets",
    "upload_url": "https://uploads.github.com/repos/ilyydy/tampermonkey-script/releases/80632379/assets{?name,label}",
    "html_url": "https://github.com/ilyydy/tampermonkey-script/releases/tag/csdn%400.0.3",
    "id": 80632379,
    "author": {
      "login": "github-actions[bot]",
      "id": 41898282,
      "node_id": "MDM6Qm90NDE4OTgyODI=",
      "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/github-actions%5Bbot%5D",
      "html_url": "https://github.com/apps/github-actions",
      "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
      "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
      "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
      "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
      "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
      "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
      "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
      "type": "Bot",
      "site_admin": false
    },
    "node_id": "RE_kwDOIOMqIc4Ezlo7",
    "tag_name": "csdn@0.0.3",
    "target_commitish": "main",
    "name": "csdn@0.0.3",
    "draft": false,
    "prerelease": false,
    "created_at": "2022-10-21T15:48:02Z",
    "published_at": "2022-10-21T15:50:03Z",
    "assets": [

    ],
    "tarball_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/tarball/csdn@0.0.3",
    "zipball_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/zipball/csdn@0.0.3",
    "body": "Please refer to [CHANGELOG.md](https://github.com/ilyydy/tampermonkey-script/blob/csdn@0.0.3/packages/csdn/CHANGELOG.md) for details."
  },
  "repository": {
    "id": 551758369,
    "node_id": "R_kgDOIOMqIQ",
    "name": "tampermonkey-script",
    "full_name": "ilyydy/tampermonkey-script",
    "private": false,
    "owner": {
      "login": "ilyydy",
      "id": 8614566,
      "node_id": "MDQ6VXNlcjg2MTQ1NjY=",
      "avatar_url": "https://avatars.githubusercontent.com/u/8614566?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/ilyydy",
      "html_url": "https://github.com/ilyydy",
      "followers_url": "https://api.github.com/users/ilyydy/followers",
      "following_url": "https://api.github.com/users/ilyydy/following{/other_user}",
      "gists_url": "https://api.github.com/users/ilyydy/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/ilyydy/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/ilyydy/subscriptions",
      "organizations_url": "https://api.github.com/users/ilyydy/orgs",
      "repos_url": "https://api.github.com/users/ilyydy/repos",
      "events_url": "https://api.github.com/users/ilyydy/events{/privacy}",
      "received_events_url": "https://api.github.com/users/ilyydy/received_events",
      "type": "User",
      "site_admin": false
    },
    "html_url": "https://github.com/ilyydy/tampermonkey-script",
    "description": null,
    "fork": false,
    "url": "https://api.github.com/repos/ilyydy/tampermonkey-script",
    "forks_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/forks",
    "keys_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/teams",
    "hooks_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/hooks",
    "issue_events_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/issues/events{/number}",
    "events_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/events",
    "assignees_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/assignees{/user}",
    "branches_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/branches{/branch}",
    "tags_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/tags",
    "blobs_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/languages",
    "stargazers_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/stargazers",
    "contributors_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/contributors",
    "subscribers_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/subscribers",
    "subscription_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/subscription",
    "commits_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/contents/{+path}",
    "compare_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/merges",
    "archive_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/downloads",
    "issues_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/issues{/number}",
    "pulls_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/labels{/name}",
    "releases_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/releases{/id}",
    "deployments_url": "https://api.github.com/repos/ilyydy/tampermonkey-script/deployments",
    "created_at": "2022-10-15T03:13:25Z",
    "updated_at": "2022-10-16T07:02:06Z",
    "pushed_at": "2022-10-21T15:50:02Z",
    "git_url": "git://github.com/ilyydy/tampermonkey-script.git",
    "ssh_url": "git@github.com:ilyydy/tampermonkey-script.git",
    "clone_url": "https://github.com/ilyydy/tampermonkey-script.git",
    "svn_url": "https://github.com/ilyydy/tampermonkey-script",
    "homepage": null,
    "size": 497,
    "stargazers_count": 0,
    "watchers_count": 0,
    "language": "TypeScript",
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": true,
    "has_pages": false,
    "forks_count": 0,
    "mirror_url": null,
    "archived": false,
    "disabled": false,
    "open_issues_count": 2,
    "license": {
      "key": "mit",
      "name": "MIT License",
      "spdx_id": "MIT",
      "url": "https://api.github.com/licenses/mit",
      "node_id": "MDc6TGljZW5zZTEz"
    },
    "allow_forking": true,
    "is_template": false,
    "web_commit_signoff_required": false,
    "topics": [

    ],
    "visibility": "public",
    "forks": 0,
    "open_issues": 2,
    "watchers": 0,
    "default_branch": "main"
  },
  "sender": {
    "login": "github-actions[bot]",
    "id": 41898282,
    "node_id": "MDM6Qm90NDE4OTgyODI=",
    "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/github-actions%5Bbot%5D",
    "html_url": "https://github.com/apps/github-actions",
    "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
    "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
    "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
    "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
    "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
    "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
    "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
    "type": "Bot",
    "site_admin": false
  }
}
§
Publicado: 22/10/2022

If the file you want it to grab is only in the release, and not in git, then it won't find it. This is a limitation with how it works right now.

§
Publicado: 22/10/2022

If the file you want it to grab is only in the release, and not in git, then it won't find it. This is a limitation with how it works right now.

the file is also in git repo, but not in default main branch https://github.com/ilyydy/tampermonkey-script/tree/csdn. Is the file must in default branch?

§
Publicado: 22/10/2022

It will be looking at whatever URL you gave it to sync to.

§
Publicado: 22/10/2022
Editado: 22/10/2022

It will be looking at whatever URL you gave it to sync to.

I tried set URL as https://raw.githubusercontent.com/ilyydy/tampermonkey-script/csdn/csdn.user.js and https://github.com/ilyydy/tampermonkey-script/raw/csdn/csdn.user.js , but both not work

§
Publicado: 22/10/2022

It will be looking at whatever URL you gave it to sync to.

My github action push script to 'csdn' branch and then create release. I guess may the push is a little late or github cache problem. Is there some way to check?

Publicar resposta

Faça o login para publicar uma resposta.