Skip to content

feat(ci): integrate nightshift feedback loop workflow#8580

Closed
zahin-mohammad wants to merge 1 commit into
masterfrom
zahin/wcn-171-nightshift-feedback-loop
Closed

feat(ci): integrate nightshift feedback loop workflow#8580
zahin-mohammad wants to merge 1 commit into
masterfrom
zahin/wcn-171-nightshift-feedback-loop

Conversation

@zahin-mohammad
Copy link
Copy Markdown
Contributor

Ticket: WCN-171

Summary

  • Adds .github/workflows/nightshift-scheduler.yaml and nightshift-task.yaml to run BitGo's nightshift-actions on a weekday cron via AWS Bedrock.
  • Adds .nightshift.yaml enabling built-in tasks (lint-fix, test-gap, dead-code, security-footgun, adr-draft) plus a new custom pr-feedback-loop task.
  • The pr-feedback-loop task reviews merged PRs from the last 14 days, extracts recurring patterns and review feedback, and opens draft PRs updating docs/anti-patterns/ and docs/adr/.
  • Scaffolds docs/anti-patterns/ and docs/adr/ with format READMEs so the feedback loop has a home for its output.

Notes

  • All nightshift-generated doc PRs are opened as drafts marked "pending expert review" and must NOT be auto-merged.
  • Anti-patterns are only written when seen in 2+ PRs to avoid outsized influence from single comments.
  • CODEOWNERS should be updated to require review of docs/anti-patterns/ and docs/adr/ changes.

Test Plan

  • Manually trigger the nightshift-task workflow from Actions tab with task_type: pr-feedback-loop
  • Verify a draft PR is opened with nightshift and feedback-loop labels
  • Confirm generated docs are in docs/anti-patterns/ or docs/adr/ and marked as drafts

Add nightshift-actions scheduler and task runner workflows to enable
nightly automated maintenance tasks. Introduce a custom pr-feedback-loop
task that reviews recent merged PRs and opens draft PRs updating
docs/anti-patterns/ and docs/adr/ with learnings from code review.

Also scaffold docs/anti-patterns/ and docs/adr/ directories with format
READMEs so the feedback loop has a home for its output. All generated
docs are marked as drafts requiring expert review before merge.

Ticket: WCN-171
@linear
Copy link
Copy Markdown

linear Bot commented Apr 21, 2026

@zahin-mohammad zahin-mohammad deleted the zahin/wcn-171-nightshift-feedback-loop branch April 21, 2026 02:01
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.

1 participant