diff --git a/mock_payloads/status.multi_repo_disallowed_repo.json b/mock_payloads/status.multi_repo_disallowed_repo.json new file mode 100644 index 00000000..71c7e867 --- /dev/null +++ b/mock_payloads/status.multi_repo_disallowed_repo.json @@ -0,0 +1,222 @@ +{ + "id": 0, + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "name": "ahrefs/monorobot_test", + "target_url": "https://buildkite.com/org/pipeline2/builds/2", + "avatar_url": "https://example.org/avatars/oa/0", + "context": "buildkite/pipeline2", + "description": "Build #2 passed (5 minutes, 19 seconds)", + "state": "success", + "commit": { + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "node_id": "00000000000000000000", + "commit": { + "author": { + "name": "Wile E. Coyote", + "email": "wile.e.coyote@example.org", + "date": "2020-06-02T03:14:51Z" + }, + "committer": { + "name": "GitHub Enterprise", + "email": "git@example.org", + "date": "2020-06-02T03:14:51Z" + }, + "message": "Update README.md", + "tree": { + "sha": "ee5c539cad37c77348ce7a55756acc542b41cfc7", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/trees/ee5c539cad37c77348ce7a55756acc542b41cfc7" + }, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "html_url": "https://example.org/ahrefs/monorobot_test/commit/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "comments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478/comments", + "author": { + "login": "wileecoyote", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/wileecoyote", + "html_url": "https://example.org/wileecoyote", + "followers_url": "https://example.org/api/v3/users/wileecoyote/followers", + "following_url": "https://example.org/api/v3/users/wileecoyote/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/wileecoyote/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/wileecoyote/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/wileecoyote/subscriptions", + "organizations_url": "https://example.org/api/v3/users/wileecoyote/orgs", + "repos_url": "https://example.org/api/v3/users/wileecoyote/repos", + "events_url": "https://example.org/api/v3/users/wileecoyote/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/wileecoyote/received_events", + "type": "User", + "site_admin": false + }, + "committer": null, + "parents": [ + { + "sha": "04cb72d6dc8d92131282a7eff57f6caf632f0a39", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/04cb72d6dc8d92131282a7eff57f6caf632f0a39", + "html_url": "https://example.org/ahrefs/monorobot_test/commit/04cb72d6dc8d92131282a7eff57f6caf632f0a39" + } + ] + }, + "branches": [ + { + "name": "master", + "commit": { + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478" + }, + "protected": false + } + ], + "created_at": "2020-06-02T03:21:39+00:00", + "updated_at": "2020-06-02T03:21:39+00:00", + "repository": { + "id": 0, + "node_id": "00000000000000000000", + "name": "monorobot_test", + "full_name": "ahrefs/monorobot_test", + "private": true, + "owner": { + "login": "ahrefs", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/ahrefs", + "html_url": "https://example.org/ahrefs", + "followers_url": "https://example.org/api/v3/users/ahrefs/followers", + "following_url": "https://example.org/api/v3/users/ahrefs/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/ahrefs/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/ahrefs/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/ahrefs/subscriptions", + "organizations_url": "https://example.org/api/v3/users/ahrefs/orgs", + "repos_url": "https://example.org/api/v3/users/ahrefs/repos", + "events_url": "https://example.org/api/v3/users/ahrefs/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/ahrefs/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://example.org/ahrefs/monorobot_test", + "description": null, + "fork": false, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test", + "forks_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/forks", + "keys_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/keys{/key_id}", + "collaborators_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/collaborators{/collaborator}", + "teams_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/teams", + "hooks_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/hooks", + "issue_events_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues/events{/number}", + "events_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/events", + "assignees_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/assignees{/user}", + "branches_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/branches{/branch}", + "tags_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/tags", + "blobs_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/blobs{/sha}", + "git_tags_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/tags{/sha}", + "git_refs_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/refs{/sha}", + "trees_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/trees{/sha}", + "statuses_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/statuses/{sha}", + "languages_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/languages", + "stargazers_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/stargazers", + "contributors_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/contributors", + "subscribers_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/subscribers", + "subscription_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/subscription", + "commits_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits{/sha}", + "git_commits_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/commits{/sha}", + "comments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/comments{/number}", + "issue_comment_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues/comments{/number}", + "contents_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/contents/{+path}", + "compare_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/compare/{base}...{head}", + "merges_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/merges", + "archive_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/{archive_format}{/ref}", + "downloads_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/downloads", + "issues_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues{/number}", + "pulls_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/pulls{/number}", + "milestones_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/milestones{/number}", + "notifications_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/notifications{?since,all,participating}", + "labels_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/labels{/name}", + "releases_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/releases{/id}", + "deployments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/deployments", + "created_at": "2020-06-01T18:44:17Z", + "updated_at": "2020-06-02T03:14:53Z", + "pushed_at": "2020-06-02T03:14:51Z", + "git_url": "git://example.org/ahrefs/monorobot_test.git", + "ssh_url": "git@example.org:ahrefs/monorobot_test.git", + "clone_url": "https://example.org/ahrefs/monorobot_test.git", + "svn_url": "https://example.org/ahrefs/monorobot_test", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Shell", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + }, + "organization": { + "login": "ahrefs", + "id": 0, + "node_id": "00000000000000000000", + "url": "https://example.org/api/v3/orgs/ahrefs", + "repos_url": "https://example.org/api/v3/orgs/ahrefs/repos", + "events_url": "https://example.org/api/v3/orgs/ahrefs/events", + "hooks_url": "https://example.org/api/v3/orgs/ahrefs/hooks", + "issues_url": "https://example.org/api/v3/orgs/ahrefs/issues", + "members_url": "https://example.org/api/v3/orgs/ahrefs/members{/member}", + "public_members_url": "https://example.org/api/v3/orgs/ahrefs/public_members{/member}", + "avatar_url": "https://example.org/avatars/u/0", + "description": null + }, + "enterprise": { + "id": 0, + "slug": "ahrefs-corp", + "name": "Acme Corp", + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/b/0", + "description": null, + "website_url": null, + "html_url": "https://example.org/enterprises/ahrefs-corp", + "created_at": "2019-01-09T18:50:55Z", + "updated_at": "2019-03-01T16:07:28Z" + }, + "sender": { + "login": "ygrek", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/ygrek", + "html_url": "https://example.org/ip", + "followers_url": "https://example.org/api/v3/users/ygrek/followers", + "following_url": "https://example.org/api/v3/users/ygrek/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/ygrek/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/ygrek/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/ygrek/subscriptions", + "organizations_url": "https://example.org/api/v3/users/ygrek/orgs", + "repos_url": "https://example.org/api/v3/users/ygrek/repos", + "events_url": "https://example.org/api/v3/users/ygrek/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/ygrek/received_events", + "type": "User", + "site_admin": true + } +} diff --git a/mock_payloads/status.multi_repo_independent_status_state.json b/mock_payloads/status.multi_repo_independent_status_state.json new file mode 100644 index 00000000..71c7e867 --- /dev/null +++ b/mock_payloads/status.multi_repo_independent_status_state.json @@ -0,0 +1,222 @@ +{ + "id": 0, + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "name": "ahrefs/monorobot_test", + "target_url": "https://buildkite.com/org/pipeline2/builds/2", + "avatar_url": "https://example.org/avatars/oa/0", + "context": "buildkite/pipeline2", + "description": "Build #2 passed (5 minutes, 19 seconds)", + "state": "success", + "commit": { + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "node_id": "00000000000000000000", + "commit": { + "author": { + "name": "Wile E. Coyote", + "email": "wile.e.coyote@example.org", + "date": "2020-06-02T03:14:51Z" + }, + "committer": { + "name": "GitHub Enterprise", + "email": "git@example.org", + "date": "2020-06-02T03:14:51Z" + }, + "message": "Update README.md", + "tree": { + "sha": "ee5c539cad37c77348ce7a55756acc542b41cfc7", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/trees/ee5c539cad37c77348ce7a55756acc542b41cfc7" + }, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "html_url": "https://example.org/ahrefs/monorobot_test/commit/0d95302addd66c1816bce1b1d495ed1c93ccd478", + "comments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478/comments", + "author": { + "login": "wileecoyote", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/wileecoyote", + "html_url": "https://example.org/wileecoyote", + "followers_url": "https://example.org/api/v3/users/wileecoyote/followers", + "following_url": "https://example.org/api/v3/users/wileecoyote/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/wileecoyote/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/wileecoyote/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/wileecoyote/subscriptions", + "organizations_url": "https://example.org/api/v3/users/wileecoyote/orgs", + "repos_url": "https://example.org/api/v3/users/wileecoyote/repos", + "events_url": "https://example.org/api/v3/users/wileecoyote/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/wileecoyote/received_events", + "type": "User", + "site_admin": false + }, + "committer": null, + "parents": [ + { + "sha": "04cb72d6dc8d92131282a7eff57f6caf632f0a39", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/04cb72d6dc8d92131282a7eff57f6caf632f0a39", + "html_url": "https://example.org/ahrefs/monorobot_test/commit/04cb72d6dc8d92131282a7eff57f6caf632f0a39" + } + ] + }, + "branches": [ + { + "name": "master", + "commit": { + "sha": "0d95302addd66c1816bce1b1d495ed1c93ccd478", + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits/0d95302addd66c1816bce1b1d495ed1c93ccd478" + }, + "protected": false + } + ], + "created_at": "2020-06-02T03:21:39+00:00", + "updated_at": "2020-06-02T03:21:39+00:00", + "repository": { + "id": 0, + "node_id": "00000000000000000000", + "name": "monorobot_test", + "full_name": "ahrefs/monorobot_test", + "private": true, + "owner": { + "login": "ahrefs", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/ahrefs", + "html_url": "https://example.org/ahrefs", + "followers_url": "https://example.org/api/v3/users/ahrefs/followers", + "following_url": "https://example.org/api/v3/users/ahrefs/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/ahrefs/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/ahrefs/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/ahrefs/subscriptions", + "organizations_url": "https://example.org/api/v3/users/ahrefs/orgs", + "repos_url": "https://example.org/api/v3/users/ahrefs/repos", + "events_url": "https://example.org/api/v3/users/ahrefs/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/ahrefs/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://example.org/ahrefs/monorobot_test", + "description": null, + "fork": false, + "url": "https://example.org/api/v3/repos/ahrefs/monorobot_test", + "forks_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/forks", + "keys_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/keys{/key_id}", + "collaborators_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/collaborators{/collaborator}", + "teams_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/teams", + "hooks_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/hooks", + "issue_events_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues/events{/number}", + "events_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/events", + "assignees_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/assignees{/user}", + "branches_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/branches{/branch}", + "tags_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/tags", + "blobs_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/blobs{/sha}", + "git_tags_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/tags{/sha}", + "git_refs_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/refs{/sha}", + "trees_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/trees{/sha}", + "statuses_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/statuses/{sha}", + "languages_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/languages", + "stargazers_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/stargazers", + "contributors_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/contributors", + "subscribers_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/subscribers", + "subscription_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/subscription", + "commits_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/commits{/sha}", + "git_commits_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/git/commits{/sha}", + "comments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/comments{/number}", + "issue_comment_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues/comments{/number}", + "contents_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/contents/{+path}", + "compare_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/compare/{base}...{head}", + "merges_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/merges", + "archive_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/{archive_format}{/ref}", + "downloads_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/downloads", + "issues_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/issues{/number}", + "pulls_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/pulls{/number}", + "milestones_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/milestones{/number}", + "notifications_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/notifications{?since,all,participating}", + "labels_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/labels{/name}", + "releases_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/releases{/id}", + "deployments_url": "https://example.org/api/v3/repos/ahrefs/monorobot_test/deployments", + "created_at": "2020-06-01T18:44:17Z", + "updated_at": "2020-06-02T03:14:53Z", + "pushed_at": "2020-06-02T03:14:51Z", + "git_url": "git://example.org/ahrefs/monorobot_test.git", + "ssh_url": "git@example.org:ahrefs/monorobot_test.git", + "clone_url": "https://example.org/ahrefs/monorobot_test.git", + "svn_url": "https://example.org/ahrefs/monorobot_test", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Shell", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + }, + "organization": { + "login": "ahrefs", + "id": 0, + "node_id": "00000000000000000000", + "url": "https://example.org/api/v3/orgs/ahrefs", + "repos_url": "https://example.org/api/v3/orgs/ahrefs/repos", + "events_url": "https://example.org/api/v3/orgs/ahrefs/events", + "hooks_url": "https://example.org/api/v3/orgs/ahrefs/hooks", + "issues_url": "https://example.org/api/v3/orgs/ahrefs/issues", + "members_url": "https://example.org/api/v3/orgs/ahrefs/members{/member}", + "public_members_url": "https://example.org/api/v3/orgs/ahrefs/public_members{/member}", + "avatar_url": "https://example.org/avatars/u/0", + "description": null + }, + "enterprise": { + "id": 0, + "slug": "ahrefs-corp", + "name": "Acme Corp", + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/b/0", + "description": null, + "website_url": null, + "html_url": "https://example.org/enterprises/ahrefs-corp", + "created_at": "2019-01-09T18:50:55Z", + "updated_at": "2019-03-01T16:07:28Z" + }, + "sender": { + "login": "ygrek", + "id": 0, + "node_id": "00000000000000000000", + "avatar_url": "https://example.org/avatars/u/0", + "gravatar_id": "", + "url": "https://example.org/api/v3/users/ygrek", + "html_url": "https://example.org/ip", + "followers_url": "https://example.org/api/v3/users/ygrek/followers", + "following_url": "https://example.org/api/v3/users/ygrek/following{/other_user}", + "gists_url": "https://example.org/api/v3/users/ygrek/gists{/gist_id}", + "starred_url": "https://example.org/api/v3/users/ygrek/starred{/owner}{/repo}", + "subscriptions_url": "https://example.org/api/v3/users/ygrek/subscriptions", + "organizations_url": "https://example.org/api/v3/users/ygrek/orgs", + "repos_url": "https://example.org/api/v3/users/ygrek/repos", + "events_url": "https://example.org/api/v3/users/ygrek/events{/privacy}", + "received_events_url": "https://example.org/api/v3/users/ygrek/received_events", + "type": "User", + "site_admin": true + } +} diff --git a/mock_secrets/status.multi_repo_disallowed_repo.json b/mock_secrets/status.multi_repo_disallowed_repo.json new file mode 100644 index 00000000..81211dc6 --- /dev/null +++ b/mock_secrets/status.multi_repo_disallowed_repo.json @@ -0,0 +1,4 @@ +{ + "allowed_repos": ["https://github.com/Codertocat/Hello-World"], + "slack_access_token": "" +} diff --git a/mock_secrets/status.multi_repo_independent_status_state.json b/mock_secrets/status.multi_repo_independent_status_state.json new file mode 100644 index 00000000..24c307cc --- /dev/null +++ b/mock_secrets/status.multi_repo_independent_status_state.json @@ -0,0 +1,19 @@ +{ + "repos": { + "https://github.com/ahrefs/runner": { + "pipeline_statuses": { + "buildkite/pipeline2": { + "master": "success" + } + } + }, + "https://example.org/ahrefs/monorepo": { + "pipeline_statuses": { + "buildkite/pipeline2": { + "master": "failure" + } + } + } + }, + "slack_access_token": "" +} diff --git a/test/slack_payloads.expected b/test/slack_payloads.expected index 4e02646b..e7f4798c 100644 --- a/test/slack_payloads.expected +++ b/test/slack_payloads.expected @@ -514,6 +514,29 @@ will notify #default ] } ===== file ../mock_payloads/status.merge_develop.json ===== +===== file ../mock_payloads/status.multi_repo_disallowed_repo.json ===== +===== file ../mock_payloads/status.multi_repo_independent_status_state.json ===== +will notify #default +{ + "channel": "default", + "attachments": [ + { + "fallback": + " CI Build Status notification for : success", + "mrkdwn_in": [ "fields", "text" ], + "color": "good", + "pretext": + " CI Build Status notification for : success", + "text": "*Description*: Build #2 passed (5 minutes, 19 seconds).", + "fields": [ + { + "value": + "*Commit*: `` Update README.md - wileecoyote\n*Branch*: master" + } + ] + } + ] +} ===== file ../mock_payloads/status.pending_test.json ===== ===== file ../mock_payloads/status.state_hide_success_test.json ===== ===== file ../mock_payloads/status.state_hide_success_test_disallowed_pipeline.json =====