Skip to content

Commit ea42ec4

Browse files
committed
Fix yaml syntax in workflow files
1 parent 62e8bb0 commit ea42ec4

File tree

5 files changed

+42
-46
lines changed

5 files changed

+42
-46
lines changed

.github/workflows/fix-remote-pr.yml

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,18 @@ jobs:
172172
PR_NUMBER="${{ github.event.inputs.pr_number }}"
173173
FAILED_NAMES="${{ steps.analyze.outputs.failed-names }}"
174174
175-
MESSAGE=$(cat <<EOF
176-
🔧 **Attempting to fix failing checks**
175+
cat > /tmp/pr-comment.txt <<EOF
176+
🔧 **Attempting to fix failing checks**
177177
178-
I've detected failures in: $FAILED_NAMES
178+
I've detected failures in: $FAILED_NAMES
179179
180-
Analyzing the issues and will attempt to fix them automatically.
180+
Analyzing the issues and will attempt to fix them automatically.
181181
182-
---
183-
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
184-
EOF
185-
)
182+
---
183+
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
184+
EOF
186185
187-
gh pr comment $PR_NUMBER --repo "$REPO" --body "$MESSAGE"
186+
gh pr comment $PR_NUMBER --repo "$REPO" --body-file /tmp/pr-comment.txt
188187
env:
189188
GH_TOKEN: ${{ secrets.ORG_ACCESS_TOKEN }}
190189

@@ -259,31 +258,29 @@ Co-authored-by: AI Engineering Maintenance Bot <aieng-bot@vectorinstitute.ai>"
259258
PR_NUMBER="${{ github.event.inputs.pr_number }}"
260259
261260
if [ "${{ steps.push-fixes.outputs.changes-pushed }}" = "true" ]; then
262-
MESSAGE=$(cat <<EOF
263-
✅ **Fixes applied!**
261+
cat > /tmp/pr-result.txt <<EOF
262+
✅ **Fixes applied!**
264263
265-
I've pushed fixes for the failing checks. The CI will re-run automatically.
264+
I've pushed fixes for the failing checks. The CI will re-run automatically.
266265
267-
Please review the changes to verify they're correct.
266+
Please review the changes to verify they're correct.
268267
269-
---
270-
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
271-
EOF
272-
)
268+
---
269+
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
270+
EOF
273271
else
274-
MESSAGE=$(cat <<EOF
275-
🔍 **Analysis complete**
272+
cat > /tmp/pr-result.txt <<EOF
273+
🔍 **Analysis complete**
276274
277-
Gemini CLI has analyzed the failures and provided suggestions in the comments above.
275+
Gemini CLI has analyzed the failures and provided suggestions in the comments above.
278276
279-
If the fixes weren't applied automatically, you may need to review and apply them manually.
277+
If the fixes weren't applied automatically, you may need to review and apply them manually.
280278
281-
---
282-
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
283-
EOF
284-
)
279+
---
280+
🤖 *AI Engineering Maintenance Bot - Maintaining Vector Institute Repositories built by AI Engineering*
281+
EOF
285282
fi
286283
287-
gh pr comment $PR_NUMBER --repo "$REPO" --body "$MESSAGE"
284+
gh pr comment $PR_NUMBER --repo "$REPO" --body-file /tmp/pr-result.txt
288285
env:
289286
GH_TOKEN: ${{ secrets.ORG_ACCESS_TOKEN }}

.github/workflows/monitor-org-dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Monitor Organization Dependabot PRs
22

33
on:
44
schedule:
5-
# Run every 10 minutes
6-
- cron: '*/10 * * * *'
5+
# Run every 6 hours
6+
- cron: '0 */6 * * *'
77
workflow_dispatch:
88
inputs:
99
target_repo:

DEPLOYMENT.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Deploying the AI Engineering Maintenance Bot is simple - it runs from ONE centra
3636

3737
### Phase 3: Limited Monitoring (Week 1-2)
3838

39-
- [ ] **3.1**: Enable scheduled runs (automatic every 10 min)
39+
- [ ] **3.1**: Enable scheduled runs (automatic every 6 hours)
4040
- [ ] **3.2**: Monitor for 2-3 days
4141
- [ ] **3.3**: Check PRs the bot processes
4242
- [ ] **3.4**: Verify auto-merge works correctly
@@ -68,26 +68,23 @@ For experienced admins who just want to get it running:
6868
gh workflow run monitor-org-dependabot.yml --repo VectorInstitute/aieng-bot-maintain
6969

7070
# 4. Monitor
71-
# Check Actions tab for runs every 10 minutes
71+
# Check Actions tab for runs every 6 hours
7272
```
7373

7474
## What Happens After Deployment
7575

76-
### Immediate (First 10 minutes)
76+
### First 6 Hours
7777
- Monitor workflow runs automatically
7878
- Scans all VectorInstitute repos
7979
- Finds any open Dependabot PRs
8080
- Processes passing PRs (auto-merge)
8181
- Triggers fixes for failing PRs
82-
83-
### First Hour
84-
- Multiple scan cycles complete
8582
- Bot comments appear on processed PRs
8683
- Auto-merges happen for passing PRs
8784
- Fix attempts made on failing PRs
8885

8986
### First Day
90-
- 144 scan cycles (every 10 minutes)
87+
- 4 scan cycles (every 6 hours)
9188
- All active Dependabot PRs processed
9289
- Pattern of bot behavior visible
9390
- Any issues surface quickly
@@ -143,13 +140,15 @@ Target metrics after 2 weeks:
143140

144141
### Adjust Scan Frequency
145142

146-
If processing too many PRs or hitting rate limits:
143+
If you want more or less frequent scanning:
147144

148145
```yaml
149146
# .github/workflows/monitor-org-dependabot.yml
150147
on:
151148
schedule:
152-
- cron: '*/30 * * * *' # Change to every 30 min
149+
- cron: '0 */12 * * *' # Every 12 hours (less frequent)
150+
# or
151+
- cron: '0 */3 * * *' # Every 3 hours (more frequent)
153152
```
154153
155154
### Exclude Specific Repositories

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Centralized maintenance bot that automatically manages Dependabot PRs across all
44

55
## Features
66

7-
- **Organization-wide monitoring** - Scans all VectorInstitute repos every 10 minutes
7+
- **Organization-wide monitoring** - Scans all VectorInstitute repos every 6 hours
88
- **Auto-merge** - Merges Dependabot PRs when all checks pass
99
- **Auto-fix** - Fixes test failures, linting issues, security vulnerabilities, and build errors using Gemini 3 AI
1010
- **Centralized operation** - No installation needed in individual repositories
@@ -18,7 +18,7 @@ Centralized maintenance bot that automatically manages Dependabot PRs across all
1818
│ aieng-bot-maintain Repository │
1919
│ (This Repo - Central Bot) │
2020
│ │
21-
│ Runs every 10 minutes:
21+
│ Runs every 6 hours:
2222
│ 1. Scans VectorInstitute org │
2323
│ 2. Finds Dependabot PRs │
2424
│ 3. Checks status │
@@ -58,7 +58,7 @@ The bot now monitors all VectorInstitute repositories automatically.
5858

5959
## How It Works
6060

61-
**1. Monitor** (every 10 minutes)
61+
**1. Monitor** (every 6 hours)
6262
- Scans all VectorInstitute repositories for open Dependabot PRs
6363
- Checks status of each PR
6464
- Routes to merge or fix workflow
@@ -82,7 +82,7 @@ The bot now monitors all VectorInstitute repositories automatically.
8282
- `ORG_ACCESS_TOKEN` - GitHub PAT with org-wide permissions
8383

8484
**Workflows**
85-
- `monitor-org-dependabot.yml` - Scans org for Dependabot PRs every 10 minutes
85+
- `monitor-org-dependabot.yml` - Scans org for Dependabot PRs every 6 hours
8686
- `fix-remote-pr.yml` - Fixes failing PRs using AI
8787

8888
**AI Prompt Templates** (customize for your needs)

SETUP.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Or via GitHub UI:
126126

127127
After setup, the bot should:
128128

129-
✅ Run automatically every 10 minutes
129+
✅ Run automatically every 6 hours
130130
✅ Scan all VectorInstitute repositories
131131
✅ Find open Dependabot PRs
132132
✅ Auto-merge PRs with passing checks
@@ -144,11 +144,11 @@ Edit `.github/workflows/monitor-org-dependabot.yml`:
144144
```yaml
145145
on:
146146
schedule:
147-
- cron: '*/10 * * * *' # Every 10 minutes
147+
- cron: '0 */6 * * *' # Every 6 hours (current default)
148148
# Change to:
149-
# - cron: '*/30 * * * *' # Every 30 minutes
150-
# - cron: '0 * * * *' # Every hour
151-
# - cron: '0 */6 * * *' # Every 6 hours
149+
# - cron: '0 */3 * * *' # Every 3 hours
150+
# - cron: '0 */12 * * *' # Every 12 hours
151+
# - cron: '0 0 * * *' # Once daily at midnight
152152
```
153153

154154
### Customize Fix Prompts

0 commit comments

Comments
 (0)