@namch/agent-assistant 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -522
- package/agents/backend-engineer.md +0 -8
- package/agents/brainstormer.md +0 -6
- package/agents/business-analyst.md +0 -5
- package/agents/database-architect.md +0 -6
- package/agents/debugger.md +0 -6
- package/agents/designer.md +0 -5
- package/agents/devops-engineer.md +0 -7
- package/agents/docs-manager.md +0 -6
- package/agents/frontend-engineer.md +0 -7
- package/agents/game-engineer.md +0 -7
- package/agents/mobile-engineer.md +0 -7
- package/agents/performance-engineer.md +0 -7
- package/agents/planner.md +0 -6
- package/agents/project-manager.md +0 -6
- package/agents/researcher.md +0 -5
- package/agents/reviewer.md +0 -6
- package/agents/scouter.md +0 -6
- package/agents/security-engineer.md +0 -7
- package/agents/tech-lead.md +0 -7
- package/agents/tester.md +0 -5
- package/cli/README.md +19 -10
- package/documents/business/business-features.md +1 -1
- package/documents/business/business-prd.md +4 -4
- package/documents/knowledge-architecture.md +1 -1
- package/documents/knowledge-domain.md +1 -1
- package/documents/knowledge-overview.md +14 -29
- package/documents/knowledge-source-base.md +14 -14
- package/package.json +1 -1
- package/rules/QUICK-REFERENCE.md +4 -1
- package/rules/SKILL-DISCOVERY.md +37 -14
- package/skills/active-directory-attacks/SKILL.md +383 -0
- package/skills/active-directory-attacks/references/advanced-attacks.md +382 -0
- package/skills/agent-evaluation/SKILL.md +64 -0
- package/skills/agent-memory-mcp/SKILL.md +82 -0
- package/skills/agent-memory-systems/SKILL.md +67 -0
- package/skills/agent-tool-builder/SKILL.md +53 -0
- package/skills/ai-agents-architect/SKILL.md +90 -0
- package/skills/ai-product/SKILL.md +54 -0
- package/skills/ai-wrapper-product/SKILL.md +273 -0
- package/skills/api-documentation-generator/SKILL.md +484 -0
- package/skills/api-fuzzing-bug-bounty/SKILL.md +433 -0
- package/skills/api-security-best-practices/SKILL.md +907 -0
- package/skills/autonomous-agent-patterns/SKILL.md +761 -0
- package/skills/autonomous-agents/SKILL.md +68 -0
- package/skills/aws-penetration-testing/SKILL.md +405 -0
- package/skills/aws-penetration-testing/references/advanced-aws-pentesting.md +469 -0
- package/skills/azure-functions/SKILL.md +42 -0
- package/skills/backend-dev-guidelines/SKILL.md +342 -0
- package/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
- package/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
- package/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
- package/skills/backend-dev-guidelines/resources/configuration.md +275 -0
- package/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
- package/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
- package/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
- package/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
- package/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
- package/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
- package/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
- package/skills/broken-authentication/SKILL.md +476 -0
- package/skills/bullmq-specialist/SKILL.md +57 -0
- package/skills/bun-development/SKILL.md +691 -0
- package/skills/burp-suite-testing/SKILL.md +380 -0
- package/skills/cloud-penetration-testing/SKILL.md +501 -0
- package/skills/cloud-penetration-testing/references/advanced-cloud-scripts.md +318 -0
- package/skills/computer-use-agents/SKILL.md +315 -0
- package/skills/content-creator/SKILL.md +248 -0
- package/skills/content-creator/assets/content_calendar_template.md +99 -0
- package/skills/content-creator/references/brand_guidelines.md +199 -0
- package/skills/content-creator/references/content_frameworks.md +534 -0
- package/skills/content-creator/references/social_media_optimization.md +317 -0
- package/skills/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/skills/content-creator/scripts/seo_optimizer.py +419 -0
- package/skills/context-window-management/SKILL.md +53 -0
- package/skills/conversation-memory/SKILL.md +61 -0
- package/skills/copy-editing/SKILL.md +439 -0
- package/skills/copywriting/SKILL.md +225 -0
- package/skills/crewai/SKILL.md +243 -0
- package/skills/discord-bot-architect/SKILL.md +277 -0
- package/skills/dispatching-parallel-agents/SKILL.md +180 -0
- package/skills/email-sequence/SKILL.md +925 -0
- package/skills/email-systems/SKILL.md +54 -0
- package/skills/ethical-hacking-methodology/SKILL.md +466 -0
- package/skills/executing-plans/SKILL.md +76 -0
- package/skills/file-path-traversal/SKILL.md +486 -0
- package/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/frontend-dev-guidelines/SKILL.md +359 -0
- package/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-dev-guidelines/resources/performance.md +406 -0
- package/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/skills/gcp-cloud-run/SKILL.md +288 -0
- package/skills/git-pushing/SKILL.md +33 -0
- package/skills/git-pushing/scripts/smart_commit.sh +19 -0
- package/skills/github-workflow-automation/SKILL.md +846 -0
- package/skills/html-injection-testing/SKILL.md +498 -0
- package/skills/idor-testing/SKILL.md +442 -0
- package/skills/inngest/SKILL.md +55 -0
- package/skills/javascript-mastery/SKILL.md +645 -0
- package/skills/kaizen/SKILL.md +730 -0
- package/skills/langfuse/SKILL.md +238 -0
- package/skills/langgraph/SKILL.md +287 -0
- package/skills/linux-privilege-escalation/SKILL.md +504 -0
- package/skills/llm-app-patterns/SKILL.md +760 -0
- package/skills/metasploit-framework/SKILL.md +478 -0
- package/skills/multi-agent-brainstorming/SKILL.md +256 -0
- package/skills/neon-postgres/SKILL.md +56 -0
- package/skills/nextjs-supabase-auth/SKILL.md +56 -0
- package/skills/nosql-expert/SKILL.md +111 -0
- package/skills/pentest-checklist/SKILL.md +334 -0
- package/skills/pentest-commands/SKILL.md +438 -0
- package/skills/plaid-fintech/SKILL.md +50 -0
- package/skills/planning-with-files/SKILL.md +211 -0
- package/skills/planning-with-files/examples.md +202 -0
- package/skills/planning-with-files/reference.md +218 -0
- package/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/skills/planning-with-files/templates/findings.md +95 -0
- package/skills/planning-with-files/templates/progress.md +114 -0
- package/skills/planning-with-files/templates/task_plan.md +132 -0
- package/skills/privilege-escalation-methods/SKILL.md +333 -0
- package/skills/production-code-audit/SKILL.md +540 -0
- package/skills/prompt-caching/SKILL.md +61 -0
- package/skills/prompt-engineering/SKILL.md +171 -0
- package/skills/prompt-library/SKILL.md +322 -0
- package/skills/rag-engineer/SKILL.md +90 -0
- package/skills/rag-implementation/SKILL.md +63 -0
- package/skills/react-ui-patterns/SKILL.md +289 -0
- package/skills/red-team-tools/SKILL.md +310 -0
- package/skills/scanning-tools/SKILL.md +589 -0
- package/skills/shodan-reconnaissance/SKILL.md +503 -0
- package/skills/slack-bot-builder/SKILL.md +264 -0
- package/skills/smtp-penetration-testing/SKILL.md +500 -0
- package/skills/social-content/SKILL.md +807 -0
- package/skills/software-architecture/SKILL.md +75 -0
- package/skills/sql-injection-testing/SKILL.md +448 -0
- package/skills/sqlmap-database-pentesting/SKILL.md +400 -0
- package/skills/ssh-penetration-testing/SKILL.md +488 -0
- package/skills/stripe-integration/SKILL.md +69 -0
- package/skills/subagent-driven-development/SKILL.md +240 -0
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/skills/tavily-web/SKILL.md +36 -0
- package/skills/telegram-bot-builder/SKILL.md +254 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +119 -0
- package/skills/top-web-vulnerabilities/SKILL.md +543 -0
- package/skills/trigger-dev/SKILL.md +67 -0
- package/skills/twilio-communications/SKILL.md +295 -0
- package/skills/upstash-qstash/SKILL.md +68 -0
- package/skills/verification-before-completion/SKILL.md +139 -0
- package/skills/voice-agents/SKILL.md +68 -0
- package/skills/voice-ai-development/SKILL.md +302 -0
- package/skills/windows-privilege-escalation/SKILL.md +496 -0
- package/skills/wireshark-analysis/SKILL.md +497 -0
- package/skills/wordpress-penetration-testing/SKILL.md +485 -0
- package/skills/workflow-automation/SKILL.md +68 -0
- package/skills/xss-html-injection/SKILL.md +499 -0
- package/skills/zapier-make-patterns/SKILL.md +67 -0
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-workflow-automation
|
|
3
|
+
description: "Automate GitHub workflows with AI assistance. Includes PR reviews, issue triage, CI/CD integration, and Git operations. Use when automating GitHub workflows, setting up PR review automation, creating GitHub Actions, or triaging issues."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 🔧 GitHub Workflow Automation
|
|
7
|
+
|
|
8
|
+
> Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini CLI](https://github.com/google-gemini/gemini-cli) and modern DevOps practices.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Use this skill when:
|
|
13
|
+
|
|
14
|
+
- Automating PR reviews with AI
|
|
15
|
+
- Setting up issue triage automation
|
|
16
|
+
- Creating GitHub Actions workflows
|
|
17
|
+
- Integrating AI into CI/CD pipelines
|
|
18
|
+
- Automating Git operations (rebases, cherry-picks)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 1. Automated PR Review
|
|
23
|
+
|
|
24
|
+
### 1.1 PR Review Action
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
# .github/workflows/ai-review.yml
|
|
28
|
+
name: AI Code Review
|
|
29
|
+
|
|
30
|
+
on:
|
|
31
|
+
pull_request:
|
|
32
|
+
types: [opened, synchronize]
|
|
33
|
+
|
|
34
|
+
jobs:
|
|
35
|
+
review:
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
permissions:
|
|
38
|
+
contents: read
|
|
39
|
+
pull-requests: write
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v4
|
|
43
|
+
with:
|
|
44
|
+
fetch-depth: 0
|
|
45
|
+
|
|
46
|
+
- name: Get changed files
|
|
47
|
+
id: changed
|
|
48
|
+
run: |
|
|
49
|
+
files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
|
|
50
|
+
echo "files<<EOF" >> $GITHUB_OUTPUT
|
|
51
|
+
echo "$files" >> $GITHUB_OUTPUT
|
|
52
|
+
echo "EOF" >> $GITHUB_OUTPUT
|
|
53
|
+
|
|
54
|
+
- name: Get diff
|
|
55
|
+
id: diff
|
|
56
|
+
run: |
|
|
57
|
+
diff=$(git diff origin/${{ github.base_ref }}...HEAD)
|
|
58
|
+
echo "diff<<EOF" >> $GITHUB_OUTPUT
|
|
59
|
+
echo "$diff" >> $GITHUB_OUTPUT
|
|
60
|
+
echo "EOF" >> $GITHUB_OUTPUT
|
|
61
|
+
|
|
62
|
+
- name: AI Review
|
|
63
|
+
uses: actions/github-script@v7
|
|
64
|
+
with:
|
|
65
|
+
script: |
|
|
66
|
+
const { Anthropic } = require('@anthropic-ai/sdk');
|
|
67
|
+
const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });
|
|
68
|
+
|
|
69
|
+
const response = await client.messages.create({
|
|
70
|
+
model: "claude-3-sonnet-20240229",
|
|
71
|
+
max_tokens: 4096,
|
|
72
|
+
messages: [{
|
|
73
|
+
role: "user",
|
|
74
|
+
content: `Review this PR diff and provide feedback:
|
|
75
|
+
|
|
76
|
+
Changed files: ${{ steps.changed.outputs.files }}
|
|
77
|
+
|
|
78
|
+
Diff:
|
|
79
|
+
${{ steps.diff.outputs.diff }}
|
|
80
|
+
|
|
81
|
+
Provide:
|
|
82
|
+
1. Summary of changes
|
|
83
|
+
2. Potential issues or bugs
|
|
84
|
+
3. Suggestions for improvement
|
|
85
|
+
4. Security concerns if any
|
|
86
|
+
|
|
87
|
+
Format as GitHub markdown.`
|
|
88
|
+
}]
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
await github.rest.pulls.createReview({
|
|
92
|
+
owner: context.repo.owner,
|
|
93
|
+
repo: context.repo.repo,
|
|
94
|
+
pull_number: context.issue.number,
|
|
95
|
+
body: response.content[0].text,
|
|
96
|
+
event: 'COMMENT'
|
|
97
|
+
});
|
|
98
|
+
env:
|
|
99
|
+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 1.2 Review Comment Patterns
|
|
103
|
+
|
|
104
|
+
````markdown
|
|
105
|
+
# AI Review Structure
|
|
106
|
+
|
|
107
|
+
## 📋 Summary
|
|
108
|
+
|
|
109
|
+
Brief description of what this PR does.
|
|
110
|
+
|
|
111
|
+
## ✅ What looks good
|
|
112
|
+
|
|
113
|
+
- Well-structured code
|
|
114
|
+
- Good test coverage
|
|
115
|
+
- Clear naming conventions
|
|
116
|
+
|
|
117
|
+
## ⚠️ Potential Issues
|
|
118
|
+
|
|
119
|
+
1. **Line 42**: Possible null pointer exception
|
|
120
|
+
```javascript
|
|
121
|
+
// Current
|
|
122
|
+
user.profile.name;
|
|
123
|
+
// Suggested
|
|
124
|
+
user?.profile?.name ?? "Unknown";
|
|
125
|
+
```
|
|
126
|
+
````
|
|
127
|
+
|
|
128
|
+
2. **Line 78**: Consider error handling
|
|
129
|
+
```javascript
|
|
130
|
+
// Add try-catch or .catch()
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## 💡 Suggestions
|
|
134
|
+
|
|
135
|
+
- Consider extracting the validation logic into a separate function
|
|
136
|
+
- Add JSDoc comments for public methods
|
|
137
|
+
|
|
138
|
+
## 🔒 Security Notes
|
|
139
|
+
|
|
140
|
+
- No sensitive data exposure detected
|
|
141
|
+
- API key handling looks correct
|
|
142
|
+
|
|
143
|
+
````
|
|
144
|
+
|
|
145
|
+
### 1.3 Focused Reviews
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
# Review only specific file types
|
|
149
|
+
- name: Filter code files
|
|
150
|
+
run: |
|
|
151
|
+
files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | \
|
|
152
|
+
grep -E '\.(ts|tsx|js|jsx|py|go)$' || true)
|
|
153
|
+
echo "code_files=$files" >> $GITHUB_OUTPUT
|
|
154
|
+
|
|
155
|
+
# Review with context
|
|
156
|
+
- name: AI Review with context
|
|
157
|
+
run: |
|
|
158
|
+
# Include relevant context files
|
|
159
|
+
context=""
|
|
160
|
+
for file in ${{ steps.changed.outputs.files }}; do
|
|
161
|
+
if [[ -f "$file" ]]; then
|
|
162
|
+
context+="=== $file ===\n$(cat $file)\n\n"
|
|
163
|
+
fi
|
|
164
|
+
done
|
|
165
|
+
|
|
166
|
+
# Send to AI with full file context
|
|
167
|
+
````
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 2. Issue Triage Automation
|
|
172
|
+
|
|
173
|
+
### 2.1 Auto-label Issues
|
|
174
|
+
|
|
175
|
+
```yaml
|
|
176
|
+
# .github/workflows/issue-triage.yml
|
|
177
|
+
name: Issue Triage
|
|
178
|
+
|
|
179
|
+
on:
|
|
180
|
+
issues:
|
|
181
|
+
types: [opened]
|
|
182
|
+
|
|
183
|
+
jobs:
|
|
184
|
+
triage:
|
|
185
|
+
runs-on: ubuntu-latest
|
|
186
|
+
permissions:
|
|
187
|
+
issues: write
|
|
188
|
+
|
|
189
|
+
steps:
|
|
190
|
+
- name: Analyze issue
|
|
191
|
+
uses: actions/github-script@v7
|
|
192
|
+
with:
|
|
193
|
+
script: |
|
|
194
|
+
const issue = context.payload.issue;
|
|
195
|
+
|
|
196
|
+
// Call AI to analyze
|
|
197
|
+
const analysis = await analyzeIssue(issue.title, issue.body);
|
|
198
|
+
|
|
199
|
+
// Apply labels
|
|
200
|
+
const labels = [];
|
|
201
|
+
|
|
202
|
+
if (analysis.type === 'bug') {
|
|
203
|
+
labels.push('bug');
|
|
204
|
+
if (analysis.severity === 'high') labels.push('priority: high');
|
|
205
|
+
} else if (analysis.type === 'feature') {
|
|
206
|
+
labels.push('enhancement');
|
|
207
|
+
} else if (analysis.type === 'question') {
|
|
208
|
+
labels.push('question');
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (analysis.area) {
|
|
212
|
+
labels.push(`area: ${analysis.area}`);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
await github.rest.issues.addLabels({
|
|
216
|
+
owner: context.repo.owner,
|
|
217
|
+
repo: context.repo.repo,
|
|
218
|
+
issue_number: issue.number,
|
|
219
|
+
labels: labels
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// Add initial response
|
|
223
|
+
if (analysis.type === 'bug' && !analysis.hasReproSteps) {
|
|
224
|
+
await github.rest.issues.createComment({
|
|
225
|
+
owner: context.repo.owner,
|
|
226
|
+
repo: context.repo.repo,
|
|
227
|
+
issue_number: issue.number,
|
|
228
|
+
body: `Thanks for reporting this issue!
|
|
229
|
+
|
|
230
|
+
To help us investigate, could you please provide:
|
|
231
|
+
- Steps to reproduce the issue
|
|
232
|
+
- Expected behavior
|
|
233
|
+
- Actual behavior
|
|
234
|
+
- Environment (OS, version, etc.)
|
|
235
|
+
|
|
236
|
+
This will help us resolve your issue faster. 🙏`
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### 2.2 Issue Analysis Prompt
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
const TRIAGE_PROMPT = `
|
|
245
|
+
Analyze this GitHub issue and classify it:
|
|
246
|
+
|
|
247
|
+
Title: {title}
|
|
248
|
+
Body: {body}
|
|
249
|
+
|
|
250
|
+
Return JSON with:
|
|
251
|
+
{
|
|
252
|
+
"type": "bug" | "feature" | "question" | "docs" | "other",
|
|
253
|
+
"severity": "low" | "medium" | "high" | "critical",
|
|
254
|
+
"area": "frontend" | "backend" | "api" | "docs" | "ci" | "other",
|
|
255
|
+
"summary": "one-line summary",
|
|
256
|
+
"hasReproSteps": boolean,
|
|
257
|
+
"isFirstContribution": boolean,
|
|
258
|
+
"suggestedLabels": ["label1", "label2"],
|
|
259
|
+
"suggestedAssignees": ["username"] // based on area expertise
|
|
260
|
+
}
|
|
261
|
+
`;
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### 2.3 Stale Issue Management
|
|
265
|
+
|
|
266
|
+
```yaml
|
|
267
|
+
# .github/workflows/stale.yml
|
|
268
|
+
name: Manage Stale Issues
|
|
269
|
+
|
|
270
|
+
on:
|
|
271
|
+
schedule:
|
|
272
|
+
- cron: "0 0 * * *" # Daily
|
|
273
|
+
|
|
274
|
+
jobs:
|
|
275
|
+
stale:
|
|
276
|
+
runs-on: ubuntu-latest
|
|
277
|
+
steps:
|
|
278
|
+
- uses: actions/stale@v9
|
|
279
|
+
with:
|
|
280
|
+
stale-issue-message: |
|
|
281
|
+
This issue has been automatically marked as stale because it has not had
|
|
282
|
+
recent activity. It will be closed in 14 days if no further activity occurs.
|
|
283
|
+
|
|
284
|
+
If this issue is still relevant:
|
|
285
|
+
- Add a comment with an update
|
|
286
|
+
- Remove the `stale` label
|
|
287
|
+
|
|
288
|
+
Thank you for your contributions! 🙏
|
|
289
|
+
|
|
290
|
+
stale-pr-message: |
|
|
291
|
+
This PR has been automatically marked as stale. Please update it or it
|
|
292
|
+
will be closed in 14 days.
|
|
293
|
+
|
|
294
|
+
days-before-stale: 60
|
|
295
|
+
days-before-close: 14
|
|
296
|
+
stale-issue-label: "stale"
|
|
297
|
+
stale-pr-label: "stale"
|
|
298
|
+
exempt-issue-labels: "pinned,security,in-progress"
|
|
299
|
+
exempt-pr-labels: "pinned,security"
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 3. CI/CD Integration
|
|
305
|
+
|
|
306
|
+
### 3.1 Smart Test Selection
|
|
307
|
+
|
|
308
|
+
```yaml
|
|
309
|
+
# .github/workflows/smart-tests.yml
|
|
310
|
+
name: Smart Test Selection
|
|
311
|
+
|
|
312
|
+
on:
|
|
313
|
+
pull_request:
|
|
314
|
+
|
|
315
|
+
jobs:
|
|
316
|
+
analyze:
|
|
317
|
+
runs-on: ubuntu-latest
|
|
318
|
+
outputs:
|
|
319
|
+
test_suites: ${{ steps.analyze.outputs.suites }}
|
|
320
|
+
|
|
321
|
+
steps:
|
|
322
|
+
- uses: actions/checkout@v4
|
|
323
|
+
with:
|
|
324
|
+
fetch-depth: 0
|
|
325
|
+
|
|
326
|
+
- name: Analyze changes
|
|
327
|
+
id: analyze
|
|
328
|
+
run: |
|
|
329
|
+
# Get changed files
|
|
330
|
+
changed=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
|
|
331
|
+
|
|
332
|
+
# Determine which test suites to run
|
|
333
|
+
suites="[]"
|
|
334
|
+
|
|
335
|
+
if echo "$changed" | grep -q "^src/api/"; then
|
|
336
|
+
suites=$(echo $suites | jq '. + ["api"]')
|
|
337
|
+
fi
|
|
338
|
+
|
|
339
|
+
if echo "$changed" | grep -q "^src/frontend/"; then
|
|
340
|
+
suites=$(echo $suites | jq '. + ["frontend"]')
|
|
341
|
+
fi
|
|
342
|
+
|
|
343
|
+
if echo "$changed" | grep -q "^src/database/"; then
|
|
344
|
+
suites=$(echo $suites | jq '. + ["database", "api"]')
|
|
345
|
+
fi
|
|
346
|
+
|
|
347
|
+
# If nothing specific, run all
|
|
348
|
+
if [ "$suites" = "[]" ]; then
|
|
349
|
+
suites='["all"]'
|
|
350
|
+
fi
|
|
351
|
+
|
|
352
|
+
echo "suites=$suites" >> $GITHUB_OUTPUT
|
|
353
|
+
|
|
354
|
+
test:
|
|
355
|
+
needs: analyze
|
|
356
|
+
runs-on: ubuntu-latest
|
|
357
|
+
strategy:
|
|
358
|
+
matrix:
|
|
359
|
+
suite: ${{ fromJson(needs.analyze.outputs.test_suites) }}
|
|
360
|
+
|
|
361
|
+
steps:
|
|
362
|
+
- uses: actions/checkout@v4
|
|
363
|
+
|
|
364
|
+
- name: Run tests
|
|
365
|
+
run: |
|
|
366
|
+
if [ "${{ matrix.suite }}" = "all" ]; then
|
|
367
|
+
npm test
|
|
368
|
+
else
|
|
369
|
+
npm test -- --suite ${{ matrix.suite }}
|
|
370
|
+
fi
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### 3.2 Deployment with AI Validation
|
|
374
|
+
|
|
375
|
+
```yaml
|
|
376
|
+
# .github/workflows/deploy.yml
|
|
377
|
+
name: Deploy with AI Validation
|
|
378
|
+
|
|
379
|
+
on:
|
|
380
|
+
push:
|
|
381
|
+
branches: [main]
|
|
382
|
+
|
|
383
|
+
jobs:
|
|
384
|
+
validate:
|
|
385
|
+
runs-on: ubuntu-latest
|
|
386
|
+
steps:
|
|
387
|
+
- uses: actions/checkout@v4
|
|
388
|
+
|
|
389
|
+
- name: Get deployment changes
|
|
390
|
+
id: changes
|
|
391
|
+
run: |
|
|
392
|
+
# Get commits since last deployment
|
|
393
|
+
last_deploy=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
|
394
|
+
if [ -n "$last_deploy" ]; then
|
|
395
|
+
changes=$(git log --oneline $last_deploy..HEAD)
|
|
396
|
+
else
|
|
397
|
+
changes=$(git log --oneline -10)
|
|
398
|
+
fi
|
|
399
|
+
echo "changes<<EOF" >> $GITHUB_OUTPUT
|
|
400
|
+
echo "$changes" >> $GITHUB_OUTPUT
|
|
401
|
+
echo "EOF" >> $GITHUB_OUTPUT
|
|
402
|
+
|
|
403
|
+
- name: AI Risk Assessment
|
|
404
|
+
id: assess
|
|
405
|
+
uses: actions/github-script@v7
|
|
406
|
+
with:
|
|
407
|
+
script: |
|
|
408
|
+
// Analyze changes for deployment risk
|
|
409
|
+
const prompt = `
|
|
410
|
+
Analyze these changes for deployment risk:
|
|
411
|
+
|
|
412
|
+
${process.env.CHANGES}
|
|
413
|
+
|
|
414
|
+
Return JSON:
|
|
415
|
+
{
|
|
416
|
+
"riskLevel": "low" | "medium" | "high",
|
|
417
|
+
"concerns": ["concern1", "concern2"],
|
|
418
|
+
"recommendations": ["rec1", "rec2"],
|
|
419
|
+
"requiresManualApproval": boolean
|
|
420
|
+
}
|
|
421
|
+
`;
|
|
422
|
+
|
|
423
|
+
// Call AI and parse response
|
|
424
|
+
const analysis = await callAI(prompt);
|
|
425
|
+
|
|
426
|
+
if (analysis.riskLevel === 'high') {
|
|
427
|
+
core.setFailed('High-risk deployment detected. Manual review required.');
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
return analysis;
|
|
431
|
+
env:
|
|
432
|
+
CHANGES: ${{ steps.changes.outputs.changes }}
|
|
433
|
+
|
|
434
|
+
deploy:
|
|
435
|
+
needs: validate
|
|
436
|
+
runs-on: ubuntu-latest
|
|
437
|
+
environment: production
|
|
438
|
+
steps:
|
|
439
|
+
- name: Deploy
|
|
440
|
+
run: |
|
|
441
|
+
echo "Deploying to production..."
|
|
442
|
+
# Deployment commands here
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### 3.3 Rollback Automation
|
|
446
|
+
|
|
447
|
+
```yaml
|
|
448
|
+
# .github/workflows/rollback.yml
|
|
449
|
+
name: Automated Rollback
|
|
450
|
+
|
|
451
|
+
on:
|
|
452
|
+
workflow_dispatch:
|
|
453
|
+
inputs:
|
|
454
|
+
reason:
|
|
455
|
+
description: "Reason for rollback"
|
|
456
|
+
required: true
|
|
457
|
+
|
|
458
|
+
jobs:
|
|
459
|
+
rollback:
|
|
460
|
+
runs-on: ubuntu-latest
|
|
461
|
+
steps:
|
|
462
|
+
- uses: actions/checkout@v4
|
|
463
|
+
with:
|
|
464
|
+
fetch-depth: 0
|
|
465
|
+
|
|
466
|
+
- name: Find last stable version
|
|
467
|
+
id: stable
|
|
468
|
+
run: |
|
|
469
|
+
# Find last successful deployment
|
|
470
|
+
stable=$(git tag -l 'v*' --sort=-version:refname | head -1)
|
|
471
|
+
echo "version=$stable" >> $GITHUB_OUTPUT
|
|
472
|
+
|
|
473
|
+
- name: Rollback
|
|
474
|
+
run: |
|
|
475
|
+
git checkout ${{ steps.stable.outputs.version }}
|
|
476
|
+
# Deploy stable version
|
|
477
|
+
npm run deploy
|
|
478
|
+
|
|
479
|
+
- name: Notify team
|
|
480
|
+
uses: slackapi/slack-github-action@v1
|
|
481
|
+
with:
|
|
482
|
+
payload: |
|
|
483
|
+
{
|
|
484
|
+
"text": "🔄 Production rolled back to ${{ steps.stable.outputs.version }}",
|
|
485
|
+
"blocks": [
|
|
486
|
+
{
|
|
487
|
+
"type": "section",
|
|
488
|
+
"text": {
|
|
489
|
+
"type": "mrkdwn",
|
|
490
|
+
"text": "*Rollback executed*\n• Version: `${{ steps.stable.outputs.version }}`\n• Reason: ${{ inputs.reason }}\n• Triggered by: ${{ github.actor }}"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
## 4. Git Operations
|
|
500
|
+
|
|
501
|
+
### 4.1 Automated Rebasing
|
|
502
|
+
|
|
503
|
+
```yaml
|
|
504
|
+
# .github/workflows/auto-rebase.yml
|
|
505
|
+
name: Auto Rebase
|
|
506
|
+
|
|
507
|
+
on:
|
|
508
|
+
issue_comment:
|
|
509
|
+
types: [created]
|
|
510
|
+
|
|
511
|
+
jobs:
|
|
512
|
+
rebase:
|
|
513
|
+
if: github.event.issue.pull_request && contains(github.event.comment.body, '/rebase')
|
|
514
|
+
runs-on: ubuntu-latest
|
|
515
|
+
|
|
516
|
+
steps:
|
|
517
|
+
- uses: actions/checkout@v4
|
|
518
|
+
with:
|
|
519
|
+
fetch-depth: 0
|
|
520
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
521
|
+
|
|
522
|
+
- name: Setup Git
|
|
523
|
+
run: |
|
|
524
|
+
git config user.name "github-actions[bot]"
|
|
525
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
526
|
+
|
|
527
|
+
- name: Rebase PR
|
|
528
|
+
run: |
|
|
529
|
+
# Fetch PR branch
|
|
530
|
+
gh pr checkout ${{ github.event.issue.number }}
|
|
531
|
+
|
|
532
|
+
# Rebase onto main
|
|
533
|
+
git fetch origin main
|
|
534
|
+
git rebase origin/main
|
|
535
|
+
|
|
536
|
+
# Force push
|
|
537
|
+
git push --force-with-lease
|
|
538
|
+
env:
|
|
539
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
540
|
+
|
|
541
|
+
- name: Comment result
|
|
542
|
+
uses: actions/github-script@v7
|
|
543
|
+
with:
|
|
544
|
+
script: |
|
|
545
|
+
github.rest.issues.createComment({
|
|
546
|
+
owner: context.repo.owner,
|
|
547
|
+
repo: context.repo.repo,
|
|
548
|
+
issue_number: context.issue.number,
|
|
549
|
+
body: '✅ Successfully rebased onto main!'
|
|
550
|
+
})
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
### 4.2 Smart Cherry-Pick
|
|
554
|
+
|
|
555
|
+
```typescript
|
|
556
|
+
// AI-assisted cherry-pick that handles conflicts
|
|
557
|
+
async function smartCherryPick(commitHash: string, targetBranch: string) {
|
|
558
|
+
// Get commit info
|
|
559
|
+
const commitInfo = await exec(`git show ${commitHash} --stat`);
|
|
560
|
+
|
|
561
|
+
// Check for potential conflicts
|
|
562
|
+
const targetDiff = await exec(
|
|
563
|
+
`git diff ${targetBranch}...HEAD -- ${affectedFiles}`
|
|
564
|
+
);
|
|
565
|
+
|
|
566
|
+
// AI analysis
|
|
567
|
+
const analysis = await ai.analyze(`
|
|
568
|
+
I need to cherry-pick this commit to ${targetBranch}:
|
|
569
|
+
|
|
570
|
+
${commitInfo}
|
|
571
|
+
|
|
572
|
+
Current state of affected files on ${targetBranch}:
|
|
573
|
+
${targetDiff}
|
|
574
|
+
|
|
575
|
+
Will there be conflicts? If so, suggest resolution strategy.
|
|
576
|
+
`);
|
|
577
|
+
|
|
578
|
+
if (analysis.willConflict) {
|
|
579
|
+
// Create branch for manual resolution
|
|
580
|
+
await exec(
|
|
581
|
+
`git checkout -b cherry-pick-${commitHash.slice(0, 7)} ${targetBranch}`
|
|
582
|
+
);
|
|
583
|
+
const result = await exec(`git cherry-pick ${commitHash}`, {
|
|
584
|
+
allowFail: true,
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
if (result.failed) {
|
|
588
|
+
// AI-assisted conflict resolution
|
|
589
|
+
const conflicts = await getConflicts();
|
|
590
|
+
for (const conflict of conflicts) {
|
|
591
|
+
const resolution = await ai.resolveConflict(conflict);
|
|
592
|
+
await applyResolution(conflict.file, resolution);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
} else {
|
|
596
|
+
await exec(`git checkout ${targetBranch}`);
|
|
597
|
+
await exec(`git cherry-pick ${commitHash}`);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### 4.3 Branch Cleanup
|
|
603
|
+
|
|
604
|
+
```yaml
|
|
605
|
+
# .github/workflows/branch-cleanup.yml
|
|
606
|
+
name: Branch Cleanup
|
|
607
|
+
|
|
608
|
+
on:
|
|
609
|
+
schedule:
|
|
610
|
+
- cron: '0 0 * * 0' # Weekly
|
|
611
|
+
workflow_dispatch:
|
|
612
|
+
|
|
613
|
+
jobs:
|
|
614
|
+
cleanup:
|
|
615
|
+
runs-on: ubuntu-latest
|
|
616
|
+
steps:
|
|
617
|
+
- uses: actions/checkout@v4
|
|
618
|
+
with:
|
|
619
|
+
fetch-depth: 0
|
|
620
|
+
|
|
621
|
+
- name: Find stale branches
|
|
622
|
+
id: stale
|
|
623
|
+
run: |
|
|
624
|
+
# Branches not updated in 30 days
|
|
625
|
+
stale=$(git for-each-ref --sort=-committerdate refs/remotes/origin \
|
|
626
|
+
--format='%(refname:short) %(committerdate:relative)' | \
|
|
627
|
+
grep -E '[3-9][0-9]+ days|[0-9]+ months|[0-9]+ years' | \
|
|
628
|
+
grep -v 'origin/main\|origin/develop' | \
|
|
629
|
+
cut -d' ' -f1 | sed 's|origin/||')
|
|
630
|
+
|
|
631
|
+
echo "branches<<EOF" >> $GITHUB_OUTPUT
|
|
632
|
+
echo "$stale" >> $GITHUB_OUTPUT
|
|
633
|
+
echo "EOF" >> $GITHUB_OUTPUT
|
|
634
|
+
|
|
635
|
+
- name: Create cleanup PR
|
|
636
|
+
if: steps.stale.outputs.branches != ''
|
|
637
|
+
uses: actions/github-script@v7
|
|
638
|
+
with:
|
|
639
|
+
script: |
|
|
640
|
+
const branches = `${{ steps.stale.outputs.branches }}`.split('\n').filter(Boolean);
|
|
641
|
+
|
|
642
|
+
const body = `## 🧹 Stale Branch Cleanup
|
|
643
|
+
|
|
644
|
+
The following branches haven't been updated in over 30 days:
|
|
645
|
+
|
|
646
|
+
${branches.map(b => `- \`${b}\``).join('\n')}
|
|
647
|
+
|
|
648
|
+
### Actions:
|
|
649
|
+
- [ ] Review each branch
|
|
650
|
+
- [ ] Delete branches that are no longer needed
|
|
651
|
+
- Comment \`/keep branch-name\` to preserve specific branches
|
|
652
|
+
`;
|
|
653
|
+
|
|
654
|
+
await github.rest.issues.create({
|
|
655
|
+
owner: context.repo.owner,
|
|
656
|
+
repo: context.repo.repo,
|
|
657
|
+
title: 'Stale Branch Cleanup',
|
|
658
|
+
body: body,
|
|
659
|
+
labels: ['housekeeping']
|
|
660
|
+
});
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
---
|
|
664
|
+
|
|
665
|
+
## 5. On-Demand Assistance
|
|
666
|
+
|
|
667
|
+
### 5.1 @mention Bot
|
|
668
|
+
|
|
669
|
+
```yaml
|
|
670
|
+
# .github/workflows/mention-bot.yml
|
|
671
|
+
name: AI Mention Bot
|
|
672
|
+
|
|
673
|
+
on:
|
|
674
|
+
issue_comment:
|
|
675
|
+
types: [created]
|
|
676
|
+
pull_request_review_comment:
|
|
677
|
+
types: [created]
|
|
678
|
+
|
|
679
|
+
jobs:
|
|
680
|
+
respond:
|
|
681
|
+
if: contains(github.event.comment.body, '@ai-helper')
|
|
682
|
+
runs-on: ubuntu-latest
|
|
683
|
+
|
|
684
|
+
steps:
|
|
685
|
+
- uses: actions/checkout@v4
|
|
686
|
+
|
|
687
|
+
- name: Extract question
|
|
688
|
+
id: question
|
|
689
|
+
run: |
|
|
690
|
+
# Extract text after @ai-helper
|
|
691
|
+
question=$(echo "${{ github.event.comment.body }}" | sed 's/.*@ai-helper//')
|
|
692
|
+
echo "question=$question" >> $GITHUB_OUTPUT
|
|
693
|
+
|
|
694
|
+
- name: Get context
|
|
695
|
+
id: context
|
|
696
|
+
run: |
|
|
697
|
+
if [ "${{ github.event.issue.pull_request }}" != "" ]; then
|
|
698
|
+
# It's a PR - get diff
|
|
699
|
+
gh pr diff ${{ github.event.issue.number }} > context.txt
|
|
700
|
+
else
|
|
701
|
+
# It's an issue - get description
|
|
702
|
+
gh issue view ${{ github.event.issue.number }} --json body -q .body > context.txt
|
|
703
|
+
fi
|
|
704
|
+
echo "context=$(cat context.txt)" >> $GITHUB_OUTPUT
|
|
705
|
+
env:
|
|
706
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
707
|
+
|
|
708
|
+
- name: AI Response
|
|
709
|
+
uses: actions/github-script@v7
|
|
710
|
+
with:
|
|
711
|
+
script: |
|
|
712
|
+
const response = await ai.chat(`
|
|
713
|
+
Context: ${process.env.CONTEXT}
|
|
714
|
+
|
|
715
|
+
Question: ${process.env.QUESTION}
|
|
716
|
+
|
|
717
|
+
Provide a helpful, specific answer. Include code examples if relevant.
|
|
718
|
+
`);
|
|
719
|
+
|
|
720
|
+
await github.rest.issues.createComment({
|
|
721
|
+
owner: context.repo.owner,
|
|
722
|
+
repo: context.repo.repo,
|
|
723
|
+
issue_number: context.issue.number,
|
|
724
|
+
body: response
|
|
725
|
+
});
|
|
726
|
+
env:
|
|
727
|
+
CONTEXT: ${{ steps.context.outputs.context }}
|
|
728
|
+
QUESTION: ${{ steps.question.outputs.question }}
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
### 5.2 Command Patterns
|
|
732
|
+
|
|
733
|
+
```markdown
|
|
734
|
+
## Available Commands
|
|
735
|
+
|
|
736
|
+
| Command | Description |
|
|
737
|
+
| :------------------- | :-------------------------- |
|
|
738
|
+
| `@ai-helper explain` | Explain the code in this PR |
|
|
739
|
+
| `@ai-helper review` | Request AI code review |
|
|
740
|
+
| `@ai-helper fix` | Suggest fixes for issues |
|
|
741
|
+
| `@ai-helper test` | Generate test cases |
|
|
742
|
+
| `@ai-helper docs` | Generate documentation |
|
|
743
|
+
| `/rebase` | Rebase PR onto main |
|
|
744
|
+
| `/update` | Update PR branch from main |
|
|
745
|
+
| `/approve` | Mark as approved by bot |
|
|
746
|
+
| `/label bug` | Add 'bug' label |
|
|
747
|
+
| `/assign @user` | Assign to user |
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
---
|
|
751
|
+
|
|
752
|
+
## 6. Repository Configuration
|
|
753
|
+
|
|
754
|
+
### 6.1 CODEOWNERS
|
|
755
|
+
|
|
756
|
+
```
|
|
757
|
+
# .github/CODEOWNERS
|
|
758
|
+
|
|
759
|
+
# Global owners
|
|
760
|
+
* @org/core-team
|
|
761
|
+
|
|
762
|
+
# Frontend
|
|
763
|
+
/src/frontend/ @org/frontend-team
|
|
764
|
+
*.tsx @org/frontend-team
|
|
765
|
+
*.css @org/frontend-team
|
|
766
|
+
|
|
767
|
+
# Backend
|
|
768
|
+
/src/api/ @org/backend-team
|
|
769
|
+
/src/database/ @org/backend-team
|
|
770
|
+
|
|
771
|
+
# Infrastructure
|
|
772
|
+
/.github/ @org/devops-team
|
|
773
|
+
/terraform/ @org/devops-team
|
|
774
|
+
Dockerfile @org/devops-team
|
|
775
|
+
|
|
776
|
+
# Docs
|
|
777
|
+
/docs/ @org/docs-team
|
|
778
|
+
*.md @org/docs-team
|
|
779
|
+
|
|
780
|
+
# Security-sensitive
|
|
781
|
+
/src/auth/ @org/security-team
|
|
782
|
+
/src/crypto/ @org/security-team
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
### 6.2 Branch Protection
|
|
786
|
+
|
|
787
|
+
```yaml
|
|
788
|
+
# Set up via GitHub API
|
|
789
|
+
- name: Configure branch protection
|
|
790
|
+
uses: actions/github-script@v7
|
|
791
|
+
with:
|
|
792
|
+
script: |
|
|
793
|
+
await github.rest.repos.updateBranchProtection({
|
|
794
|
+
owner: context.repo.owner,
|
|
795
|
+
repo: context.repo.repo,
|
|
796
|
+
branch: 'main',
|
|
797
|
+
required_status_checks: {
|
|
798
|
+
strict: true,
|
|
799
|
+
contexts: ['test', 'lint', 'ai-review']
|
|
800
|
+
},
|
|
801
|
+
enforce_admins: true,
|
|
802
|
+
required_pull_request_reviews: {
|
|
803
|
+
required_approving_review_count: 1,
|
|
804
|
+
require_code_owner_reviews: true,
|
|
805
|
+
dismiss_stale_reviews: true
|
|
806
|
+
},
|
|
807
|
+
restrictions: null,
|
|
808
|
+
required_linear_history: true,
|
|
809
|
+
allow_force_pushes: false,
|
|
810
|
+
allow_deletions: false
|
|
811
|
+
});
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
---
|
|
815
|
+
|
|
816
|
+
## Best Practices
|
|
817
|
+
|
|
818
|
+
### Security
|
|
819
|
+
|
|
820
|
+
- [ ] Store API keys in GitHub Secrets
|
|
821
|
+
- [ ] Use minimal permissions in workflows
|
|
822
|
+
- [ ] Validate all inputs
|
|
823
|
+
- [ ] Don't expose sensitive data in logs
|
|
824
|
+
|
|
825
|
+
### Performance
|
|
826
|
+
|
|
827
|
+
- [ ] Cache dependencies
|
|
828
|
+
- [ ] Use matrix builds for parallel testing
|
|
829
|
+
- [ ] Skip unnecessary jobs with path filters
|
|
830
|
+
- [ ] Use self-hosted runners for heavy workloads
|
|
831
|
+
|
|
832
|
+
### Reliability
|
|
833
|
+
|
|
834
|
+
- [ ] Add timeouts to jobs
|
|
835
|
+
- [ ] Handle rate limits gracefully
|
|
836
|
+
- [ ] Implement retry logic
|
|
837
|
+
- [ ] Have rollback procedures
|
|
838
|
+
|
|
839
|
+
---
|
|
840
|
+
|
|
841
|
+
## Resources
|
|
842
|
+
|
|
843
|
+
- [Gemini CLI GitHub Action](https://github.com/google-github-actions/run-gemini-cli)
|
|
844
|
+
- [GitHub Actions Documentation](https://docs.github.com/en/actions)
|
|
845
|
+
- [GitHub REST API](https://docs.github.com/en/rest)
|
|
846
|
+
- [CODEOWNERS Syntax](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)
|