Skip to content

Commit 730aba5

Browse files
committed
chore: wip
1 parent b65dd17 commit 730aba5

File tree

11 files changed

+38
-38
lines changed

11 files changed

+38
-38
lines changed

.github/workflows/buddy-bot-rebase.yml renamed to .github/workflows/buddy-update-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525
actions: write
2626

2727
jobs:
28-
check-rebase:
28+
update-check:
2929
runs-on: ubuntu-latest
3030

3131
steps:
@@ -74,15 +74,15 @@ jobs:
7474
echo "Event: ${{ github.event_name }}"
7575
echo ""
7676
77-
echo "🚀 Running check-rebase command..."
77+
echo "🚀 Running update-check command..."
7878
set -e # Exit on any error
7979
8080
if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then
8181
echo "📋 Running in DRY RUN mode..."
82-
bun buddy check-rebase --dry-run --verbose
82+
bun buddy update-check --dry-run --verbose
8383
else
8484
echo "🔄 Running in LIVE mode..."
85-
bun buddy check-rebase --verbose
85+
bun buddy update-check --verbose
8686
fi
8787
8888
env:

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ buddy update --dry-run
8989
buddy update
9090

9191
# Check for rebase requests and update PRs
92-
buddy check-rebase
93-
buddy check-rebase --dry-run
94-
buddy check-rebase --verbose
92+
buddy update-check
93+
buddy update-check --dry-run
94+
buddy update-check --verbose
9595

9696
# Get help
9797
buddy help
@@ -233,18 +233,18 @@ You can also trigger rebase manually using the CLI:
233233

234234
```bash
235235
# Check for PRs with rebase checkbox enabled and update them
236-
buddy-bot check-rebase
236+
buddy-bot update-check
237237

238238
# Dry run to see what would be rebased
239-
buddy-bot check-rebase --dry-run
239+
buddy-bot update-check --dry-run
240240

241241
# With verbose output
242-
buddy-bot check-rebase --verbose
242+
buddy-bot update-check --verbose
243243
```
244244

245245
### Automated Rebase Workflow
246246

247-
Buddy Bot includes a pre-built GitHub Actions workflow (`.github/workflows/buddy-bot-rebase.yml`) that:
247+
Buddy Bot includes a pre-built GitHub Actions workflow (`.github/workflows/buddy-update-check.yml`) that:
248248

249249
- **🕐 Runs every minute**: Automatically checks for rebase requests
250250
- **🔍 Scans all PRs**: Finds Buddy Bot PRs with checked rebase boxes
@@ -286,7 +286,7 @@ buddy-bot dashboard --pin --title "My Dependencies"
286286

287287
### Automated Dashboard Updates
288288

289-
Buddy Bot includes a pre-built GitHub workflow (`.github/workflows/buddy-bot-dashboard.yml`) that automatically updates your dependency dashboard:
289+
Buddy Bot includes a pre-built GitHub workflow (`.github/workflows/buddy-dashboard.yml`) that automatically updates your dependency dashboard:
290290

291291
- **📅 Scheduled**: Runs Monday, Wednesday, Friday at 9 AM UTC
292292
- **🖱️ Manual**: Trigger from Actions tab with custom options

bin/cli.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DEPENDENCY MANAGEMENT:
2121
dashboard 📊 Create or update dependency dashboard issue
2222
update ⬆️ Update dependencies and create PRs
2323
rebase 🔄 Rebase/retry a pull request with latest updates
24-
check-rebase 🔍 Auto-detect and rebase PRs with checked rebase box
24+
update-check 🔍 Auto-detect and rebase PRs with checked rebase box
2525
check 📋 Check specific packages for updates
2626
schedule ⏰ Run automated updates on schedule
2727
@@ -42,7 +42,7 @@ Examples:
4242
buddy-bot scan --verbose # Scan for updates
4343
buddy-bot dashboard --pin # Create pinned dashboard
4444
buddy-bot rebase 17 # Rebase PR #17
45-
buddy-bot check-rebase # Auto-rebase checked PRs
45+
buddy-bot update-check # Auto-rebase checked PRs
4646
buddy-bot info react # Get package info
4747
buddy-bot versions react --latest 5 # Show recent versions
4848
buddy-bot search "test framework" # Search packages
@@ -577,12 +577,12 @@ async function extractPackageUpdatesFromPRBody(body: string): Promise<Array<{ na
577577
}
578578

579579
cli
580-
.command('check-rebase', 'Check all open buddy-bot PRs for rebase checkbox and auto-rebase if checked')
580+
.command('update-check', 'Check all open buddy-bot PRs for rebase checkbox and auto-rebase if checked')
581581
.option('--verbose, -v', 'Enable verbose logging')
582582
.option('--dry-run', 'Check but don\'t actually rebase')
583-
.example('buddy-bot check-rebase')
584-
.example('buddy-bot check-rebase --verbose')
585-
.example('buddy-bot check-rebase --dry-run')
583+
.example('buddy-bot update-check')
584+
.example('buddy-bot update-check --verbose')
585+
.example('buddy-bot update-check --dry-run')
586586
.action(async (options: CLIOptions) => {
587587
const logger = options.verbose ? Logger.verbose() : Logger.quiet()
588588

@@ -717,7 +717,7 @@ cli
717717
}
718718
}
719719
catch (error) {
720-
logger.error('Check-rebase failed:', error)
720+
logger.error('update-check failed:', error)
721721
process.exit(1)
722722
}
723723
})
@@ -1794,7 +1794,7 @@ async function generateWorkflowsFromPreset(preset: WorkflowPreset, logger: any):
17941794
// Use specialized testing workflow for testing preset
17951795
if (customWorkflow.name === 'testing-updates') {
17961796
workflow = GitHubActionsTemplate.generateTestingWorkflow(workflowConfig)
1797-
fs.writeFileSync(path.join(outputDir, 'buddy-bot-testing.yml'), workflow)
1797+
fs.writeFileSync(path.join(outputDir, 'buddy-update.yml'), workflow)
17981798
logger.info('Generated testing workflow with 5-minute schedule and manual triggers')
17991799
}
18001800
else {

docs/cli/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ buddy-bot <command> [options] [arguments]
4040
|---------|-------------|
4141
| [`update`](/cli/update#update) | Update dependencies and create PRs |
4242
| [`rebase`](/cli/update#rebase) | Rebase/retry a pull request |
43-
| [`check-rebase`](/cli/update#check-rebase) | Auto-detect and rebase PRs with checked boxes |
43+
| [`update-check`](/cli/update#update-check) | Auto-detect and rebase PRs with checked boxes |
4444

4545
### 📦 Package Information
4646

@@ -105,7 +105,7 @@ buddy-bot search "test framework"
105105
buddy-bot rebase 17
106106

107107
# Check all PRs for rebase requests
108-
buddy-bot check-rebase
108+
buddy-bot update-check
109109

110110
# Force rebase even if up to date
111111
buddy-bot rebase 17 --force

docs/cli/update.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ buddy-bot rebase 17 --force
164164
🔗 https://github.com/your-org/your-repo/pull/17
165165
```
166166
167-
## check-rebase
167+
## update-check
168168
169169
Auto-detect and rebase PRs with checked rebase boxes.
170170
171171
### Usage
172172
173173
```bash
174-
buddy-bot check-rebase [options]
174+
buddy-bot update-check [options]
175175
```
176176
177177
### Options
@@ -183,13 +183,13 @@ buddy-bot check-rebase [options]
183183
184184
```bash
185185
# Check and rebase marked PRs
186-
buddy-bot check-rebase
186+
buddy-bot update-check
187187
188188
# Preview what would be rebased
189-
buddy-bot check-rebase --dry-run
189+
buddy-bot update-check --dry-run
190190
191191
# Verbose output
192-
buddy-bot check-rebase --verbose
192+
buddy-bot update-check --verbose
193193
```
194194
195195
### Rebase Checkbox Format
@@ -325,7 +325,7 @@ Configure repository.provider, repository.owner, repository.name in buddy-bot.co
325325
326326
### PR Management
327327
328-
1. **Regular Rebasing**: Use `check-rebase` in automation
328+
1. **Regular Rebasing**: Use `update-check` in automation
329329
2. **Batch Reviews**: Review multiple patch updates together
330330
3. **Label Organization**: Use labels for workflow automation
331331
4. **Merge Hygiene**: Use squash merging for clean history
@@ -357,7 +357,7 @@ jobs:
357357
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
358358
359359
- name: Auto-rebase existing PRs
360-
run: bunx buddy-bot check-rebase --verbose
360+
run: bunx buddy-bot update-check --verbose
361361
env:
362362
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
363363
```

docs/features/dependency-dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164164
```
165165
166-
**💡 Ready-to-use workflow**: Buddy Bot includes a pre-built dashboard workflow at `.github/workflows/buddy-bot-dashboard.yml` that you can use directly. It includes manual triggering, dry-run mode, and customizable options.
166+
**💡 Ready-to-use workflow**: Buddy Bot includes a pre-built dashboard workflow at `.github/workflows/buddy-dashboard.yml` that you can use directly. It includes manual triggering, dry-run mode, and customizable options.
167167

168168
### Auto-Update
169169

docs/features/pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ PRs include a rebase checkbox for manual triggers:
198198
buddy-bot rebase 17
199199

200200
# Auto-detect and rebase checked PRs
201-
buddy-bot check-rebase
201+
buddy-bot update-check
202202

203203
# Force rebase even if up-to-date
204204
buddy-bot rebase 17 --force

docs/features/rebase.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Similar to Renovate's rebase functionality, Buddy Bot monitors pull requests for
1313

1414
## How It Works
1515

16-
### 1. Rebase Checkbox
16+
### 1. Update / Rebase Checkbox
1717

1818
Every Buddy Bot pull request includes an interactive checkbox:
1919

@@ -25,7 +25,7 @@ Every Buddy Bot pull request includes an interactive checkbox:
2525

2626
### 2. Automatic Detection
2727

28-
A GitHub Actions workflow (`.github/workflows/buddy-bot-rebase.yml`) runs every minute and:
28+
A GitHub Actions workflow (`.github/workflows/buddy-update-check.yml`) runs every minute and:
2929

3030
1. Scans all open pull requests
3131
2. Identifies Buddy Bot PRs with checked rebase boxes
@@ -57,16 +57,16 @@ During rebase, Buddy Bot:
5757

5858
```bash
5959
# Check for PRs with rebase checkbox enabled
60-
buddy-bot check-rebase
60+
buddy-bot update-check
6161

6262
# Preview what would be rebased (dry run)
63-
buddy-bot check-rebase --dry-run
63+
buddy-bot update-check --dry-run
6464

6565
# Run with detailed logging
66-
buddy-bot check-rebase --verbose
66+
buddy-bot update-check --verbose
6767

6868
# Combine options
69-
buddy-bot check-rebase --dry-run --verbose
69+
buddy-bot update-check --dry-run --verbose
7070
```
7171

7272
### Manual Trigger via GitHub Actions

0 commit comments

Comments
 (0)