Skip to content

fix: fix cursor bot comments#803

Merged
gbotrel merged 1 commit intomasterfrom
fix/civ
Feb 11, 2026
Merged

fix: fix cursor bot comments#803
gbotrel merged 1 commit intomasterfrom
fix/civ

Conversation

@gbotrel
Copy link
Copy Markdown
Collaborator

@gbotrel gbotrel commented Feb 11, 2026

Note

Low Risk
Small CI workflow refactor limited to Slack notification scripting; main risk is miswired env vars causing missing/incorrect Slack messages.

Overview
Refactors .github/workflows/slack-notifications.yml to pass workflow_call inputs and SLACK_BOT_TOKEN into the bash step via env, and then use those variables throughout the jq payload construction and curl request instead of inline ${{ }} expressions.

This also makes the bash condition use a POSIX-style string comparison ([ "$STATUS" = "success" ]).

Written by Cursor Bugbot for commit c2f050c. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings February 11, 2026 03:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the reusable Slack notification workflow to use step environment variables for inputs/secrets and fixes the Slack message JSON formatting so notifications post reliably.

Changes:

  • Map workflow_call inputs/secrets into step env variables and reference them from the bash script.
  • Fix JSON payload formatting (remove invalid trailing commas) in both success and failure Slack message blocks.
  • Use the token from $SLACK_BOT_TOKEN in the curl Authorization header.

}')
fi
response=$(curl -s -X POST -H 'Content-type: application/json; charset=utf-8' --data "$payload" https://slack.com/api/chat.postMessage -H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}" )
response=$(curl -s -X POST -H 'Content-type: application/json; charset=utf-8' --data "$payload" https://slack.com/api/chat.postMessage -H "Authorization: Bearer $SLACK_BOT_TOKEN" )
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Slack API call result is currently ignored: curl is run without -f and the response JSON isn’t checked for .ok == true, so this step can report success even when the notification fails. Consider at least logging Slack’s .error / non-2xx responses (and optionally failing the step) to avoid silent notification drops.

Copilot uses AI. Check for mistakes.
@gbotrel gbotrel merged commit 2294eb7 into master Feb 11, 2026
20 checks passed
@gbotrel gbotrel deleted the fix/civ branch February 11, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants