Skip to content

Add CI monitoring for PRs via Claude Code hook#1141

Closed
nikosbosse wants to merge 2 commits intomainfrom
feat/ci-monitoring-hook
Closed

Add CI monitoring for PRs via Claude Code hook#1141
nikosbosse wants to merge 2 commits intomainfrom
feat/ci-monitoring-hook

Conversation

@nikosbosse
Copy link
Collaborator

CLAUDE:

Summary

  • Adds .claude/CLAUDE.md with PR monitoring instructions — after pushing or creating a PR, Claude checks CI status and monitors every 2 minutes for 15 minutes
  • Adds .claude/settings.json with a PostToolUse hook that triggers automatically after git push or gh pr create
  • Straightforward CI failures are fixed directly; complex ones are escalated to the user

Test plan

  • Push to a branch with an open PR and verify Claude checks CI status
  • Create a new PR and verify the same monitoring kicks in
  • Verify the /loop 2m background monitoring starts after the initial check

🤖 Generated with Claude Code

nikosbosse and others added 2 commits March 25, 2026 11:38
After pushing or creating a PR, Claude will automatically check for CI
failures, then monitor every 2 minutes for 15 minutes. Straightforward
issues are fixed directly; complex ones are escalated to the user.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add gh pr checks and gh pr view to the permissions allow list so the
monitoring hook can run without prompting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.94%. Comparing base (728f50a) to head (cf438b1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1141   +/-   ##
=======================================
  Coverage   97.94%   97.94%           
=======================================
  Files          37       37           
  Lines        1951     1951           
=======================================
  Hits         1911     1911           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

I'm not sure I love the idea of enforcing this on contributors? It seems like maybe its a skill we can suggest they use in their own top level claude?

@seabbs
Copy link
Contributor

seabbs commented Mar 25, 2026

Also you only need one of these right? The hook

@nikosbosse
Copy link
Collaborator Author

Yeah, I think you're right. Probably shouldn't be part of the repo. Will close it. But if you want to steal the idea, steal away!

@nikosbosse nikosbosse closed this Mar 25, 2026
@seabbs
Copy link
Contributor

seabbs commented Mar 25, 2026

In the middle of doing so!

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