Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Refine CircleCI example screenshots.

Niloth P8e17ef350726
diff --git a/static/images/integrations/circleci/001.png b/static/images/integrations/circleci/001.png
index 7b6953b09f9..d5c2035d8bb 100644
Binary files a/static/images/integrations/circleci/001.png and b/static/images/integrations/circleci/001.png differ
diff --git a/static/images/integrations/circleci/002.png b/static/images/integrations/circleci/002.png
deleted file mode 100644
index 569e857498b..00000000000
Binary files a/static/images/integrations/circleci/002.png and /dev/null differ
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index 690bd447810..9f19190db8a 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -742,10 +742,7 @@ DOC_SCREENSHOT_CONFIG: dict[str, list[BaseScreenshotConfig]] = {
],
"buildbot": [ScreenshotConfig("started.json")],
"canarytoken": [ScreenshotConfig("canarytoken_real.json")],
- "circleci": [
- ScreenshotConfig("bitbucket_job_completed.json", image_name="001.png"),
- ScreenshotConfig("github_job_completed.json", image_name="002.png"),
- ],
+ "circleci": [ScreenshotConfig("github_job_completed.json")],
"clubhouse": [ScreenshotConfig("story_create.json")],
"codeship": [ScreenshotConfig("error_build.json")],
"crashlytics": [ScreenshotConfig("issue_message.json")],
diff --git a/zerver/webhooks/circleci/fixtures/github_job_completed.json b/zerver/webhooks/circleci/fixtures/github_job_completed.json
index 219330cb0b1..46ca62b8b77 100644
--- a/zerver/webhooks/circleci/fixtures/github_job_completed.json
+++ b/zerver/webhooks/circleci/fixtures/github_job_completed.json
@@ -13,7 +13,7 @@
"target_repository_url": "https://github.com/zulip-testing/circleci-webhook-test",
"revision": "a5e30a908224e46626a796d058289475f6d387b5",
"commit": {
- "subject": ".circleci: Update Webhook URL.",
+ "subject": "Fix remove-op on reaction event.",
"body": "",
"author": {
"name": "Hari Prashant Bhimaraju",
@@ -47,7 +47,7 @@
},
"project": {
"id": "c4fa043c-d2ba-4d97-a6ca-2745b3518114",
- "name": "circleci-webhook-test",
+ "name": "main branch - build notifications",
"slug": "github/zulip-testing/circleci-webhook-test"
},
"id": "e7346c18-44cb-331d-9d45-698a38edb2e0",
diff --git a/zerver/webhooks/circleci/tests.py b/zerver/webhooks/circleci/tests.py
index 7a09795bd12..611f6be5202 100644
--- a/zerver/webhooks/circleci/tests.py
+++ b/zerver/webhooks/circleci/tests.py
@@ -41,11 +41,11 @@ Triggered on [`8ab595d2de9: app.py edited online with Bitbucket`](https://bitbuc
self.check_webhook("bitbucket_workflow_completed", expected_topic_name, expected_message)
def test_github_job_completed(self) -> None:
- expected_topic_name = "circleci-webhook-test"
+ expected_topic_name = "main branch - build notifications"
expected_message = """
Job `build-and-test` within Pipeline #4 has succeeded.
-Triggered on [`a5e30a90822: .circleci: Update Webhook URL.`](https://github.com/zulip-testing/circleci-webhook-test/commit/a5e30a908224e46626a796d058289475f6d387b5) on branch `main` by Hari Prashant Bhimaraju.
+Triggered on [`a5e30a90822: Fix remove-op on reaction event.`](https://github.com/zulip-testing/circleci-webhook-test/commit/a5e30a908224e46626a796d058289475f6d387b5) on branch `main` by Hari Prashant Bhimaraju.
""".strip()
self.check_webhook("github_job_completed", expected_topic_name, expected_message)