Skip to content

Commit 045f848

Browse files
chore: sync workflow templates from Workflows repo
Automated sync from stranske/Workflows Template hash: 5a2d084a5b65 Changes synced from sync-manifest.yml
1 parent 49c27db commit 045f848

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.coderabbit.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# CodeRabbit configuration — https://docs.coderabbit.ai/getting-started/configure-coderabbit
2+
# Fleet default, synced from stranske/Workflows (templates/consumer-repo/.coderabbit.yaml).
3+
# Tuned for the stranske autonomous-agent fleet:
4+
# - assertive review of substantial agent-authored PRs
5+
# - advisory / non-gating, matching the fleet rule that review never blocks a merge
6+
# - maintenance-bot PRs and generated sync/draft PRs do not spend review budget
7+
# - a workflow-injection guard, since workflow YAML is synced across consumer repos
8+
language: en-US
9+
reviews:
10+
profile: assertive
11+
request_changes_workflow: false # advisory: never auto-block a merge (fleet rule)
12+
high_level_summary: true
13+
poem: false
14+
auto_review:
15+
enabled: true
16+
drafts: false # opener creates drafts; review when marked ready
17+
# Skip automatic-review budget on maintenance-bot PRs (dependency bumps, CI/version
18+
# syncs). agents-workflows-bot is intentionally NOT listed — it authors substantial
19+
# agent code PRs (e.g. "Agent belt for #N") that should still be reviewed.
20+
ignore_usernames:
21+
- "renovate[bot]"
22+
- "dependabot[bot]"
23+
- "github-actions[bot]"
24+
- "stranske-keepalive[bot]"
25+
# Also skip generated maintenance / sync PRs by title and by negative label.
26+
ignore_title_keywords:
27+
- "chore: sync workflow templates"
28+
- "sync workflow templates"
29+
labels:
30+
- "!sync"
31+
- "!workflow:source-sync"
32+
- "!workflow:source-maintenance"
33+
- "!consumer-sync"
34+
- "!integration-sync"
35+
- "!workflows-sync"
36+
- "!template-sync"
37+
path_filters:
38+
- "!**/*.lock"
39+
- "!**/vendor/**"
40+
- "!**/.workflows-lib/**"
41+
path_instructions:
42+
- path: ".github/workflows/**"
43+
instructions: >-
44+
Flag template-injection, unpinned third-party actions, and spoofable bot-actor
45+
checks — this workflow YAML is synced across consumer repos, so one bug
46+
replicates fleet-wide.
47+
chat:
48+
auto_reply: true

scripts/runner_lib/core.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ def _provider_instruction_path(workspace: Path, provider: str) -> Path:
130130
return workspace / ".github" / "claude" / "AGENT_INSTRUCTIONS.md"
131131

132132

133+
def _repository_guidance_path(workspace: Path) -> Path:
134+
return workspace / "AGENTS.md"
135+
136+
133137
def _prompt_output_name(provider: str, pr_number: str | int | None) -> str:
134138
suffix = f"-{pr_number}" if pr_number not in (None, "") else ""
135139
return f"{provider}-prompt{suffix}.md"
@@ -489,6 +493,10 @@ def assemble_prompt(
489493
if appendix:
490494
parts.extend(["\n\n## Run context\n", appendix.rstrip()])
491495

496+
repository_guidance = _repository_guidance_path(workspace)
497+
if repository_guidance.is_file():
498+
parts.extend(["\n\n## Repository Guidance\n", _read_text(repository_guidance).rstrip()])
499+
492500
reference_summary = workspace / ".reference" / "REFERENCE_PACKS.md"
493501
if reference_summary.is_file():
494502
parts.extend(["\n\n## Reference Packs\n", _read_text(reference_summary).rstrip()])

0 commit comments

Comments
 (0)