Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: add slack notification on dequeue from merge queue (#10580)

Ashwin Bhatkal9689b847f096
diff --git a/.github/workflows/mergequeueci.yaml b/.github/workflows/mergequeueci.yaml
new file mode 100644
index 0000000000..c108113226
--- /dev/null
+++ b/.github/workflows/mergequeueci.yaml
@@ -0,0 +1,59 @@
+name: mergequeueci
+
+on:
+ pull_request:
+ types:
+ - dequeued
+
+jobs:
+ notify:
+ runs-on: ubuntu-latest
+ steps:
+ - name: alert
+ uses: slackapi/[email protected]
+ with:
+ webhook: ${{ secrets.SLACK_MERGE_QUEUE_WEBHOOK }}
+ webhook-type: incoming-webhook
+ payload: |
+ {
+ "text": ":x: PR removed from merge queue",
+ "blocks": [
+ {
+ "type": "header",
+ "text": {
+ "type": "plain_text",
+ "text": ":x: PR Removed from Merge Queue"
+ }
+ },
+ {
+ "type": "section",
+ "text": {
+ "type": "mrkdwn",
+ "text": "*<${{ github.event.pull_request.html_url }}|PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}>*"
+ }
+ },
+ {
+ "type": "divider"
+ },
+ {
+ "type": "section",
+ "fields": [
+ {
+ "type": "mrkdwn",
+ "text": "*Author*\n@${{ github.event.pull_request.user.login }}"
+ }
+ ]
+ }
+ ]
+ }
+ - name: comment
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ PR_AUTHOR: ${{ github.event.pull_request.user.login }}
+ PR_URL: ${{ github.event.pull_request.html_url }}
+ run: |
+ gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments \
+ -f body="> :x: **PR removed from merge queue**
+ >
+ > @$PR_AUTHOR your PR was removed from the merge queue. Fix the issue and re-queue when ready."