Closed KenwoodFox closed 3 years ago
A 400 error means the webhook data object was malformed. Could you send the webhook data so I can see what's the cause of the issue?
Sure thing.
{
"action": "completed",
"check_suite": {
"id": 462149735,
"node_id": "MDEwOkNoZWNrU3VpdGU0NjIxNDk3MzU=",
"head_branch": "test-build",
"head_sha": "6c5257cbbf33e27de8cecc8494e9ecfcf0dde98d",
"status": "completed",
"conclusion": "success",
"url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/check-suites/462149735",
"before": "3881abc6e605bc9bd5d0032f9fdae8ffe5ef22c2",
"after": "6c5257cbbf33e27de8cecc8494e9ecfcf0dde98d",
"pull_requests": [
{
"url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/pulls/19",
"id": 375897754,
"number": 19,
"head": {
"ref": "test-build",
"sha": "6c5257cbbf33e27de8cecc8494e9ecfcf0dde98d",
"repo": {
"id": 231842252,
"url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge",
"name": "1721-InfiniteRecharge"
}
},
"base": {
"ref": "master",
"sha": "54d0458c796f95f8b78d36f692acb2a4ccb822ab",
"repo": {
"id": 231842252,
"url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge",
"name": "1721-InfiniteRecharge"
}
}
}
],
"app": {
"id": 15368,
"slug": "github-actions",
"node_id": "MDM6QXBwMTUzNjg=",
"owner": {
"login": "github",
"id": 9919,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
"avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github",
"html_url": "https://github.com/github",
"followers_url": "https://api.github.com/users/github/followers",
"following_url": "https://api.github.com/users/github/following{/other_user}",
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
"organizations_url": "https://api.github.com/users/github/orgs",
"repos_url": "https://api.github.com/users/github/repos",
"events_url": "https://api.github.com/users/github/events{/privacy}",
"received_events_url": "https://api.github.com/users/github/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GitHub Actions",
"description": "Automate your workflow from idea to production",
"external_url": "https://help.github.com/en/actions",
"html_url": "https://github.com/apps/github-actions",
"created_at": "2018-07-30T09:30:17Z",
"updated_at": "2019-12-10T19:04:12Z",
"permissions": {
"actions": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"issues": "write",
"metadata": "read",
"packages": "write",
"pages": "write",
"pull_requests": "write",
"repository_hooks": "write",
"repository_projects": "write",
"statuses": "write",
"vulnerability_alerts": "read"
},
"events": [
"check_run",
"check_suite",
"create",
"delete",
"deployment",
"deployment_status",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"milestone",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"status",
"watch"
]
},
"created_at": "2020-02-17T03:18:19Z",
"updated_at": "2020-02-17T03:20:19Z",
"latest_check_runs_count": 1,
"check_runs_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/check-suites/462149735/check-runs",
"head_commit": {
"id": "6c5257cbbf33e27de8cecc8494e9ecfcf0dde98d",
"tree_id": "2488d2d9ff15cb12f4698d90f3aa9c2106f3c494",
"message": "Delete Climber.java",
"timestamp": "2020-02-17T03:18:13Z",
"author": {
"name": "Joe S",
"email": "31870999+KenwoodFox@users.noreply.github.com"
},
"committer": {
"name": "Joe S",
"email": "31870999+KenwoodFox@users.noreply.github.com"
}
}
},
"repository": {
"id": 231842252,
"node_id": "MDEwOlJlcG9zaXRvcnkyMzE4NDIyNTI=",
"name": "1721-InfiniteRecharge",
"full_name": "FRC-1721/1721-InfiniteRecharge",
"private": false,
"owner": {
"login": "FRC-1721",
"id": 19439992,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE5NDM5OTky",
"avatar_url": "https://avatars1.githubusercontent.com/u/19439992?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FRC-1721",
"html_url": "https://github.com/FRC-1721",
"followers_url": "https://api.github.com/users/FRC-1721/followers",
"following_url": "https://api.github.com/users/FRC-1721/following{/other_user}",
"gists_url": "https://api.github.com/users/FRC-1721/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FRC-1721/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FRC-1721/subscriptions",
"organizations_url": "https://api.github.com/users/FRC-1721/orgs",
"repos_url": "https://api.github.com/users/FRC-1721/repos",
"events_url": "https://api.github.com/users/FRC-1721/events{/privacy}",
"received_events_url": "https://api.github.com/users/FRC-1721/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/FRC-1721/1721-InfiniteRecharge",
"description": "1721's Infinite Recharge Code repo for the 2020 season ",
"fork": false,
"url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge",
"forks_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/forks",
"keys_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/teams",
"hooks_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/hooks",
"issue_events_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/issues/events{/number}",
"events_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/events",
"assignees_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/assignees{/user}",
"branches_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/branches{/branch}",
"tags_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/tags",
"blobs_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/statuses/{sha}",
"languages_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/languages",
"stargazers_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/stargazers",
"contributors_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/contributors",
"subscribers_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/subscribers",
"subscription_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/subscription",
"commits_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/contents/{+path}",
"compare_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/merges",
"archive_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/downloads",
"issues_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/issues{/number}",
"pulls_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/pulls{/number}",
"milestones_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/milestones{/number}",
"notifications_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/labels{/name}",
"releases_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/releases{/id}",
"deployments_url": "https://api.github.com/repos/FRC-1721/1721-InfiniteRecharge/deployments",
"created_at": "2020-01-04T23:22:06Z",
"updated_at": "2020-02-14T18:56:47Z",
"pushed_at": "2020-02-17T03:18:19Z",
"git_url": "git://github.com/FRC-1721/1721-InfiniteRecharge.git",
"ssh_url": "git@github.com:FRC-1721/1721-InfiniteRecharge.git",
"clone_url": "https://github.com/FRC-1721/1721-InfiniteRecharge.git",
"svn_url": "https://github.com/FRC-1721/1721-InfiniteRecharge",
"homepage": "",
"size": 160,
"stargazers_count": 4,
"watchers_count": 4,
"language": "Java",
"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": 7,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 0,
"open_issues": 7,
"watchers": 4,
"default_branch": "master"
},
"organization": {
"login": "FRC-1721",
"id": 19439992,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE5NDM5OTky",
"url": "https://api.github.com/orgs/FRC-1721",
"repos_url": "https://api.github.com/orgs/FRC-1721/repos",
"events_url": "https://api.github.com/orgs/FRC-1721/events",
"hooks_url": "https://api.github.com/orgs/FRC-1721/hooks",
"issues_url": "https://api.github.com/orgs/FRC-1721/issues",
"members_url": "https://api.github.com/orgs/FRC-1721/members{/member}",
"public_members_url": "https://api.github.com/orgs/FRC-1721/public_members{/member}",
"avatar_url": "https://avatars1.githubusercontent.com/u/19439992?v=4",
"description": "Concord High School's FIRST Robotics Team"
},
"sender": {
"login": "KenwoodFox",
"id": 31870999,
"node_id": "MDQ6VXNlcjMxODcwOTk5",
"avatar_url": "https://avatars3.githubusercontent.com/u/31870999?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KenwoodFox",
"html_url": "https://github.com/KenwoodFox",
"followers_url": "https://api.github.com/users/KenwoodFox/followers",
"following_url": "https://api.github.com/users/KenwoodFox/following{/other_user}",
"gists_url": "https://api.github.com/users/KenwoodFox/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KenwoodFox/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KenwoodFox/subscriptions",
"organizations_url": "https://api.github.com/users/KenwoodFox/orgs",
"repos_url": "https://api.github.com/users/KenwoodFox/repos",
"events_url": "https://api.github.com/users/KenwoodFox/events{/privacy}",
"received_events_url": "https://api.github.com/users/KenwoodFox/received_events",
"type": "User",
"site_admin": false
}
}
Sorry, I didn't mean the webhook data from GitHub, but from the script. The script creates a webhook data object before sending it to Discord. You need to manually change the command to run it in verbose mode to be able to see it.
Are you using this in an open-source repo? If so, would you add a link?
Are you using this in an open-source repo? If so, would you add a link?
Sure thing! Here you go https://github.com/FRC-1721/1721-InfiniteRecharge
Are you using this in an open-source repo? If so, would you add a link?
Sure thing! Here you go https://github.com/FRC-1721/1721-InfiniteRecharge
Would you post links to the Github jobs that have failed? I don't see our hook in your build file
@KenwoodFox any update on this?
Oh, I'm not sure actually, I don't think it was fixed but the seasons been over for a little while, I can throw in a test repo to see if it's fixed.
Sounds like maybe we could close this issue for now?
All my other messages send fine except my updates on build checks. Always met with response 400,