snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
48
zerver/webhooks/slack_incoming/fixtures/actions.json
Normal file
48
zerver/webhooks/slack_incoming/fixtures/actions.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"channel": "C1H9RESGL",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Danny Torrence left the following _review_ for your property:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "section567",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "<https://google.com|Overlook Hotel> \n :star: \n Doors had too many axe holes, guest in room 237 was far too rowdy, whole place felt stuck in the 1920s."
|
||||
},
|
||||
"accessory": {
|
||||
"type": "image",
|
||||
"image_url": "https://is5-ssl.mzstatic.com/image/thumb/Purple3/v4/d3/72/5c/d3725c8f-c642-5d69-1904-aa36e4297885/source/256x256bb.jpg",
|
||||
"alt_text": "Haunted hotel image"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "section789",
|
||||
"fields": [
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "*Average Rating*\n1.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "actions",
|
||||
"elements": [
|
||||
{
|
||||
"type": "button",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Reply to review",
|
||||
"emoji": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
21
zerver/webhooks/slack_incoming/fixtures/attachment.json
Normal file
21
zerver/webhooks/slack_incoming/fixtures/attachment.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"channel": "#prometheus-alerts",
|
||||
"username": "Alertmanager",
|
||||
"blocks": null,
|
||||
"attachments": [
|
||||
{
|
||||
"title": "[FIRING:2] InstanceDown for api-server (env=\"prod\", severity=\"critical\")",
|
||||
"title_link": "https://alertmanager.local//#/alerts?receiver=default",
|
||||
"text": ":chart_with_upwards_trend: *<http://generator.local/1|Graph>* :notebook: *<https://runbook.local/1|Runbook>*\n\n*Alert details*:\n*Alert:* api-server down - `critical`\n*Description:* api-server at 1.2.3.4:8080 couldn't be scraped *Details:*\n • *alertname:* `InstanceDown`\n • *env:* `prod`\n • *instance:* `1.2.3.4:8080`\n • *job:* `api-server`\n • *severity:* `critical`\n\n*Alert:* api-server down - `critical`\n*Description:* api-server at 1.2.3.4:8081 couldn't be scraped *Details:*\n • *alertname:* `InstanceDown`\n • *env:* `prod`\n • *instance:* `1.2.3.4:8081`\n • *job:* `api-server`\n • *severity:* `critical`\n \n",
|
||||
"fallback": "[FIRING:2] InstanceDown api-server (prod critical) | https://alertmanager.local//#/alerts?receiver=default",
|
||||
"callback_id": "",
|
||||
"footer": "",
|
||||
"color": "danger",
|
||||
"mrkdwn_in": [
|
||||
"fallback",
|
||||
"pretext",
|
||||
"text"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "This is a section block with an accessory image."
|
||||
},
|
||||
"accessory": {
|
||||
"type": "image",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"alt_text": "cute cat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "This is a section block with a button."
|
||||
},
|
||||
"accessory": {
|
||||
"type": "button",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Click Me",
|
||||
"emoji": true
|
||||
},
|
||||
"value": "click_me_123",
|
||||
"action_id": "button-action"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"fields": [
|
||||
{
|
||||
"type": "plain_text",
|
||||
"text": "one",
|
||||
"emoji": true
|
||||
},
|
||||
{
|
||||
"type": "plain_text",
|
||||
"text": "two",
|
||||
"emoji": true
|
||||
},
|
||||
{
|
||||
"type": "plain_text",
|
||||
"text": "three",
|
||||
"emoji": true
|
||||
},
|
||||
{
|
||||
"type": "plain_text",
|
||||
"text": "four",
|
||||
"emoji": true
|
||||
},
|
||||
{
|
||||
"type": "plain_text",
|
||||
"text": "five",
|
||||
"emoji": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"color": "good",
|
||||
"fields": [
|
||||
{
|
||||
"title": "Requested by",
|
||||
"value": "Some user",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": "Duration",
|
||||
"value": "00:02:03",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": "Build pipeline",
|
||||
"value": "ConsumerAddressModule",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": "Title with null value",
|
||||
"value": null,
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": "Title without value",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": null,
|
||||
"value": "Value with null title",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"value": "Value without title",
|
||||
"short": true
|
||||
},
|
||||
{
|
||||
"title": null,
|
||||
"value": null,
|
||||
"short": true
|
||||
}
|
||||
],
|
||||
"pretext": "Build bla bla succeeded",
|
||||
"mrkdwn_in": [
|
||||
"pretext"
|
||||
],
|
||||
"fallback": "Build ConsumerAddressModule_20150407.2 succeeded"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Test",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": null,
|
||||
"title_link": null,
|
||||
"image_url": null,
|
||||
"ts": null,
|
||||
"text": null,
|
||||
"pretext": null,
|
||||
"footer": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306,
|
||||
"text": "Sample text.",
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": null,
|
||||
"ts": 1655945306,
|
||||
"text": "Sample text.",
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306,
|
||||
"text": "Sample text.",
|
||||
"pretext": null,
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306,
|
||||
"text": null,
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": null,
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306,
|
||||
"text": "Sample text.",
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": null,
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": 1655945306,
|
||||
"text": "Sample text.",
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Sample title.",
|
||||
"title_link": "https://www.google.com",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"ts": null,
|
||||
"text": "Sample text.",
|
||||
"pretext": "Sample pretext.",
|
||||
"footer": "Sample footer."
|
||||
}
|
||||
]
|
||||
}
|
||||
35
zerver/webhooks/slack_incoming/fixtures/blocks.json
Normal file
35
zerver/webhooks/slack_incoming/fixtures/blocks.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"text": "Danny Torrence left a 1 star review for your property.",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Danny Torrence left the following review for your property:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "section567",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "<https://example.com|Overlook Hotel> \n :star: \n Doors had too many axe holes, guest in room 237 was far too rowdy, whole place felt stuck in the 1920s."
|
||||
},
|
||||
"accessory": {
|
||||
"type": "image",
|
||||
"image_url": "https://is5-ssl.mzstatic.com/image/thumb/Purple3/v4/d3/72/5c/d3725c8f-c642-5d69-1904-aa36e4297885/source/256x256bb.jpg",
|
||||
"alt_text": "Haunted hotel image"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "section789",
|
||||
"fields": [
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "*Average Rating*\n1.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
16
zerver/webhooks/slack_incoming/fixtures/broken_image.json
Normal file
16
zerver/webhooks/slack_incoming/fixtures/broken_image.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Some image here"
|
||||
},
|
||||
"accessory": {
|
||||
"type": "image",
|
||||
"alt_text": "yay",
|
||||
"image_url": "null"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
91
zerver/webhooks/slack_incoming/fixtures/complicated.json
Normal file
91
zerver/webhooks/slack_incoming/fixtures/complicated.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"blocks": [
|
||||
{
|
||||
"type": "header",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Hello from TaskBot",
|
||||
"emoji": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Hey there 👋 I'm TaskBot. I'm here to help you create and manage tasks in Slack.\nThere are two ways to quickly create tasks:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*1️⃣ Use the `/task` command*. Type `/task` followed by a short description of your tasks and I'll ask for a due date (if applicable). Try it out by using the `/task` command in this channel."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*2️⃣ Use the _Create a Task_ action.* If you want to create a task from a message, select `Create a Task` in a message's context menu. Try it out by selecting the _Create a Task_ action for this message (shown below)."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"title": {
|
||||
"type": "plain_text",
|
||||
"text": "image1",
|
||||
"emoji": true
|
||||
},
|
||||
"image_url": "https://api.slack.com/img/blocks/bkb_template_images/onboardingComplex.jpg",
|
||||
"alt_text": "image1"
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "➕ To start tracking your team's tasks, *add me to a channel* and I'll introduce myself. I'm usually added to a team or project channel. Type `/invite @TaskBot` from the channel or pick a channel on the right."
|
||||
},
|
||||
"accessory": {
|
||||
"type": "conversations_select",
|
||||
"placeholder": {
|
||||
"type": "plain_text",
|
||||
"text": "Select a channel...",
|
||||
"emoji": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"element": {
|
||||
"type": "plain_text_input",
|
||||
"action_id": "plain_text_input-action"
|
||||
},
|
||||
"label": {
|
||||
"type": "plain_text",
|
||||
"text": "Try writing some task in here:",
|
||||
"emoji": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "divider"
|
||||
},
|
||||
{
|
||||
"type": "context",
|
||||
"elements": [
|
||||
{
|
||||
"type": "image",
|
||||
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
||||
"alt_text": "cute cat"
|
||||
},
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "👀 View all tasks with `/task list`"
|
||||
},
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "❓Get help at any time with:\n- `/task help`, or\n- type *help* in a DM with me"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
3
zerver/webhooks/slack_incoming/fixtures/null_text.json
Normal file
3
zerver/webhooks/slack_incoming/fixtures/null_text.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"text": null
|
||||
}
|
||||
3
zerver/webhooks/slack_incoming/fixtures/text.json
Normal file
3
zerver/webhooks/slack_incoming/fixtures/text.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"text": "Hello, world."
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
payload=%7B%22username%22%3A%22DeployBot%22%2C%22icon_url%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Fphallstrom%2Fslackistrano%2Fmaster%2Fimages%2Fslackistrano.png%22%2C%22icon_emoji%22%3A%22%3Azap%3A%22%2C%22text%22%3A%22chris+has+started+deploying+project+tag+v0.0.2rc10+to+staging%22%2C%22channel%22%3A%22%23devops%22%7D
|
||||
Reference in New Issue
Block a user