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

Github Workflow events not received #6203

Closed
Tadjaur opened this issue Jun 3, 2023 · 16 comments
Closed

Github Workflow events not received #6203

Tadjaur opened this issue Jun 3, 2023 · 16 comments
Labels
bug synced Synced to internal tracker

Comments

@Tadjaur
Copy link

Tadjaur commented Jun 3, 2023

Description

My discord channel not receiving a worflow events sent by github webhook. These events are sucessfully sent with response status code 204, but my channel don't received it.

Steps to Reproduce

Here is one of requests send by github for worflow_run.completed event:

HEADERS:
Request URL: https://discord.com/api/webhooks/1114528013481169008/jv_XKVg0d5vcQ58sZ6AbUNAqGKwPEPSccPGn9ytCKiET1Fj7e3xq1RDCv4Vt0SWzempA/github
Request method: POST
Accept: */*
content-type: application/json
User-Agent: GitHub-Hookshot/4200660
X-GitHub-Delivery: cbd9aef0-020f-11ee-9426-2fa46ffa1452
X-GitHub-Event: workflow_run
X-GitHub-Hook-ID: 417702554
X-GitHub-Hook-Installation-Target-ID: 579773231
X-GitHub-Hook-Installation-Target-Type: repository
X-Hub-Signature: sha1=1aef4b4ca337f2f09c546bf4fad10e0e1a5760fc
X-Hub-Signature-256: sha256=99e57f873a9842c193a02b023aa0b30a2a4754ceb50275bbdd1b5ba86381be0a
PAYLOAD:
{
  "action": "completed",
  "workflow_run": {
    "id": 5163844319,
    "name": "Node.js CI",
    "node_id": "WFR_kwLOIo6jL88AAAABM8oC3w",
    "head_branch": "main",
    "head_sha": "9c4fb5492e354f5292ef2aede1ab882d6d29fcd0",
    "path": ".github/workflows/node.js.yml",
    "display_title": "Node.js CI",
    "run_number": 86,
    "event": "workflow_dispatch",
    "status": "completed",
    "conclusion": "failure",
    "workflow_id": 56991730,
    "check_suite_id": 13348232545,
    "check_suite_node_id": "CS_kwDOIo6jL88AAAADG53dYQ",
    "url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319",
    "html_url": "https://github.com/karibu-cap/mobile_transfer_app/actions/runs/5163844319",
    "pull_requests": [

    ],
    "created_at": "2023-06-03T13:07:19Z",
    "updated_at": "2023-06-03T13:08:56Z",
    "actor": {
      "login": "Tadjaur",
      "id": 34700040,
      "node_id": "MDQ6VXNlcjM0NzAwMDQw",
      "avatar_url": "https://avatars.githubusercontent.com/u/34700040?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Tadjaur",
      "html_url": "https://github.com/Tadjaur",
      "followers_url": "https://api.github.com/users/Tadjaur/followers",
      "following_url": "https://api.github.com/users/Tadjaur/following{/other_user}",
      "gists_url": "https://api.github.com/users/Tadjaur/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Tadjaur/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Tadjaur/subscriptions",
      "organizations_url": "https://api.github.com/users/Tadjaur/orgs",
      "repos_url": "https://api.github.com/users/Tadjaur/repos",
      "events_url": "https://api.github.com/users/Tadjaur/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Tadjaur/received_events",
      "type": "User",
      "site_admin": false
    },
    "run_attempt": 1,
    "referenced_workflows": [

    ],
    "run_started_at": "2023-06-03T13:07:19Z",
    "triggering_actor": {
      "login": "Tadjaur",
      "id": 34700040,
      "node_id": "MDQ6VXNlcjM0NzAwMDQw",
      "avatar_url": "https://avatars.githubusercontent.com/u/34700040?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Tadjaur",
      "html_url": "https://github.com/Tadjaur",
      "followers_url": "https://api.github.com/users/Tadjaur/followers",
      "following_url": "https://api.github.com/users/Tadjaur/following{/other_user}",
      "gists_url": "https://api.github.com/users/Tadjaur/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Tadjaur/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Tadjaur/subscriptions",
      "organizations_url": "https://api.github.com/users/Tadjaur/orgs",
      "repos_url": "https://api.github.com/users/Tadjaur/repos",
      "events_url": "https://api.github.com/users/Tadjaur/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Tadjaur/received_events",
      "type": "User",
      "site_admin": false
    },
    "jobs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319/jobs",
    "logs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319/logs",
    "check_suite_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/check-suites/13348232545",
    "artifacts_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319/artifacts",
    "cancel_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319/cancel",
    "rerun_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/runs/5163844319/rerun",
    "previous_attempt_url": null,
    "workflow_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/workflows/56991730",
    "head_commit": {
      "id": "9c4fb5492e354f5292ef2aede1ab882d6d29fcd0",
      "tree_id": "298c06a9e9495eee949b713bbf344d42eba69fff",
      "message": "Link cinetpay payment finalizaztion whith the cinetpay payment flow (#93)\n\n* Organize code\r\n\r\n* Fix js doc\r\n\r\n* Fix typo\r\n\r\n* Link cinetpay payment finalizaztion whith the cinetpay payment flow\r\n\r\n* format document",
      "timestamp": "2023-06-03T05:12:25Z",
      "author": {
        "name": "Tadjaur",
        "email": "wk.taur@gmail.com"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com"
      }
    },
    "repository": {
      "id": 579773231,
      "node_id": "R_kgDOIo6jLw",
      "name": "mobile_transfer_app",
      "full_name": "karibu-cap/mobile_transfer_app",
      "private": true,
      "owner": {
        "login": "karibu-cap",
        "id": 100484610,
        "node_id": "O_kgDOBf1GAg",
        "avatar_url": "https://avatars.githubusercontent.com/u/100484610?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/karibu-cap",
        "html_url": "https://github.com/karibu-cap",
        "followers_url": "https://api.github.com/users/karibu-cap/followers",
        "following_url": "https://api.github.com/users/karibu-cap/following{/other_user}",
        "gists_url": "https://api.github.com/users/karibu-cap/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/karibu-cap/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/karibu-cap/subscriptions",
        "organizations_url": "https://api.github.com/users/karibu-cap/orgs",
        "repos_url": "https://api.github.com/users/karibu-cap/repos",
        "events_url": "https://api.github.com/users/karibu-cap/events{/privacy}",
        "received_events_url": "https://api.github.com/users/karibu-cap/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "html_url": "https://github.com/karibu-cap/mobile_transfer_app",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app",
      "forks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/forks",
      "keys_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/teams",
      "hooks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/hooks",
      "issue_events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/events{/number}",
      "events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/events",
      "assignees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/assignees{/user}",
      "branches_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/branches{/branch}",
      "tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/tags",
      "blobs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/languages",
      "stargazers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/stargazers",
      "contributors_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contributors",
      "subscribers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscribers",
      "subscription_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscription",
      "commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contents/{+path}",
      "compare_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/merges",
      "archive_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/downloads",
      "issues_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues{/number}",
      "pulls_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/labels{/name}",
      "releases_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/releases{/id}",
      "deployments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/deployments"
    },
    "head_repository": {
      "id": 579773231,
      "node_id": "R_kgDOIo6jLw",
      "name": "mobile_transfer_app",
      "full_name": "karibu-cap/mobile_transfer_app",
      "private": true,
      "owner": {
        "login": "karibu-cap",
        "id": 100484610,
        "node_id": "O_kgDOBf1GAg",
        "avatar_url": "https://avatars.githubusercontent.com/u/100484610?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/karibu-cap",
        "html_url": "https://github.com/karibu-cap",
        "followers_url": "https://api.github.com/users/karibu-cap/followers",
        "following_url": "https://api.github.com/users/karibu-cap/following{/other_user}",
        "gists_url": "https://api.github.com/users/karibu-cap/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/karibu-cap/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/karibu-cap/subscriptions",
        "organizations_url": "https://api.github.com/users/karibu-cap/orgs",
        "repos_url": "https://api.github.com/users/karibu-cap/repos",
        "events_url": "https://api.github.com/users/karibu-cap/events{/privacy}",
        "received_events_url": "https://api.github.com/users/karibu-cap/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "html_url": "https://github.com/karibu-cap/mobile_transfer_app",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app",
      "forks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/forks",
      "keys_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/teams",
      "hooks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/hooks",
      "issue_events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/events{/number}",
      "events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/events",
      "assignees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/assignees{/user}",
      "branches_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/branches{/branch}",
      "tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/tags",
      "blobs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/languages",
      "stargazers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/stargazers",
      "contributors_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contributors",
      "subscribers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscribers",
      "subscription_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscription",
      "commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contents/{+path}",
      "compare_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/merges",
      "archive_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/downloads",
      "issues_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues{/number}",
      "pulls_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/labels{/name}",
      "releases_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/releases{/id}",
      "deployments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/deployments"
    }
  },
  "workflow": {
    "id": 56991730,
    "node_id": "W_kwDOIo6jL84DZZ_y",
    "name": "Node.js CI",
    "path": ".github/workflows/node.js.yml",
    "state": "active",
    "created_at": "2023-05-11T22:31:39.000Z",
    "updated_at": "2023-05-11T22:31:39.000Z",
    "url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/actions/workflows/56991730",
    "html_url": "https://github.com/karibu-cap/mobile_transfer_app/blob/main/.github/workflows/node.js.yml",
    "badge_url": "https://github.com/karibu-cap/mobile_transfer_app/workflows/Node.js%20CI/badge.svg"
  },
  "repository": {
    "id": 579773231,
    "node_id": "R_kgDOIo6jLw",
    "name": "mobile_transfer_app",
    "full_name": "karibu-cap/mobile_transfer_app",
    "private": true,
    "owner": {
      "login": "karibu-cap",
      "id": 100484610,
      "node_id": "O_kgDOBf1GAg",
      "avatar_url": "https://avatars.githubusercontent.com/u/100484610?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/karibu-cap",
      "html_url": "https://github.com/karibu-cap",
      "followers_url": "https://api.github.com/users/karibu-cap/followers",
      "following_url": "https://api.github.com/users/karibu-cap/following{/other_user}",
      "gists_url": "https://api.github.com/users/karibu-cap/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/karibu-cap/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/karibu-cap/subscriptions",
      "organizations_url": "https://api.github.com/users/karibu-cap/orgs",
      "repos_url": "https://api.github.com/users/karibu-cap/repos",
      "events_url": "https://api.github.com/users/karibu-cap/events{/privacy}",
      "received_events_url": "https://api.github.com/users/karibu-cap/received_events",
      "type": "Organization",
      "site_admin": false
    },
    "html_url": "https://github.com/karibu-cap/mobile_transfer_app",
    "description": null,
    "fork": false,
    "url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app",
    "forks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/forks",
    "keys_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/teams",
    "hooks_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/hooks",
    "issue_events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/events{/number}",
    "events_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/events",
    "assignees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/assignees{/user}",
    "branches_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/branches{/branch}",
    "tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/tags",
    "blobs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/languages",
    "stargazers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/stargazers",
    "contributors_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contributors",
    "subscribers_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscribers",
    "subscription_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/subscription",
    "commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/contents/{+path}",
    "compare_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/merges",
    "archive_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/downloads",
    "issues_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/issues{/number}",
    "pulls_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/labels{/name}",
    "releases_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/releases{/id}",
    "deployments_url": "https://api.github.com/repos/karibu-cap/mobile_transfer_app/deployments",
    "created_at": "2022-12-18T21:37:16Z",
    "updated_at": "2023-06-02T07:43:29Z",
    "pushed_at": "2023-06-03T05:19:29Z",
    "git_url": "git://github.com/karibu-cap/mobile_transfer_app.git",
    "ssh_url": "git@github.com:karibu-cap/mobile_transfer_app.git",
    "clone_url": "https://github.com/karibu-cap/mobile_transfer_app.git",
    "svn_url": "https://github.com/karibu-cap/mobile_transfer_app",
    "homepage": null,
    "size": 5329,
    "stargazers_count": 0,
    "watchers_count": 0,
    "language": "Dart",
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": false,
    "has_pages": false,
    "has_discussions": true,
    "forks_count": 0,
    "mirror_url": null,
    "archived": false,
    "disabled": false,
    "open_issues_count": 16,
    "license": null,
    "allow_forking": false,
    "is_template": false,
    "web_commit_signoff_required": false,
    "topics": [

    ],
    "visibility": "private",
    "forks": 0,
    "open_issues": 16,
    "watchers": 0,
    "default_branch": "main"
  },
  "organization": {
    "login": "karibu-cap",
    "id": 100484610,
    "node_id": "O_kgDOBf1GAg",
    "url": "https://api.github.com/orgs/karibu-cap",
    "repos_url": "https://api.github.com/orgs/karibu-cap/repos",
    "events_url": "https://api.github.com/orgs/karibu-cap/events",
    "hooks_url": "https://api.github.com/orgs/karibu-cap/hooks",
    "issues_url": "https://api.github.com/orgs/karibu-cap/issues",
    "members_url": "https://api.github.com/orgs/karibu-cap/members{/member}",
    "public_members_url": "https://api.github.com/orgs/karibu-cap/public_members{/member}",
    "avatar_url": "https://avatars.githubusercontent.com/u/100484610?v=4",
    "description": ""
  },
  "sender": {
    "login": "Tadjaur",
    "id": 34700040,
    "node_id": "MDQ6VXNlcjM0NzAwMDQw",
    "avatar_url": "https://avatars.githubusercontent.com/u/34700040?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/Tadjaur",
    "html_url": "https://github.com/Tadjaur",
    "followers_url": "https://api.github.com/users/Tadjaur/followers",
    "following_url": "https://api.github.com/users/Tadjaur/following{/other_user}",
    "gists_url": "https://api.github.com/users/Tadjaur/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/Tadjaur/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/Tadjaur/subscriptions",
    "organizations_url": "https://api.github.com/users/Tadjaur/orgs",
    "repos_url": "https://api.github.com/users/Tadjaur/repos",
    "events_url": "https://api.github.com/users/Tadjaur/events{/privacy}",
    "received_events_url": "https://api.github.com/users/Tadjaur/received_events",
    "type": "User",
    "site_admin": false
  }
}

Expected Behavior

The workflow events message should show in discord channel

Current Behavior

The workflow events are successfully sent from github. but i don't receive message any message in discord channel

Screenshots/Videos

Capture of last events sent by github.

image

Only issue close and open event are received in discord channel

image

Client and System Information

Using a Github webhook.

@Tadjaur Tadjaur added the bug label Jun 3, 2023
@arHSM
Copy link
Contributor

arHSM commented Jun 3, 2023

I have invalidated the webhook url you posted, kindly avoid posting webhook urls with their token or any other sensitive data

@yonilerner
Copy link
Member

Please set wait=true in the webhook URL to see if our API is returning an error response.

See https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
image

@yonilerner yonilerner added the waiting for response Discord is waiting for a response and will re-triage the issue at a later point label Jun 6, 2023
@Tadjaur
Copy link
Author

Tadjaur commented Jun 21, 2023

Thank you @yonilerner. But the documentation says wait=true is the default value. however i manually set wait=true like you requested but i didn't receive any change, i still don't get the notification.
For no reason i also tried to set wait=false but no change.

@Tadjaur
Copy link
Author

Tadjaur commented Jun 21, 2023

As workarround, i'm using the github action th0th/notify-discord

@maximlt
Copy link

maximlt commented Jun 24, 2023

I'm observing exactly the same problem. The events appeared as correctly sent with a 204 status code seen on Github, they never make it to the slack channel though. As @Tadjaur noted, wait is documented as true by default, I anyway tried wait=true and got no improvement.

I could correctly deliver Github push events to this channel with a message being displayed. So there's something wrong with how workflow_run events are processed by Discord?

@ckohen
Copy link
Contributor

ckohen commented Jun 24, 2023

Certain github events don't have a custom embed and get discarded by that endpoint. Have you seen an embed for this before? I believe only the most common events have embed behavior defined (since there is an absurd number of possible events).

@maximlt
Copy link

maximlt commented Jun 25, 2023

Have you seen an embed for this before?

No, it's the first time I was trying it.

I believe only the most common events have embed behavior defined

Maybe the list of supported events should be documented? workflow_run seems common enough to me :)

@yonilerner
Copy link
Member

Thanks for pointing that out ckohen. I just looked into this more, the events we support are:

  • commit_comment
  • create
  • delete
  • fork
  • issue_comment
  • issues
  • member
  • public
  • pull_request
  • pull_request_review
  • pull_request_review_comment
  • push
  • release
  • watch
  • check_run
  • check_suite
  • discussion
  • discussion_comment

Ill add a TODO for us to document that

@yonilerner yonilerner added synced Synced to internal tracker and removed waiting for response Discord is waiting for a response and will re-triage the issue at a later point labels Jun 26, 2023
@maximlt
Copy link

maximlt commented Jun 27, 2023

Thanks for providing the list of supported events. I guess then that this issue is a feature request for adding support to workflow_x events (e.g. workflow_dispatch, workflow_run).

@mavam
Copy link

mavam commented Jul 25, 2023

@yonilerner any chance you could support events relating stars, like stars.created with X-GitHub-Event: star?

@AlmostSuspense
Copy link
Contributor

knowing when someone stars a repository is already supported if that's what you mean

@mavam
Copy link

mavam commented Jul 25, 2023

How do you get that info as webhook, though? This webhook setting doesn't trigger in a Discord channel:

image

@yonilerner
Copy link
Member

We will not be adding any new events at this time, sorry.

I am closing this issue but we have an item on our backlog to improve documentation around this.

@GitFlip
Copy link

GitFlip commented Aug 9, 2023

Very sad that workflow events won't get added. Is there any place we can request the feature to be added even if it's not to be added at this time?

@kelzenberg
Copy link

@yonilerner has the documentation of these events been added somewhere or is the list you posted here still valid?

@yonilerner
Copy link
Member

The list here is still valid

mnvr added a commit to ente-io/ente that referenced this issue Mar 8, 2024
Not integrating GitHub deployments for now since creating a deployment
(anywhere) causes "This branch has not been deployed" message to appear on
unrelated branches.

Also, the Discord /github webhook doesn't support deployment status events
anyway - Discord accepts and responds to the webhook with a 204 but it doesn't
appear in the channel. This is not a big issue, we can easily massage the
payload ourselves, but just mentioning this for posterity. Refs:

* [Corresponding issue on Discord](discord/discord-api-docs#6203 (comment))

* [A general recipe](https://gist.github.com/jagrosh/5b1761213e33fc5b54ec7f6379034a22)

---

For deleting the existing deployment I had to

```
gh api /repos/ente-io/ente/deployments --jq=".[].id"
gh api --method DELETE -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "/repos/ente-io/ente/deployments/1375794893"
```

This helpful hint taken from https://github.com/orgs/community/discussions/46375. Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug synced Synced to internal tracker
Projects
None yet
Development

No branches or pull requests

9 participants