Repository navigation
ci(version-audit): fix blocked Linear calls, Slack results, skip up-to-date tickets - #5677
Conversation
Cursor loads Claude Code hooks from .claude/settings.json and runs the lint-staged PreToolUse hook on every shell command, ignoring its git-commit filter. The hook's non-JSON output blocks all commands, so the audit never reached the Linear API. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5677 +/- ##
========================================
Coverage 92.12% 92.12%
========================================
Files 713 713
Lines 39591 39591
Branches 9276 9206 -70
========================================
Hits 36474 36474
- Misses 2852 2932 +80
+ Partials 265 185 -80 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Look up the audit master ticket touched during the run and post its link to Slack, or a failure message when no ticket was created or updated (cursor-agent exits 0 even when Linear calls are blocked). Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
Have cursor-agent print a MASTER_TICKET_URL line and read it from the tee'd output instead of querying Linear in a separate step. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
The plan marked any integration with a sunset date as action required, so integrations already on the latest version (e.g. Facebook Graph v25.0, Criteo 2026-07) got tickets. Require a newer version to exist. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
|



What are the changes introduced in this PR?
Two changes to the Integration Version Audit workflow:
Fix: remove
.claude/settings.json(and.claude/settings.local.json) beforecursor-agentruns, so its Claude Code hook stops blocking the agent's shell commands.Slack notification: after every run, post the result to #integration-dev, with the parent (master) Linear ticket link when the run succeeds. The agent is now asked to print a
MASTER_TICKET_URL: <url>line. Its output is tee'd to a file and the URL is read from there. If the agent step fails or no URL is printed, a failure message is posted instead.set -o pipefailkeeps thecursor-agentexit code intact throughtee.No tickets for up-to-date integrations: the audit plan treated any integration with a sunset date as action required. That gave tickets to integrations already on the latest version, such as the five Facebook Graph v25.0 ones and Criteo
2026-07. Now action is required only when a newer version exists, the version gap is greater than 2, or the code still defaults to a deprecated endpoint.The Slack message also CCs @integrations-eng.
The Slack step reuses the existing
SLACK_BOT_TOKENandSLACK_INTEGRATION_DEV_CHANNEL_IDsecrets and the same pinnedslackapi/slack-github-actionthatslack-notify.ymluses.What is the related Linear task?
N/A
Please explain the objectives of your changes below
Cursor loads Claude Code hooks from
.claude/settings.json(its third-party hooks compatibility, on by default). It maps ourPreToolUse/Bashlint-staged hook to every shell command, and it ignores the Claude Code–only"if": "Bash(git commit*)"filter. The hook prints plain text instead of JSON, so Cursor blocks every command. As a result, the audit has not been able to call the Linear API, and no tickets were created or updated. The job still reports success.Failed runs:
Both logs report:
Hook "npx lint-staged..." returned invalid JSON. The command was blocked for safety.Reference: https://cursor.com/docs/reference/third-party-hooks
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
The settings file is removed only on the CI runner. Local Claude Code users keep the hook. The audit now posts a message to #integration-dev on every run.
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
The hook fix was verified with a dispatch run of this branch: https://github.com/rudderlabs/rudder-transformer/actions/runs/38691782956. That run created master INT-7380, 21 subtickets, and 1 update. The Slack notification commits have not run in CI yet.
🤖 Generated with Claude Code