@buddysh/buddy 0.11.0
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/CHANGELOG.md +1633 -0
- package/LICENSE.md +21 -0
- package/README.md +1087 -0
- package/bin/cli.ts +3401 -0
- package/dist/bin/cli.d.ts +1 -0
- package/dist/bin/cli.js +188 -0
- package/dist/chunk-0j7z87kh.js +3 -0
- package/dist/chunk-0r8zt3d7.js +2 -0
- package/dist/chunk-16yqbccr.js +3 -0
- package/dist/chunk-1a53wj0h.js +1 -0
- package/dist/chunk-1c1gznm9.js +3 -0
- package/dist/chunk-1h3ey7k5.js +3 -0
- package/dist/chunk-1stt2whn.js +62 -0
- package/dist/chunk-1wjnd24b.js +24 -0
- package/dist/chunk-1xe07hzm.js +2 -0
- package/dist/chunk-2bp7tqca.js +2 -0
- package/dist/chunk-2dbkpfy9.js +2 -0
- package/dist/chunk-3q6czqs4.js +6 -0
- package/dist/chunk-3zdcekfj.js +5 -0
- package/dist/chunk-49ey79p0.js +5 -0
- package/dist/chunk-4c9m61yd.js +5 -0
- package/dist/chunk-4efbxdjr.js +4 -0
- package/dist/chunk-4f7panqj.js +21 -0
- package/dist/chunk-4hd3rre0.js +2 -0
- package/dist/chunk-4xsq18p3.js +9 -0
- package/dist/chunk-52x8mvh4.js +15 -0
- package/dist/chunk-54sc18p8.js +2 -0
- package/dist/chunk-56q4pwb5.js +3 -0
- package/dist/chunk-5c3qf34r.js +2 -0
- package/dist/chunk-5k40mwd4.js +4 -0
- package/dist/chunk-5kt03hx5.js +2 -0
- package/dist/chunk-63ept76v.js +2 -0
- package/dist/chunk-65b3vq52.js +2 -0
- package/dist/chunk-6d9hmjt8.js +3 -0
- package/dist/chunk-6g1y9yqh.js +3 -0
- package/dist/chunk-6k653r8w.js +2 -0
- package/dist/chunk-6md7qf2g.js +4 -0
- package/dist/chunk-6patq6bw.js +2 -0
- package/dist/chunk-6sgh49z1.js +2 -0
- package/dist/chunk-74pxb991.js +7 -0
- package/dist/chunk-7mgec8kb.js +7 -0
- package/dist/chunk-7tfrww3v.js +2 -0
- package/dist/chunk-7xk28xrv.js +2 -0
- package/dist/chunk-82dv4p13.js +2 -0
- package/dist/chunk-8661pvb8.js +3 -0
- package/dist/chunk-887s0w81.js +2 -0
- package/dist/chunk-8rc6042h.js +4 -0
- package/dist/chunk-9750tenz.js +3 -0
- package/dist/chunk-978wtejw.js +44 -0
- package/dist/chunk-9eqpaxfz.js +2 -0
- package/dist/chunk-9h04nskh.js +8 -0
- package/dist/chunk-9p1xkmjy.js +2 -0
- package/dist/chunk-agdesgzv.js +2 -0
- package/dist/chunk-akffynkc.js +3 -0
- package/dist/chunk-ar01x04a.js +2 -0
- package/dist/chunk-ay43f085.js +2 -0
- package/dist/chunk-bk9bqd5j.js +2 -0
- package/dist/chunk-bm8d40j0.js +69 -0
- package/dist/chunk-bxfc4g2x.js +73 -0
- package/dist/chunk-c3fczawt.js +2 -0
- package/dist/chunk-c9r9nd4t.js +1 -0
- package/dist/chunk-ctsz0ynx.js +3 -0
- package/dist/chunk-czremqk7.js +2 -0
- package/dist/chunk-da3wbh04.js +2 -0
- package/dist/chunk-dat582cg.js +2 -0
- package/dist/chunk-dfesffnr.js +3 -0
- package/dist/chunk-djntbp7a.js +105 -0
- package/dist/chunk-eagjp0dh.js +3 -0
- package/dist/chunk-eht72nnj.js +2 -0
- package/dist/chunk-f4nv5x3z.js +2 -0
- package/dist/chunk-fdfk918n.js +2 -0
- package/dist/chunk-fdj0tewy.js +20 -0
- package/dist/chunk-fm8ckj9b.js +2 -0
- package/dist/chunk-fqj7e6xa.js +2 -0
- package/dist/chunk-frm8zz31.js +2 -0
- package/dist/chunk-fvpr07dn.js +16 -0
- package/dist/chunk-g0nv8psv.js +2 -0
- package/dist/chunk-g0w8n555.js +19 -0
- package/dist/chunk-gkmvxjbe.js +2 -0
- package/dist/chunk-gngwjf70.js +7 -0
- package/dist/chunk-h7hs95wn.js +5 -0
- package/dist/chunk-hfvezfxh.js +3 -0
- package/dist/chunk-hw70wbzg.js +3 -0
- package/dist/chunk-j8asz4hb.js +15 -0
- package/dist/chunk-k62w2v03.js +2 -0
- package/dist/chunk-mcrfxphm.js +5 -0
- package/dist/chunk-mh3x7j6h.js +2 -0
- package/dist/chunk-naq32yx3.js +86 -0
- package/dist/chunk-nsmcjkas.js +2 -0
- package/dist/chunk-p1xm1jvz.js +2 -0
- package/dist/chunk-p3wsm8kz.js +2 -0
- package/dist/chunk-p4zwy518.js +4 -0
- package/dist/chunk-p7zgy37f.js +2 -0
- package/dist/chunk-ph1b3vbp.js +315 -0
- package/dist/chunk-pkjm2r0a.js +2 -0
- package/dist/chunk-pkkwb0n0.js +4 -0
- package/dist/chunk-pnpx1kqn.js +6 -0
- package/dist/chunk-q9n79dd3.js +3 -0
- package/dist/chunk-qpz9k66h.js +2 -0
- package/dist/chunk-qvn1rtgp.js +2 -0
- package/dist/chunk-qyf90zz3.js +2 -0
- package/dist/chunk-r06ce5g6.js +2 -0
- package/dist/chunk-r2sbprdb.js +49 -0
- package/dist/chunk-r3zyw8x0.js +3 -0
- package/dist/chunk-rb1fh9vd.js +1 -0
- package/dist/chunk-rqdep14r.js +2 -0
- package/dist/chunk-s1km8cyq.js +2 -0
- package/dist/chunk-s4ms8zag.js +2 -0
- package/dist/chunk-sp818c27.js +9 -0
- package/dist/chunk-tb5y0350.js +3 -0
- package/dist/chunk-thaxgm5p.js +2 -0
- package/dist/chunk-tn8prpny.js +503 -0
- package/dist/chunk-ts35hc5t.js +3 -0
- package/dist/chunk-tzs22es2.js +3 -0
- package/dist/chunk-vagxqhef.js +13 -0
- package/dist/chunk-vh504tcv.js +6 -0
- package/dist/chunk-vkctfqpm.js +3 -0
- package/dist/chunk-vyapg8ca.js +186 -0
- package/dist/chunk-wdwvt7gb.js +43 -0
- package/dist/chunk-wtjhehz9.js +4 -0
- package/dist/chunk-x0ya2r4r.js +3 -0
- package/dist/chunk-x3kragh9.js +12 -0
- package/dist/chunk-x9ctz1qc.js +1 -0
- package/dist/chunk-xakpdqaq.js +3 -0
- package/dist/chunk-xqx460y2.js +3 -0
- package/dist/chunk-xvptf9jy.js +3 -0
- package/dist/chunk-yk23nc4t.js +2 -0
- package/dist/chunk-yncea6ty.js +2 -0
- package/dist/chunk-yq0gxtzv.js +2 -0
- package/dist/chunk-yqhs08ky.js +2 -0
- package/dist/chunk-zb62jhwm.js +31 -0
- package/dist/chunk-zs3jaj0g.js +1023 -0
- package/dist/chunk-zve5d96e.js +2 -0
- package/dist/src/agent/index.d.ts +44 -0
- package/dist/src/agent/modes.d.ts +33 -0
- package/dist/src/agent/runner.d.ts +44 -0
- package/dist/src/agent/stacked.d.ts +83 -0
- package/dist/src/agent/tasks.d.ts +41 -0
- package/dist/src/agent/toolbelt.d.ts +19 -0
- package/dist/src/agent/tools/fs.d.ts +26 -0
- package/dist/src/agent/tools/shell.d.ts +32 -0
- package/dist/src/agent/types.d.ts +56 -0
- package/dist/src/ai/aliases.d.ts +62 -0
- package/dist/src/ai/client.d.ts +42 -0
- package/dist/src/ai/index.d.ts +35 -0
- package/dist/src/ai/learnings.d.ts +78 -0
- package/dist/src/ai/providers/anthropic.d.ts +12 -0
- package/dist/src/ai/providers/google.d.ts +12 -0
- package/dist/src/ai/providers/openai.d.ts +15 -0
- package/dist/src/ai/redact.d.ts +30 -0
- package/dist/src/ai/types.d.ts +75 -0
- package/dist/src/analysis/analyzers/actionlint.d.ts +11 -0
- package/dist/src/analysis/analyzers/external.d.ts +57 -0
- package/dist/src/analysis/analyzers/github-actions.d.ts +9 -0
- package/dist/src/analysis/analyzers/hadolint.d.ts +9 -0
- package/dist/src/analysis/analyzers/linter.d.ts +53 -0
- package/dist/src/analysis/analyzers/markdownlint.d.ts +11 -0
- package/dist/src/analysis/analyzers/secrets.d.ts +23 -0
- package/dist/src/analysis/analyzers/shellcheck.d.ts +8 -0
- package/dist/src/analysis/analyzers/syntax.d.ts +13 -0
- package/dist/src/analysis/engine.d.ts +38 -0
- package/dist/src/analysis/index.d.ts +13 -0
- package/dist/src/analysis/types.d.ts +14 -0
- package/dist/src/buddy.d.ts +17 -0
- package/dist/src/ci/classify.d.ts +49 -0
- package/dist/src/ci/fix.d.ts +42 -0
- package/dist/src/ci/index.d.ts +8 -0
- package/dist/src/commands/dispatcher.d.ts +49 -0
- package/dist/src/commands/handlers.d.ts +23 -0
- package/dist/src/commands/index.d.ts +22 -0
- package/dist/src/commands/parser.d.ts +71 -0
- package/dist/src/config-validation.d.ts +38 -0
- package/dist/src/config.d.ts +22 -0
- package/dist/src/dashboard/dashboard-generator.d.ts +10 -0
- package/dist/src/doctor.d.ts +44 -0
- package/dist/src/ecosystems/go.d.ts +10 -0
- package/dist/src/ecosystems/index.d.ts +60 -0
- package/dist/src/ecosystems/pep440.d.ts +57 -0
- package/dist/src/ecosystems/python.d.ts +12 -0
- package/dist/src/ecosystems/ruby.d.ts +9 -0
- package/dist/src/ecosystems/rust.d.ts +8 -0
- package/dist/src/ecosystems/scan.d.ts +49 -0
- package/dist/src/ecosystems/shared.d.ts +45 -0
- package/dist/src/ecosystems/types.d.ts +58 -0
- package/dist/src/events/bus.d.ts +41 -0
- package/dist/src/events/index.d.ts +11 -0
- package/dist/src/events/sinks.d.ts +33 -0
- package/dist/src/gates/ai-checks.d.ts +77 -0
- package/dist/src/gates/checks.d.ts +84 -0
- package/dist/src/gates/index.d.ts +17 -0
- package/dist/src/gates/post-merge.d.ts +56 -0
- package/dist/src/git/bitbucket-provider.d.ts +50 -0
- package/dist/src/git/github-provider.d.ts +50 -0
- package/dist/src/git/gitlab-provider.d.ts +51 -0
- package/dist/src/git/provider.d.ts +210 -0
- package/dist/src/headless/run.d.ts +78 -0
- package/dist/src/index.d.ts +243 -0
- package/dist/src/index.js +2 -0
- package/dist/src/issues/enrichment.d.ts +76 -0
- package/dist/src/issues/index.d.ts +16 -0
- package/dist/src/issues/quick-links.d.ts +55 -0
- package/dist/src/pr/auto-merge.d.ts +75 -0
- package/dist/src/pr/pr-generator.d.ts +9 -0
- package/dist/src/pr/pr-manifest.d.ts +82 -0
- package/dist/src/pr/templates.d.ts +44 -0
- package/dist/src/registry/docker-tags.d.ts +56 -0
- package/dist/src/registry/eol.d.ts +87 -0
- package/dist/src/registry/oci-client.d.ts +98 -0
- package/dist/src/registry/registry-client.d.ts +39 -0
- package/dist/src/reports/history.d.ts +51 -0
- package/dist/src/reports/index.d.ts +23 -0
- package/dist/src/reports/metrics.d.ts +89 -0
- package/dist/src/reports/render.d.ts +33 -0
- package/dist/src/review/diff.d.ts +50 -0
- package/dist/src/review/engine.d.ts +49 -0
- package/dist/src/review/findings.d.ts +102 -0
- package/dist/src/review/guidelines.d.ts +46 -0
- package/dist/src/review/index.d.ts +48 -0
- package/dist/src/review/local.d.ts +81 -0
- package/dist/src/review/marker.d.ts +34 -0
- package/dist/src/review/poster.d.ts +39 -0
- package/dist/src/review/run.d.ts +24 -0
- package/dist/src/rules/engine.d.ts +108 -0
- package/dist/src/rules/index.d.ts +9 -0
- package/dist/src/rules/renovate.d.ts +25 -0
- package/dist/src/rules/schedule.d.ts +44 -0
- package/dist/src/scanner/catalog-scan.d.ts +39 -0
- package/dist/src/scanner/package-json-extras.d.ts +101 -0
- package/dist/src/scanner/package-scanner.d.ts +17 -0
- package/dist/src/scanner/resolution-drift.d.ts +81 -0
- package/dist/src/scanner/workspace-catalog.d.ts +53 -0
- package/dist/src/scheduler/scheduler.d.ts +27 -0
- package/dist/src/security/engine.d.ts +12 -0
- package/dist/src/security/loader.d.ts +7 -0
- package/dist/src/security/parser.d.ts +15 -0
- package/dist/src/security/rules/bash-injection.d.ts +18 -0
- package/dist/src/security/rules/dangerous-pull-request-target.d.ts +18 -0
- package/dist/src/security/rules/excessive-permissions.d.ts +14 -0
- package/dist/src/security/rules/index.d.ts +16 -0
- package/dist/src/security/rules/missing-timeout.d.ts +9 -0
- package/dist/src/security/rules/self-hosted-exposure.d.ts +13 -0
- package/dist/src/security/rules/unpinned-action.d.ts +10 -0
- package/dist/src/security/rules/walk.d.ts +13 -0
- package/dist/src/security/types.d.ts +64 -0
- package/dist/src/services/deprecated-dependencies-checker.d.ts +16 -0
- package/dist/src/services/release-notes-fetcher.d.ts +70 -0
- package/dist/src/services/security-advisories.d.ts +59 -0
- package/dist/src/setup.d.ts +162 -0
- package/dist/src/setup.js +2 -0
- package/dist/src/templates/github-actions.d.ts +31 -0
- package/dist/src/templates/gitlab-ci.d.ts +46 -0
- package/dist/src/types.d.ts +449 -0
- package/dist/src/upgrades/index.d.ts +18 -0
- package/dist/src/upgrades/migrate.d.ts +45 -0
- package/dist/src/upgrades/plan.d.ts +112 -0
- package/dist/src/upgrades/report.d.ts +22 -0
- package/dist/src/upgrades/span.d.ts +47 -0
- package/dist/src/upgrades/usage.d.ts +30 -0
- package/dist/src/upgrades/wire.d.ts +61 -0
- package/dist/src/utils/concurrency.d.ts +50 -0
- package/dist/src/utils/dependency-file-parser.d.ts +17 -0
- package/dist/src/utils/dockerfile-parser.d.ts +69 -0
- package/dist/src/utils/endpoints.d.ts +58 -0
- package/dist/src/utils/errors.d.ts +35 -0
- package/dist/src/utils/file-changes.d.ts +14 -0
- package/dist/src/utils/github-actions-parser.d.ts +21 -0
- package/dist/src/utils/globs.d.ts +22 -0
- package/dist/src/utils/helpers.d.ts +73 -0
- package/dist/src/utils/http.d.ts +81 -0
- package/dist/src/utils/lock-file.d.ts +28 -0
- package/dist/src/utils/logger.d.ts +45 -0
- package/dist/src/utils/package-paths.d.ts +6 -0
- package/dist/src/utils/pantry-parser.d.ts +30 -0
- package/dist/src/utils/repository.d.ts +41 -0
- package/dist/src/utils/security-format.d.ts +18 -0
- package/dist/src/utils/zig-parser.d.ts +18 -0
- package/dist/src/version/version-resolver.d.ts +9 -0
- package/package.json +115 -0
package/README.md
ADDED
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
<p align="center"><img src="https://github.com/stacksjs/buddy/blob/main/.github/art/cover.jpg?raw=true" alt="Social Card of this repo"></p>
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![GitHub Actions][github-actions-src]][github-actions-href]
|
|
5
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
6
|
+
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] -->
|
|
7
|
+
<!-- [![Codecov][codecov-src]][codecov-href] -->
|
|
8
|
+
|
|
9
|
+
# πΆ Buddy
|
|
10
|
+
|
|
11
|
+
> AI code review and dependency updates, in one teammate that runs on your CI with your keys.
|
|
12
|
+
|
|
13
|
+
Buddy does two jobs that usually take two bots and two subscriptions.
|
|
14
|
+
|
|
15
|
+
It **reviews code** β pull requests and your local working tree β posting inline findings anchored to the lines you changed, answering `@buddy` questions in the thread, gating merges with real check runs, and repairing failing CI when the fix is unambiguous. An alternative to CodeRabbit and friends, except it runs as a step in your own workflow, against a provider you choose, with no third-party app installed on your repository.
|
|
16
|
+
|
|
17
|
+
It also **manages dependencies** β scanning across npm, Bun, yarn, pnpm, Composer, Docker, GitHub Actions, pkgx, Launchpad, Go, Rust, Python, Ruby and Zig, grouping related packages, fetching real changelogs, and keeping a pinned dashboard issue. An alternative to Dependabot and Renovate, and it will migrate your existing config from either.
|
|
18
|
+
|
|
19
|
+
Neither half requires the other. Run the reviewer with no dependency workflows, run the updater with no API key, or run both.
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
### π **AI Code Review**
|
|
26
|
+
|
|
27
|
+
- **Inline Findings**: _Anchored to changed lines, describing the failure rather than a style preference_
|
|
28
|
+
- **Incremental by Default**: _A second push gets new findings, not the ones you already read_
|
|
29
|
+
- **Conversational**: _`@buddy review`, `full-review`, `summary`, `resolve`, `pause`, `resume`, `plan`, `remember` β or just ask a question_
|
|
30
|
+
- **Local Review**: _`buddy review` reads your working tree, so problems are found before the PR exists_
|
|
31
|
+
- **Works Without a Key**: _`--light` runs secret scanning, actionlint, shellcheck, hadolint, markdownlint and syntax checks with no model and no network_
|
|
32
|
+
- **Merge Gates**: _Title format, description quality, linked issue and dependency policy published as a check run_
|
|
33
|
+
- **CI Repair**: _`buddy fix-ci` classifies a failing run and opens the fix when it is clear_
|
|
34
|
+
- **Pipeable**: _`--format json`, `github` annotations, or `agent` to hand findings straight to a coding agent_
|
|
35
|
+
- **Your Provider**: _Anthropic, OpenAI, Google, OpenRouter, or any OpenAI-compatible endpoint_
|
|
36
|
+
|
|
37
|
+
### π **Performance & Speed**
|
|
38
|
+
|
|
39
|
+
- **Lightning Fast Execution**: _Built with Bun for maximum performance_
|
|
40
|
+
- **Intelligent Scanning**: _Uses `bun outdated` and GitHub releases API for accurate, real-time dependency detection_
|
|
41
|
+
- **Optimized CI/CD**: _Minimal resource usage with smart caching_
|
|
42
|
+
|
|
43
|
+
### π¦ **Universal Package Support**
|
|
44
|
+
|
|
45
|
+
- **Multi-Package Manager**: _Full support for Bun, npm, yarn, pnpm, Composer, Zig, pkgx & Launchpad_
|
|
46
|
+
- **GitHub Actions**: _Automatically updates workflow dependencies (`actions/checkout@v4`, etc.)_
|
|
47
|
+
- **Docker Images**: _Detects and updates Dockerfile base images and versions_
|
|
48
|
+
- **Zig Dependencies**: _Manages build.zig.zon dependencies with URL and hash tracking_
|
|
49
|
+
- **Lock File Awareness**: _Respects and updates all lock file formats_
|
|
50
|
+
|
|
51
|
+
### π― **Smart Dependency Management**
|
|
52
|
+
|
|
53
|
+
- **Configurable Update Strategies**: _Choose from major, minor, patch, or all updates_
|
|
54
|
+
- **Flexible Package Grouping**: _Group related packages for cleaner, focused PRs_
|
|
55
|
+
- **Intelligent Conflict Detection**: _Prevents breaking changes with smart dependency analysis_
|
|
56
|
+
- **Security-First Updates**: _Checks every dependency against the [OSV.dev](https://osv.dev) advisory database, and creates vulnerability fixes as their own PR ahead of routine updates_
|
|
57
|
+
|
|
58
|
+
### π **Rich Dashboard & Monitoring**
|
|
59
|
+
|
|
60
|
+
- **Dependency Dashboard**: _Centralized GitHub issue with complete dependency overview_
|
|
61
|
+
- **Interactive Rebase**: _One-click PR updates via checkbox interface_
|
|
62
|
+
- **Real-time Status Tracking**: _Live monitoring of all open PRs and pending updates_
|
|
63
|
+
- **Comprehensive Reporting**: _Detailed update summaries with confidence metrics_
|
|
64
|
+
|
|
65
|
+
### π¨ **Beautiful Pull Requests**
|
|
66
|
+
|
|
67
|
+
- **Multi-Format Tables**: _Separate sections for npm, PHP/Composer, Zig, pkgx/Launchpad, and GitHub Actions_
|
|
68
|
+
- **Rich Metadata**: _Confidence badges, adoption metrics, age indicators, and download stats_
|
|
69
|
+
- **Detailed Changelogs**: _Automatic release notes and breaking change detection_
|
|
70
|
+
- **Professional Formatting**: _Clean, readable PR descriptions with proper categorization_
|
|
71
|
+
|
|
72
|
+
### βοΈ **Developer Experience**
|
|
73
|
+
|
|
74
|
+
- **Zero Configuration**: _Works immediately with intelligent defaults_
|
|
75
|
+
- **Interactive Setup**: _Renovate-like guided configuration with validation_
|
|
76
|
+
- **Migration Tools**: _Seamless import from existing Renovate and Dependabot setups_
|
|
77
|
+
- **TypeScript Config**: _Full type safety with `buddy.config.ts`_
|
|
78
|
+
|
|
79
|
+
### π **Extensible Integration**
|
|
80
|
+
|
|
81
|
+
- **Plugin Ecosystem**: _Built-in Slack, Discord, and Jira integrations_
|
|
82
|
+
- **Custom Hooks**: _Extensible system for organization-specific workflows_
|
|
83
|
+
- **CI/CD Ready**: _Pre-built GitHub Actions workflows for all use cases_
|
|
84
|
+
- **API Access**: _Programmatic control for advanced automation_
|
|
85
|
+
|
|
86
|
+
## Quick Start
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Install globally
|
|
90
|
+
bun add -g @buddysh/buddy
|
|
91
|
+
|
|
92
|
+
# Interactive setup (recommended)
|
|
93
|
+
buddy setup
|
|
94
|
+
|
|
95
|
+
# Non-interactive setup for CI/CD
|
|
96
|
+
buddy setup --non-interactive
|
|
97
|
+
|
|
98
|
+
# Non-interactive with specific preset
|
|
99
|
+
buddy setup --non-interactive --preset testing --verbose
|
|
100
|
+
|
|
101
|
+
# Or run directly for scanning only
|
|
102
|
+
buddy scan
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Usage
|
|
106
|
+
|
|
107
|
+
### Interactive Setup
|
|
108
|
+
|
|
109
|
+
The easiest way to get started is with the interactive setup command:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
buddy setup
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
This comprehensive setup wizard will guide you through configuring automated dependency updates for your project in a Renovate-like experience.
|
|
116
|
+
|
|
117
|
+
### Non-Interactive Setup
|
|
118
|
+
|
|
119
|
+
For CI/CD pipelines and automated deployments, use the non-interactive mode:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Basic non-interactive setup (uses defaults)
|
|
123
|
+
buddy setup --non-interactive
|
|
124
|
+
|
|
125
|
+
# Specify preset and token setup
|
|
126
|
+
buddy setup --non-interactive --preset testing --token-setup existing-secret --verbose
|
|
127
|
+
|
|
128
|
+
# Production setup with security focus
|
|
129
|
+
buddy setup --non-interactive --preset security --token-setup existing-secret
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Available options:**
|
|
133
|
+
|
|
134
|
+
- `--non-interactive` - Skip all prompts, use defaults
|
|
135
|
+
- `--preset <type>` - Workflow preset: `standard`, `high-frequency`, `security`, `minimal`, `testing` (default: `standard`)
|
|
136
|
+
- `--token-setup <type>` - Token mode: `default-token`, `existing-secret`, `new-pat` (default: `default-token`)
|
|
137
|
+
|
|
138
|
+
The setup process includes:
|
|
139
|
+
|
|
140
|
+
#### π Pre-flight Validation
|
|
141
|
+
|
|
142
|
+
- **Environment checks** - Validates git repository, Node.js/Bun installation
|
|
143
|
+
- **Conflict detection** - Scans for existing dependency management tools (Renovate, Dependabot)
|
|
144
|
+
- **Git configuration** - Ensures proper git user setup
|
|
145
|
+
- **GitHub CLI detection** - Suggests helpful tools for authentication
|
|
146
|
+
|
|
147
|
+
#### π Smart Project Analysis
|
|
148
|
+
|
|
149
|
+
- **Project type detection** - Identifies library, application, monorepo, or unknown projects
|
|
150
|
+
- **Package manager detection** - Detects Bun, npm, yarn, pnpm with lock file validation
|
|
151
|
+
- **Dependency ecosystem analysis** - Finds pkgx, Launchpad dependency files
|
|
152
|
+
- **GitHub Actions discovery** - Scans existing workflows for updates
|
|
153
|
+
- **Intelligent recommendations** - Suggests optimal setup based on project characteristics
|
|
154
|
+
|
|
155
|
+
#### π Interactive Progress Tracking
|
|
156
|
+
|
|
157
|
+
- **Visual progress bar** - Real-time completion percentage with progress indicators
|
|
158
|
+
- **Step-by-step guidance** - Clear indication of current and completed steps
|
|
159
|
+
- **Time tracking** - Setup duration monitoring
|
|
160
|
+
- **Recovery capabilities** - Resume from failures with detailed error reporting
|
|
161
|
+
|
|
162
|
+
**π Step 1: Configuration Migration & Discovery**
|
|
163
|
+
|
|
164
|
+
- **Tool Detection** - Automatically detects existing Renovate and Dependabot configurations
|
|
165
|
+
- **Seamless Migration** - Imports settings, schedules, package rules, and ignore patterns
|
|
166
|
+
- **Compatibility Analysis** - Identifies incompatible features and provides alternatives
|
|
167
|
+
- **Migration Report** - Detailed summary of migrated settings and confidence levels
|
|
168
|
+
|
|
169
|
+
#### π Step 2: Integration Discovery
|
|
170
|
+
|
|
171
|
+
- **Plugin Discovery** - Automatically detects available integrations (Slack, Discord, Jira)
|
|
172
|
+
- **Environment Detection** - Scans for webhook URLs, API tokens, and configuration files
|
|
173
|
+
- **Plugin Loading** - Enables discovered integrations for setup completion notifications
|
|
174
|
+
- **Custom Plugins** - Supports custom plugin definitions in `.buddy/plugins/` directory
|
|
175
|
+
|
|
176
|
+
**π Step 3: Repository Detection & Validation**
|
|
177
|
+
|
|
178
|
+
- Automatically detects your GitHub repository from git remote
|
|
179
|
+
- **API validation** - Tests repository access and permissions via GitHub API
|
|
180
|
+
- **Repository health checks** - Validates issues, permissions, and settings
|
|
181
|
+
- **Private repository support** - Enhanced validation for private repositories
|
|
182
|
+
|
|
183
|
+
#### π Step 4: Enhanced Token Setup
|
|
184
|
+
|
|
185
|
+
- Guides you through creating a Personal Access Token (PAT)
|
|
186
|
+
- **Scope validation** - Explains required scopes (`repo`, `workflow`) with examples
|
|
187
|
+
- **Token testing** - Validates token permissions before proceeding
|
|
188
|
+
- Helps set up repository secrets for enhanced features
|
|
189
|
+
|
|
190
|
+
#### π§ Step 5: Repository Settings Validation
|
|
191
|
+
|
|
192
|
+
- Walks you through GitHub Actions permissions configuration
|
|
193
|
+
- **Permission verification** - Tests workflow permissions in real-time
|
|
194
|
+
- **Organization settings** - Guidance for organization-level permissions
|
|
195
|
+
- Ensures proper workflow permissions for PR creation
|
|
196
|
+
|
|
197
|
+
**βοΈ Step 6: Intelligent Workflow Configuration**
|
|
198
|
+
Choose from several carefully crafted presets with smart recommendations:
|
|
199
|
+
|
|
200
|
+
- **Standard Setup (Recommended)** - Dashboard updates 3x/week, balanced dependency updates
|
|
201
|
+
- **High Frequency** - Check for updates multiple times per day
|
|
202
|
+
- **Security Focused** - Frequent patch updates with security-first approach
|
|
203
|
+
- **Minimal Updates** - Weekly checks, lower frequency
|
|
204
|
+
- **Development/Testing** - Manual triggers + frequent checks for testing
|
|
205
|
+
- **Custom Configuration** - Advanced schedule builder with cron preview
|
|
206
|
+
|
|
207
|
+
#### π Step 7: Enhanced Configuration Generation
|
|
208
|
+
|
|
209
|
+
- Creates `buddy.config.json` with repository-specific settings
|
|
210
|
+
- **Project-aware defaults** - Configuration optimized for detected project type
|
|
211
|
+
- **Ecosystem integration** - Includes detected package managers and dependency files
|
|
212
|
+
- Includes sensible defaults and customization options
|
|
213
|
+
|
|
214
|
+
**π Step 8: Workflow Generation & Validation**
|
|
215
|
+
|
|
216
|
+
- Generates three core GitHub Actions workflows:
|
|
217
|
+
- `buddy-dashboard.yml` - Dependency Dashboard Management
|
|
218
|
+
- `buddy-check.yml` - Auto-rebase PR checker
|
|
219
|
+
- `buddy-update.yml` - Scheduled dependency updates
|
|
220
|
+
- **YAML validation** - Ensures generated workflows are syntactically correct
|
|
221
|
+
- **Security best practices** - Validates token usage and permissions
|
|
222
|
+
- **Workflow testing** - Verifies generated workflows meet requirements
|
|
223
|
+
|
|
224
|
+
**π― Step 9: Comprehensive Validation & Instructions**
|
|
225
|
+
|
|
226
|
+
- **Setup verification** - Validates all generated files and configurations
|
|
227
|
+
- **Workflow testing** - Tests generated workflow syntax and requirements
|
|
228
|
+
- **Clear next steps** - Git commands and repository setup instructions
|
|
229
|
+
- **Documentation links** - Direct links to GitHub settings pages
|
|
230
|
+
- **Troubleshooting guide** - Common issues and solutions
|
|
231
|
+
|
|
232
|
+
#### π Step 10: Integration Notifications
|
|
233
|
+
|
|
234
|
+
- **Plugin Execution** - Executes loaded integration hooks for setup completion
|
|
235
|
+
- **Slack Notifications** - Rich setup completion messages with repository details
|
|
236
|
+
- **Discord Embeds** - Colorful setup completion notifications with project information
|
|
237
|
+
- **Jira Tickets** - Automatic task creation for tracking setup completion
|
|
238
|
+
- **Custom Hooks** - Extensible system for organization-specific integrations
|
|
239
|
+
|
|
240
|
+
### Command Line Interface
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
# Setup commands
|
|
244
|
+
buddy setup # Interactive setup (recommended)
|
|
245
|
+
buddy setup --non-interactive # Non-interactive with defaults
|
|
246
|
+
buddy setup --non-interactive --preset testing --verbose
|
|
247
|
+
|
|
248
|
+
# Scan for dependency updates
|
|
249
|
+
buddy scan
|
|
250
|
+
buddy scan --verbose
|
|
251
|
+
|
|
252
|
+
# Check specific packages
|
|
253
|
+
buddy scan --packages "react,typescript,@types/node"
|
|
254
|
+
|
|
255
|
+
# Check packages with glob patterns
|
|
256
|
+
buddy scan --pattern "@types/_"
|
|
257
|
+
|
|
258
|
+
# Apply different update strategies
|
|
259
|
+
buddy scan --strategy minor
|
|
260
|
+
buddy scan --strategy patch
|
|
261
|
+
|
|
262
|
+
# Update dependencies and create PRs
|
|
263
|
+
buddy update --dry-run
|
|
264
|
+
buddy update
|
|
265
|
+
|
|
266
|
+
# Check for rebase requests and update PRs
|
|
267
|
+
buddy update-check
|
|
268
|
+
buddy update-check --dry-run
|
|
269
|
+
buddy update-check --verbose
|
|
270
|
+
|
|
271
|
+
# Get help
|
|
272
|
+
buddy help
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Configuration
|
|
276
|
+
|
|
277
|
+
Create a `buddy.config.ts` file in your project root:
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
import type { BuddyConfig } from '@buddysh/buddy'
|
|
281
|
+
|
|
282
|
+
const config: BuddyConfig = {
|
|
283
|
+
verbose: false,
|
|
284
|
+
|
|
285
|
+
// Repository settings for PR creation
|
|
286
|
+
repository: {
|
|
287
|
+
provider: 'github',
|
|
288
|
+
owner: 'your-org',
|
|
289
|
+
name: 'your-repo',
|
|
290
|
+
token: process.env.GITHUB_TOKEN,
|
|
291
|
+
baseBranch: 'main'
|
|
292
|
+
},
|
|
293
|
+
|
|
294
|
+
// Package update configuration
|
|
295
|
+
packages: {
|
|
296
|
+
strategy: 'all', // 'major' | 'minor' | 'patch' | 'all'
|
|
297
|
+
ignore: [
|
|
298
|
+
'legacy-package',
|
|
299
|
+
'@types/node' // Example ignores
|
|
300
|
+
],
|
|
301
|
+
groups: [
|
|
302
|
+
{
|
|
303
|
+
name: 'TypeScript Types',
|
|
304
|
+
patterns: ['@types/*'],
|
|
305
|
+
strategy: 'minor'
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: 'ESLint Ecosystem',
|
|
309
|
+
patterns: ['eslint*', '@typescript-eslint/*'],
|
|
310
|
+
strategy: 'patch'
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
// Pull request settings
|
|
316
|
+
pullRequest: {
|
|
317
|
+
titleFormat: 'chore(deps): {title}',
|
|
318
|
+
commitMessageFormat: 'chore(deps): {message}',
|
|
319
|
+
reviewers: ['maintainer1', 'maintainer2'],
|
|
320
|
+
labels: ['dependencies', 'automated'],
|
|
321
|
+
autoMerge: {
|
|
322
|
+
enabled: true,
|
|
323
|
+
strategy: 'squash', // 'merge', 'squash', or 'rebase'
|
|
324
|
+
conditions: ['patch-only'] // Only auto-merge patch updates
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
// Dependency dashboard settings
|
|
329
|
+
dashboard: {
|
|
330
|
+
enabled: true,
|
|
331
|
+
title: 'Dependency Dashboard',
|
|
332
|
+
pin: true,
|
|
333
|
+
labels: ['dependencies', 'dashboard'],
|
|
334
|
+
assignees: ['maintainer1'],
|
|
335
|
+
showOpenPRs: true,
|
|
336
|
+
showDetectedDependencies: true
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export default config
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
## Configuration Migration
|
|
344
|
+
|
|
345
|
+
Buddy can automatically migrate your existing dependency management configurations from Renovate and Dependabot, making the transition seamless.
|
|
346
|
+
|
|
347
|
+
### Supported Migration Sources
|
|
348
|
+
|
|
349
|
+
- **Renovate** - `renovate.json`, `.renovaterc`, package.json renovate config
|
|
350
|
+
- **Dependabot** - `.github/dependabot.yml`, `.github/dependabot.yaml`
|
|
351
|
+
|
|
352
|
+
### Migration Process
|
|
353
|
+
|
|
354
|
+
1. **Automatic Detection** - Scans for existing configuration files
|
|
355
|
+
2. **Smart Conversion** - Maps settings to Buddy equivalents
|
|
356
|
+
3. **Compatibility Check** - Identifies unsupported features
|
|
357
|
+
4. **Migration Report** - Provides detailed conversion summary
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
# Migration happens automatically during setup
|
|
361
|
+
buddy setup
|
|
362
|
+
|
|
363
|
+
# Or use programmatically
|
|
364
|
+
import { ConfigurationMigrator } from '@buddysh/buddy/setup'
|
|
365
|
+
|
|
366
|
+
const migrator = new ConfigurationMigrator()
|
|
367
|
+
const tools = await migrator.detectExistingTools()
|
|
368
|
+
const result = await migrator.migrateFromRenovate('renovate.json')
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### Migrated Settings
|
|
372
|
+
|
|
373
|
+
| Renovate | Dependabot | Buddy | Notes |
|
|
374
|
+
|----------|------------|-----------|-------|
|
|
375
|
+
| `schedule` | `schedule.interval` | Workflow presets | Mapped to Standard/High-Frequency/Minimal |
|
|
376
|
+
| `packageRules` | `ignore` | Package groups & ignore lists | Preserves grouping logic |
|
|
377
|
+
| `automerge` | N/A | Auto-merge settings | Includes strategy preferences |
|
|
378
|
+
| `assignees`/`reviewers` | N/A | PR configuration | Maintains team assignments |
|
|
379
|
+
|
|
380
|
+
## Integration Ecosystem
|
|
381
|
+
|
|
382
|
+
Buddy includes an extensible plugin system that enables integrations with popular collaboration and project management tools.
|
|
383
|
+
|
|
384
|
+
### Built-in Integrations
|
|
385
|
+
|
|
386
|
+
#### Slack Integration
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
# Set environment variable
|
|
390
|
+
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK"
|
|
391
|
+
|
|
392
|
+
# Or create config file
|
|
393
|
+
echo "https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK" > .buddy/slack-webhook
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
**Features:**
|
|
397
|
+
|
|
398
|
+
- Rich setup completion notifications
|
|
399
|
+
- Repository and project details
|
|
400
|
+
- Error notifications for setup failures
|
|
401
|
+
- Configurable channel and username
|
|
402
|
+
|
|
403
|
+
#### Discord Integration
|
|
404
|
+
|
|
405
|
+
```bash
|
|
406
|
+
# Set environment variable
|
|
407
|
+
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/YOUR/DISCORD/WEBHOOK"
|
|
408
|
+
|
|
409
|
+
# Or create config file
|
|
410
|
+
echo "https://discord.com/api/webhooks/YOUR/DISCORD/WEBHOOK" > .buddy/discord-webhook
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
**Features:**
|
|
414
|
+
|
|
415
|
+
- Colorful embed notifications
|
|
416
|
+
- Project type and package manager details
|
|
417
|
+
- Timestamp tracking
|
|
418
|
+
- Setup completion confirmations
|
|
419
|
+
|
|
420
|
+
#### Jira Integration
|
|
421
|
+
|
|
422
|
+
```bash
|
|
423
|
+
# Set environment variables
|
|
424
|
+
export JIRA_API_TOKEN="your-jira-api-token"
|
|
425
|
+
export JIRA_BASE_URL="https://your-org.atlassian.net"
|
|
426
|
+
export JIRA_PROJECT_KEY="BUDDY" # Optional, defaults to BUDDY
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**Features:**
|
|
430
|
+
|
|
431
|
+
- Automatic ticket creation for setup completion
|
|
432
|
+
- Repository and project context
|
|
433
|
+
- Configurable project keys
|
|
434
|
+
- Setup tracking and documentation
|
|
435
|
+
|
|
436
|
+
### Custom Plugins
|
|
437
|
+
|
|
438
|
+
Create custom integrations by defining plugins in `.buddy/plugins/`:
|
|
439
|
+
|
|
440
|
+
```jsonc
|
|
441
|
+
// .buddy/plugins/custom-integration.json
|
|
442
|
+
{
|
|
443
|
+
"name": "custom-integration",
|
|
444
|
+
"version": "1.0.0",
|
|
445
|
+
"enabled": true,
|
|
446
|
+
"triggers": [
|
|
447
|
+
{ "event": "setup_complete" },
|
|
448
|
+
{ "event": "validation_error" }
|
|
449
|
+
],
|
|
450
|
+
"hooks": [
|
|
451
|
+
{
|
|
452
|
+
"name": "custom-notification",
|
|
453
|
+
"priority": 10,
|
|
454
|
+
"async": true,
|
|
455
|
+
"handler": "// Custom JavaScript function"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"configuration": {
|
|
459
|
+
"webhook_url": "https://your-custom-webhook.com/notify",
|
|
460
|
+
"api_key": "your-api-key"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
### Plugin Events
|
|
466
|
+
|
|
467
|
+
| Event | Description | Context |
|
|
468
|
+
|-------|-------------|---------|
|
|
469
|
+
| `pre_setup` | Before setup begins | Initial configuration |
|
|
470
|
+
| `post_setup` | After setup completes | Full setup context |
|
|
471
|
+
| `step_complete` | After each setup step | Step-specific progress |
|
|
472
|
+
| `validation_error` | When validation fails | Error details and recovery |
|
|
473
|
+
| `setup_complete` | Final setup completion | Complete project context |
|
|
474
|
+
|
|
475
|
+
### Programmatic Usage
|
|
476
|
+
|
|
477
|
+
```typescript
|
|
478
|
+
import { Buddy, getConfig } from '@buddysh/buddy'
|
|
479
|
+
|
|
480
|
+
// Load configuration
|
|
481
|
+
const config = await getConfig()
|
|
482
|
+
|
|
483
|
+
// Create Buddy instance
|
|
484
|
+
const buddy = new Buddy(config)
|
|
485
|
+
|
|
486
|
+
// Scan for updates
|
|
487
|
+
const scanResult = await buddy.scanForUpdates()
|
|
488
|
+
|
|
489
|
+
console.log(`Found ${scanResult.updates.length} updates`)
|
|
490
|
+
|
|
491
|
+
// Check specific packages
|
|
492
|
+
const updates = await buddy.checkPackages(['react', 'typescript'])
|
|
493
|
+
|
|
494
|
+
// Create pull requests
|
|
495
|
+
if (scanResult.updates.length > 0) {
|
|
496
|
+
await buddy.createPullRequests(scanResult)
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// Create or update dependency dashboard
|
|
500
|
+
const dashboardIssue = await buddy.createOrUpdateDashboard()
|
|
501
|
+
console.log(`Dashboard updated: ${dashboardIssue.url}`)
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
## Dependency Dashboard
|
|
505
|
+
|
|
506
|
+
The dependency dashboard provides a centralized view of all your repository's dependencies and open pull requests in a single GitHub issue. Similar to Renovate's dependency dashboard, it gives you complete visibility into your dependency management.
|
|
507
|
+
|
|
508
|
+
### Key Features
|
|
509
|
+
|
|
510
|
+
- **π Single Overview**: All dependencies and PRs in one place
|
|
511
|
+
- **π Interactive Controls**: Force retry/rebase PRs by checking boxes
|
|
512
|
+
- **π Pinnable Issue**: Keep dashboard at the top of your issues
|
|
513
|
+
- **π·οΈ Smart Categorization**: Organized by npm, GitHub Actions, and dependency files
|
|
514
|
+
- **β‘ Auto-Updates**: Refreshes when dependencies change
|
|
515
|
+
|
|
516
|
+
## Rebase Functionality
|
|
517
|
+
|
|
518
|
+
Buddy includes powerful rebase functionality that allows you to update existing pull requests with the latest dependency versions, similar to Renovate's rebase feature.
|
|
519
|
+
|
|
520
|
+
### How It Works
|
|
521
|
+
|
|
522
|
+
All Buddy pull requests include a rebase checkbox at the bottom:
|
|
523
|
+
|
|
524
|
+
```markdown
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
- [ ] <!-- rebase-check -->If you want to update/retry this PR, check this box
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Using the Rebase Feature
|
|
533
|
+
|
|
534
|
+
1. **Check the box**: In any Buddy PR, check the rebase checkbox
|
|
535
|
+
2. **Automatic detection**: The rebase workflow runs every minute to detect checked boxes
|
|
536
|
+
3. **Updates applied**: The PR is automatically updated with the latest dependency versions
|
|
537
|
+
4. **Checkbox unchecked**: After successful rebase, the checkbox is automatically unchecked
|
|
538
|
+
|
|
539
|
+
### Rebase Command
|
|
540
|
+
|
|
541
|
+
You can also trigger rebase manually using the CLI:
|
|
542
|
+
|
|
543
|
+
```bash
|
|
544
|
+
# Check for PRs with rebase checkbox enabled and update them
|
|
545
|
+
buddy update-check
|
|
546
|
+
|
|
547
|
+
# Dry run to see what would be rebased
|
|
548
|
+
buddy update-check --dry-run
|
|
549
|
+
|
|
550
|
+
# With verbose output
|
|
551
|
+
buddy update-check --verbose
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Automated Rebase Workflow
|
|
555
|
+
|
|
556
|
+
Buddy includes a pre-built GitHub Actions workflow (`.github/workflows/buddy-check.yml`) that:
|
|
557
|
+
|
|
558
|
+
- **π Runs every minute**: Automatically checks for rebase requests
|
|
559
|
+
- **π Scans all PRs**: Finds Buddy PRs with checked rebase boxes
|
|
560
|
+
- **π¦ Updates dependencies**: Re-scans for latest versions and updates files
|
|
561
|
+
- **π Updates PR content**: Refreshes PR title, body, and file changes
|
|
562
|
+
- **β
Maintains workflow files**: Updates GitHub Actions workflows (requires proper permissions)
|
|
563
|
+
|
|
564
|
+
### Workflow File Permissions
|
|
565
|
+
|
|
566
|
+
For the rebase functionality to update GitHub Actions workflow files, you need proper permissions:
|
|
567
|
+
|
|
568
|
+
#### Option 1: Personal Access Token (Recommended)
|
|
569
|
+
|
|
570
|
+
1. Create a [Personal Access Token](https://github.com/settings/tokens) with `repo` and `workflow` scopes
|
|
571
|
+
2. Add it as a repository secret named `BUDDY_TOKEN`
|
|
572
|
+
3. The workflow automatically uses it when available
|
|
573
|
+
|
|
574
|
+
#### Option 2: Default GitHub Token (Limited)
|
|
575
|
+
|
|
576
|
+
- Uses `GITHUB_TOKEN` with limited permissions
|
|
577
|
+
- Cannot update workflow files (`.github/workflows/*.yml`)
|
|
578
|
+
- Still updates package.json, lock files, and dependency files
|
|
579
|
+
|
|
580
|
+
### What Gets Updated During Rebase
|
|
581
|
+
|
|
582
|
+
- β
**package.json** - npm/yarn/pnpm dependencies
|
|
583
|
+
- β
**Lock files** - package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb
|
|
584
|
+
- β
**Dependency files** - deps.yaml, dependencies.yaml, pkgx.yaml
|
|
585
|
+
- β
**Zig manifests** - build.zig.zon with URL and hash updates
|
|
586
|
+
- β
**GitHub Actions** - workflow files (with proper permissions)
|
|
587
|
+
- β
**PR content** - Updated title, body, and metadata
|
|
588
|
+
|
|
589
|
+
### Quick Start
|
|
590
|
+
|
|
591
|
+
```bash
|
|
592
|
+
# Create basic dashboard
|
|
593
|
+
buddy dashboard
|
|
594
|
+
|
|
595
|
+
# Create dashboard with custom title
|
|
596
|
+
buddy dashboard --title "My Dependencies"
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### Automated Dashboard Updates
|
|
600
|
+
|
|
601
|
+
Buddy includes a pre-built GitHub workflow (`.github/workflows/buddy-dashboard.yml`) that automatically updates your dependency dashboard:
|
|
602
|
+
|
|
603
|
+
- **π
Scheduled**: Runs Monday, Wednesday, Friday at 9 AM UTC
|
|
604
|
+
- **π±οΈ Manual**: Trigger from Actions tab with custom options
|
|
605
|
+
- **π Auto-Pin**: Keeps dashboard pinned by default
|
|
606
|
+
- **π Dry-Run**: Preview mode available
|
|
607
|
+
|
|
608
|
+
### Example Dashboard Output
|
|
609
|
+
|
|
610
|
+
The dashboard automatically organizes your dependencies and shows:
|
|
611
|
+
|
|
612
|
+
```markdown
|
|
613
|
+
## Open
|
|
614
|
+
|
|
615
|
+
The following updates have all been created. To force a retry/rebase of any, click on a checkbox below.
|
|
616
|
+
|
|
617
|
+
- [ ] <!-- rebase-branch=buddy/update-react-18 -->[chore(deps): update react to v18](../pull/123) (`react`)
|
|
618
|
+
- [ ] <!-- rebase-branch=buddy/update-types -->[chore(deps): update @types/node](../pull/124) (`@types/node`)
|
|
619
|
+
|
|
620
|
+
## Detected dependencies
|
|
621
|
+
|
|
622
|
+
<details><summary>npm</summary>
|
|
623
|
+
<blockquote>
|
|
624
|
+
|
|
625
|
+
<details><summary>package.json</summary>
|
|
626
|
+
|
|
627
|
+
- `react ^17.0.0`
|
|
628
|
+
- `typescript ^4.9.0`
|
|
629
|
+
- `@types/node ^18.0.0`
|
|
630
|
+
|
|
631
|
+
</details>
|
|
632
|
+
</blockquote>
|
|
633
|
+
</details>
|
|
634
|
+
|
|
635
|
+
<details><summary>github-actions</summary>
|
|
636
|
+
<blockquote>
|
|
637
|
+
|
|
638
|
+
<details><summary>.github/workflows/ci.yml</summary>
|
|
639
|
+
|
|
640
|
+
- `actions/checkout v3`
|
|
641
|
+
- `oven-sh/setup-bun v1`
|
|
642
|
+
|
|
643
|
+
</details>
|
|
644
|
+
</blockquote>
|
|
645
|
+
</details>
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
## How It Works
|
|
649
|
+
|
|
650
|
+
Buddy's intelligent workflow delivers unmatched speed and accuracy:
|
|
651
|
+
|
|
652
|
+
1. **β‘ Lightning-Fast Scanning**: Leverages `bun outdated` and parallel API calls for instant dependency analysis
|
|
653
|
+
2. **π Universal Detection**: Automatically discovers and parses all dependency files across your entire project
|
|
654
|
+
3. **π§ Smart Analysis**: Evaluates security implications, breaking changes, and compatibility before suggesting updates
|
|
655
|
+
4. **π― Intelligent Grouping**: Automatically clusters related packages to create focused, logical pull requests
|
|
656
|
+
5. **π Rich Context**: Fetches comprehensive metadata including adoption rates, confidence scores, and detailed changelogs
|
|
657
|
+
6. **β¨ Professional PRs**: Generates beautifully formatted pull requests with actionable insights and clear upgrade paths
|
|
658
|
+
|
|
659
|
+
### Supported Dependency Files
|
|
660
|
+
|
|
661
|
+
Buddy automatically detects and updates the following dependency file formats:
|
|
662
|
+
|
|
663
|
+
#### Package Dependencies
|
|
664
|
+
|
|
665
|
+
- **package.json** - Traditional npm dependencies
|
|
666
|
+
- **composer.json** - PHP dependencies from Packagist
|
|
667
|
+
- **composer.lock** - PHP lock file with exact versions
|
|
668
|
+
- **build.zig.zon** - Zig package manager dependencies with URL and hash tracking
|
|
669
|
+
- **deps.yaml**/**deps.yml** - Launchpad/pkgx dependency declarations
|
|
670
|
+
- **dependencies.yaml**/**dependencies.yml** - Alternative dependency file format
|
|
671
|
+
- **pkgx.yaml**/**pkgx.yml** - pkgx-specific dependency files
|
|
672
|
+
- **.deps.yaml**/**.deps.yml** - Hidden dependency configuration files
|
|
673
|
+
|
|
674
|
+
#### GitHub Actions
|
|
675
|
+
|
|
676
|
+
- **.github/workflows/*.yml** - GitHub Actions workflow files
|
|
677
|
+
- **.github/workflows/*.yaml** - Alternative YAML extension
|
|
678
|
+
|
|
679
|
+
#### Container Images
|
|
680
|
+
|
|
681
|
+
Detected anywhere in the tree, in all three naming conventions:
|
|
682
|
+
|
|
683
|
+
- `Dockerfile`, `Dockerfile.<suffix>` - e.g. `Dockerfile.prod`
|
|
684
|
+
- `<prefix>.dockerfile` - e.g. `docker/api.dockerfile`, common in monorepos
|
|
685
|
+
- `Containerfile`, `<prefix>.containerfile` - the OCI/Podman spelling
|
|
686
|
+
|
|
687
|
+
All dependency files are parsed using the `ts-pkgx` library to ensure compatibility with the pkgx registry ecosystem while maintaining support for tools like Launchpad that reuse the same registry format. GitHub Actions are detected by parsing `uses:` statements in workflow files and checking for updates via the GitHub releases API.
|
|
688
|
+
|
|
689
|
+
### Pull Request Format
|
|
690
|
+
|
|
691
|
+
Buddy generates comprehensive pull requests with **separate dependency tables** for each ecosystem:
|
|
692
|
+
|
|
693
|
+
#### 1. npm Dependencies
|
|
694
|
+
|
|
695
|
+
Full table with confidence badges, age, adoption metrics, and weekly download statistics:
|
|
696
|
+
|
|
697
|
+
```
|
|
698
|
+
| Package | Change | Age | Adoption | Passing | Confidence |
|
|
699
|
+
|---------|--------|-----|----------|---------|------------|
|
|
700
|
+
| lodash | ^4.17.20 β ^4.17.21 | π
| π | β
| π |
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
#### 2. PHP/Composer Dependencies
|
|
704
|
+
|
|
705
|
+
Focused table for PHP packages from Packagist:
|
|
706
|
+
|
|
707
|
+
```
|
|
708
|
+
| Package | Change | File | Status |
|
|
709
|
+
|---------|--------|------|--------|
|
|
710
|
+
| laravel/framework | ^10.0.0 β ^10.16.0 | composer.json | β
Available |
|
|
711
|
+
| phpunit/phpunit | ^10.0.0 β ^10.3.0 | composer.json | β
Available |
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
#### 3. Zig Dependencies
|
|
715
|
+
|
|
716
|
+
Focused table for Zig packages with repository links and update types:
|
|
717
|
+
|
|
718
|
+
```
|
|
719
|
+
| Package | Change | Type | File |
|
|
720
|
+
|---------|--------|------|------|
|
|
721
|
+
| httpz | 0.5.0 β 0.6.0 | π‘ minor | build.zig.zon |
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
#### 4. Launchpad/pkgx Dependencies
|
|
725
|
+
|
|
726
|
+
Simplified table focusing on package updates and file locations:
|
|
727
|
+
|
|
728
|
+
```
|
|
729
|
+
| Package | Change | File | Status |
|
|
730
|
+
|---------|--------|------|--------|
|
|
731
|
+
| bun.com | ^1.2.16 β ^1.2.19 | deps.yaml | β
Available |
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
#### 5. GitHub Actions
|
|
735
|
+
|
|
736
|
+
Workflow automation updates with direct links to repositories:
|
|
737
|
+
|
|
738
|
+
```
|
|
739
|
+
| Action | Change | File | Status |
|
|
740
|
+
|--------|--------|------|--------|
|
|
741
|
+
| actions/checkout | v4 β v4.2.2 | ci.yml | β
Available |
|
|
742
|
+
| oven-sh/setup-bun | v2 β v2.0.2 | release.yml | β
Available |
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
Each table is followed by detailed release notes, changelogs, and package statistics tailored to the dependency type.
|
|
746
|
+
|
|
747
|
+
## Update Strategies
|
|
748
|
+
|
|
749
|
+
- **`all`**: Update all dependencies regardless of semver impact
|
|
750
|
+
- **`major`**: Only major version updates
|
|
751
|
+
- **`minor`**: Major and minor updates (no patch-only)
|
|
752
|
+
- **`patch`**: All updates (major, minor, and patch)
|
|
753
|
+
|
|
754
|
+
## Auto-Merge Configuration
|
|
755
|
+
|
|
756
|
+
Buddy supports configurable auto-merge for pull requests to reduce manual overhead:
|
|
757
|
+
|
|
758
|
+
```typescript
|
|
759
|
+
const config: BuddyConfig = {
|
|
760
|
+
pullRequest: {
|
|
761
|
+
autoMerge: {
|
|
762
|
+
enabled: true,
|
|
763
|
+
strategy: 'squash', // 'merge', 'squash', or 'rebase'
|
|
764
|
+
conditions: ['patch-only'] // Optional: restrict to specific update types
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
```
|
|
769
|
+
|
|
770
|
+
### Auto-Merge Strategies
|
|
771
|
+
|
|
772
|
+
- **`squash`**: Squash commits and merge _(recommended for clean history)_
|
|
773
|
+
- **`merge`**: Create a merge commit _(preserves individual commits)_
|
|
774
|
+
- **`rebase`**: Rebase and merge _(linear history without merge commits)_
|
|
775
|
+
|
|
776
|
+
### Auto-Merge Conditions
|
|
777
|
+
|
|
778
|
+
- **`patch-only`**: Only auto-merge patch version updates _(safest)_
|
|
779
|
+
- **No conditions**: Auto-merge all updates _(use with caution)_
|
|
780
|
+
|
|
781
|
+
### Workflow-Specific Auto-Merge
|
|
782
|
+
|
|
783
|
+
Each preset configures auto-merge appropriately:
|
|
784
|
+
|
|
785
|
+
- **High Frequency Updates**: Auto-merge patch updates only _(6AM, 12PM, 6PM)_, manual review for minor updates _(12AM)_
|
|
786
|
+
- **Security Focused**: Auto-merge security patches every 6 hours
|
|
787
|
+
- **Standard Project**: Auto-merge daily patches, manual review for weekly/monthly updates
|
|
788
|
+
- **Development/Testing**: No auto-merge, dry-run by default, enhanced testing features.
|
|
789
|
+
|
|
790
|
+
## Development & Testing
|
|
791
|
+
|
|
792
|
+
The **Development/Testing** preset is specifically designed for testing and development environments:
|
|
793
|
+
|
|
794
|
+
### Features
|
|
795
|
+
|
|
796
|
+
- **β° Every 5 minutes**: Automated runs for rapid testing cycles
|
|
797
|
+
- **π±οΈ Manual triggers**: Full control via GitHub Actions UI
|
|
798
|
+
- **π Dry run by default**: Safe testing without making changes
|
|
799
|
+
- **π Verbose logging**: Detailed output for debugging
|
|
800
|
+
- **π¦ Package-specific testing**: Test updates for specific packages
|
|
801
|
+
- **π Enhanced summaries**: Detailed test reports with context
|
|
802
|
+
|
|
803
|
+
### Manual Trigger Options
|
|
804
|
+
|
|
805
|
+
When running manually, you can customize:
|
|
806
|
+
|
|
807
|
+
- **Update strategy**: Choose patch, minor, major, or all updates
|
|
808
|
+
- **Dry run mode**: Preview changes without applying them
|
|
809
|
+
- **Specific packages**: Test updates for particular packages only
|
|
810
|
+
- **Verbose logging**: Control output detail level
|
|
811
|
+
|
|
812
|
+
### Perfect For
|
|
813
|
+
|
|
814
|
+
- π§ͺ Testing new configurations
|
|
815
|
+
- π§ Debugging dependency issues
|
|
816
|
+
- π Monitoring update frequency
|
|
817
|
+
- π Validating workflow changes
|
|
818
|
+
- π Learning how Buddy works
|
|
819
|
+
|
|
820
|
+
## Package Grouping
|
|
821
|
+
|
|
822
|
+
Group related packages to create cleaner, more focused pull requests:
|
|
823
|
+
|
|
824
|
+
```typescript
|
|
825
|
+
{
|
|
826
|
+
groups: [
|
|
827
|
+
{
|
|
828
|
+
name: 'React Ecosystem',
|
|
829
|
+
patterns: ['react*', '@types/react*'],
|
|
830
|
+
strategy: 'minor'
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
name: 'Development Tools',
|
|
834
|
+
patterns: ['eslint*', 'prettier*', '@typescript-eslint/*'],
|
|
835
|
+
strategy: 'patch'
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
}
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
## Example Output
|
|
842
|
+
|
|
843
|
+
When Buddy finds updates, it creates PRs like:
|
|
844
|
+
|
|
845
|
+
```
|
|
846
|
+
chore(deps): update all non-major dependencies
|
|
847
|
+
|
|
848
|
+
This PR contains the following updates:
|
|
849
|
+
|
|
850
|
+
| Package | Change | Age | Adoption | Passing | Confidence |
|
|
851
|
+
|---|---|---|---|---|---|
|
|
852
|
+
| [typescript](https://www.typescriptlang.org/) | `^5.8.2` -> `^5.8.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
|
|
853
|
+
|
|
854
|
+
---
|
|
855
|
+
|
|
856
|
+
### Release Notes
|
|
857
|
+
|
|
858
|
+
<details>
|
|
859
|
+
<summary>microsoft/TypeScript (typescript)</summary>
|
|
860
|
+
|
|
861
|
+
### [`v5.8.3`](https://github.com/microsoft/TypeScript/releases/tag/v5.8.3)
|
|
862
|
+
|
|
863
|
+
[Compare Source](https://github.com/microsoft/TypeScript/compare/v5.8.2...v5.8.3)
|
|
864
|
+
|
|
865
|
+
##### Bug Fixes
|
|
866
|
+
|
|
867
|
+
- Fix issue with module resolution
|
|
868
|
+
- Improve error messages
|
|
869
|
+
|
|
870
|
+
</details>
|
|
871
|
+
|
|
872
|
+
---
|
|
873
|
+
|
|
874
|
+
### Configuration
|
|
875
|
+
|
|
876
|
+
π
**Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
|
|
877
|
+
|
|
878
|
+
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
|
|
879
|
+
|
|
880
|
+
β» **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
|
|
881
|
+
|
|
882
|
+
π **Ignore**: Close this PR and you won't be reminded about this update again.
|
|
883
|
+
|
|
884
|
+
---
|
|
885
|
+
|
|
886
|
+
- [ ] <!-- rebase-check -->If you want to update/retry this PR, check this box
|
|
887
|
+
|
|
888
|
+
---
|
|
889
|
+
|
|
890
|
+
This PR was generated by [Buddy](https://github.com/stacksjs/buddy).
|
|
891
|
+
```
|
|
892
|
+
|
|
893
|
+
## Why Choose Buddy
|
|
894
|
+
|
|
895
|
+
| Feature | Buddy | Dependabot | Renovate |
|
|
896
|
+
|---------|-----------|------------|----------|
|
|
897
|
+
| **Performance** | β‘ Lightning fast (Bun-native) | π | π |
|
|
898
|
+
| **Package Ecosystem** | π Universal (8+ managers) | π¦ Limited scope | π¦ Limited scope |
|
|
899
|
+
| **Setup Experience** | π― Interactive + Zero config | β
Simple | β Complex configuration |
|
|
900
|
+
| **Docker Support** | β
Full Dockerfile updates | β No support | β
Basic support |
|
|
901
|
+
| **Configuration** | π§ TypeScript + multiple formats | π YAML only | π JSON/JS only |
|
|
902
|
+
| **Package Grouping** | π¨ Intelligent + flexible | π Basic grouping | π§ Advanced but complex |
|
|
903
|
+
| **Dashboard** | π Rich interactive dashboard | β No dashboard | π Basic dashboard |
|
|
904
|
+
| **Migration Tools** | π Automated import | β Manual migration | β Manual migration |
|
|
905
|
+
| **Vulnerability Alerts** | β
OSV.dev, prioritized PRs + dashboard | β
GitHub Advisory | β
OSV / GitHub Advisory |
|
|
906
|
+
| **Private Registries** | β
Config or `.npmrc`, per-scope | β
Supported | β
Supported |
|
|
907
|
+
| **GitHub Enterprise** | β
Zero-config on GHES runners | β
Supported | β
Supported |
|
|
908
|
+
| **Self-hosting** | β
Full control | β GitHub-only | β
Complex setup |
|
|
909
|
+
| **Plugin System** | π Extensible ecosystem | β Limited | π Advanced but complex |
|
|
910
|
+
|
|
911
|
+
## CI/CD Integration
|
|
912
|
+
|
|
913
|
+
### GitHub Actions
|
|
914
|
+
|
|
915
|
+
Buddy includes powerful GitHub Actions workflow templates for different automation strategies:
|
|
916
|
+
|
|
917
|
+
```yaml
|
|
918
|
+
# Basic dependency updates (generated by setup)
|
|
919
|
+
name: Buddy Update
|
|
920
|
+
on:
|
|
921
|
+
schedule:
|
|
922
|
+
|
|
923
|
+
- cron: '0 _/2 _ _ _' # Every 2 hours
|
|
924
|
+
|
|
925
|
+
workflow_dispatch:
|
|
926
|
+
inputs:
|
|
927
|
+
strategy:
|
|
928
|
+
description: Update strategy
|
|
929
|
+
required: false
|
|
930
|
+
default: patch
|
|
931
|
+
dry_run:
|
|
932
|
+
description: Dry run (preview only)
|
|
933
|
+
required: false
|
|
934
|
+
default: true
|
|
935
|
+
type: boolean
|
|
936
|
+
jobs:
|
|
937
|
+
dependency-update:
|
|
938
|
+
runs-on: ubuntu-latest
|
|
939
|
+
steps:
|
|
940
|
+
|
|
941
|
+
- uses: actions/checkout@v4
|
|
942
|
+
- uses: oven-sh/setup-bun@v2
|
|
943
|
+
- run: bun install
|
|
944
|
+
- run: bunx @buddysh/buddy scan --strategy ${{ github.event.inputs.strategy || 'patch' }} --verbose
|
|
945
|
+
|
|
946
|
+
env:
|
|
947
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
948
|
+
|
|
949
|
+
- if: ${{ github.event.inputs.dry_run != 'true' }}
|
|
950
|
+
|
|
951
|
+
run: bunx @buddysh/buddy update --strategy ${{ github.event.inputs.strategy || 'patch' }} --verbose
|
|
952
|
+
env:
|
|
953
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
**π Generate Advanced Workflows:**
|
|
957
|
+
|
|
958
|
+
```bash
|
|
959
|
+
# Generate comprehensive GitHub Actions workflows
|
|
960
|
+
buddy generate-workflows
|
|
961
|
+
|
|
962
|
+
# This creates
|
|
963
|
+
# - buddy-comprehensive.yml (multi-strategy scheduling)
|
|
964
|
+
# - dependency-updates-daily.yml (patch updates)
|
|
965
|
+
# - dependency-updates-weekly.yml (minor updates)
|
|
966
|
+
# - dependency-updates-monthly.yml (major updates)
|
|
967
|
+
# - buddy-monorepo.yml (monorepo support)
|
|
968
|
+
# - buddy-docker.yml (Docker-based)
|
|
969
|
+
```
|
|
970
|
+
|
|
971
|
+
**π₯ Comprehensive Multi-Strategy Workflow:**
|
|
972
|
+
|
|
973
|
+
The updated workflow system automatically:
|
|
974
|
+
|
|
975
|
+
- **Every 2 hours**: All configured strategies with dry-run by default
|
|
976
|
+
- **Manual trigger**: Any strategy with configurable dry-run option
|
|
977
|
+
- **Enhanced testing**: Comprehensive validation and summaries
|
|
978
|
+
- **Failure handling**: Auto-creates GitHub issues
|
|
979
|
+
- **Smart summaries**: Rich GitHub Actions summaries
|
|
980
|
+
- **Flexible scheduling**: Consistent 2-hour intervals for all presets
|
|
981
|
+
|
|
982
|
+
### GitHub Actions Permissions Setup
|
|
983
|
+
|
|
984
|
+
β οΈ **Important**: For Buddy to create pull requests in GitHub Actions workflows, you need to enable the proper permissions:
|
|
985
|
+
|
|
986
|
+
#### Repository Settings
|
|
987
|
+
|
|
988
|
+
1. Go to your repository **Settings**β**Actions**β**General**
|
|
989
|
+
2. Under **"Workflow permissions"**, select**"Read and write permissions"**
|
|
990
|
+
3. β
Check **"Allow GitHub Actions to create and approve pull requests"**
|
|
991
|
+
4. Click **"Save"**
|
|
992
|
+
|
|
993
|
+
#### Organization Settings (if applicable)
|
|
994
|
+
|
|
995
|
+
If your repository is part of an organization, you may also need to enable organization-level permissions:
|
|
996
|
+
|
|
997
|
+
1. Go to your organization **Settings**β**Actions**β**General**
|
|
998
|
+
2. Configure the same permissions as above
|
|
999
|
+
|
|
1000
|
+
#### Quick Setup Command
|
|
1001
|
+
|
|
1002
|
+
```bash
|
|
1003
|
+
# Open GitHub settings pages directly
|
|
1004
|
+
buddy open-settings
|
|
1005
|
+
|
|
1006
|
+
# Or manually visit
|
|
1007
|
+
# Repository: https://github.com/YOUR_ORG/YOUR_REPO/settings/actions
|
|
1008
|
+
# Organization: https://github.com/organizations/YOUR_ORG/settings/actions
|
|
1009
|
+
```
|
|
1010
|
+
|
|
1011
|
+
#### Troubleshooting
|
|
1012
|
+
|
|
1013
|
+
If you see errors like:
|
|
1014
|
+
|
|
1015
|
+
- `GitHub Actions is not permitted to create or approve pull requests`
|
|
1016
|
+
- `GraphQL: GitHub Actions is not permitted to create or approve pull requests (createPullRequest)`
|
|
1017
|
+
|
|
1018
|
+
This indicates the permissions above need to be enabled. Both GitHub CLI and REST API methods require these permissions to create PRs from workflows.
|
|
1019
|
+
|
|
1020
|
+
For more details, see the [GitHub documentation on managing GitHub Actions settings](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests).
|
|
1021
|
+
|
|
1022
|
+
## Testing
|
|
1023
|
+
|
|
1024
|
+
```bash
|
|
1025
|
+
bun test
|
|
1026
|
+
```
|
|
1027
|
+
|
|
1028
|
+
## Build From Source
|
|
1029
|
+
|
|
1030
|
+
```bash
|
|
1031
|
+
bun run build
|
|
1032
|
+
```
|
|
1033
|
+
|
|
1034
|
+
## Changelog
|
|
1035
|
+
|
|
1036
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
1037
|
+
|
|
1038
|
+
## Contributing
|
|
1039
|
+
|
|
1040
|
+
Please see the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
1041
|
+
|
|
1042
|
+
## Community
|
|
1043
|
+
|
|
1044
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
1045
|
+
|
|
1046
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
1047
|
+
|
|
1048
|
+
For casual chit-chat with others using this package:
|
|
1049
|
+
|
|
1050
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
1051
|
+
|
|
1052
|
+
## Postcardware
|
|
1053
|
+
|
|
1054
|
+
βSoftware that is free, but hopes for a postcard.β We love receiving postcards from around the world showing where Stacks is being used! We showcase them on our website too.
|
|
1055
|
+
|
|
1056
|
+
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States π
|
|
1057
|
+
|
|
1058
|
+
## Sponsors
|
|
1059
|
+
|
|
1060
|
+
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
|
|
1061
|
+
|
|
1062
|
+
- [JetBrains](https://www.jetbrains.com/)
|
|
1063
|
+
- [The Solana Foundation](https://solana.com/)
|
|
1064
|
+
|
|
1065
|
+
## Credits
|
|
1066
|
+
|
|
1067
|
+
- [Renovatebot](https://renovatebot.com/)
|
|
1068
|
+
- [Dependabot](https://dependabot.com/)
|
|
1069
|
+
- [Chris Breuer](https://github.com/chrisbbreuer)
|
|
1070
|
+
- [All Contributors](../../contributors)
|
|
1071
|
+
|
|
1072
|
+
And a special thanks to [Dan Scanlon](https://twitter.com/danscan) for donating the `stacks` name on npm β¨
|
|
1073
|
+
|
|
1074
|
+
## License
|
|
1075
|
+
|
|
1076
|
+
The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.
|
|
1077
|
+
|
|
1078
|
+
Made with π
|
|
1079
|
+
|
|
1080
|
+
<!-- Badges -->
|
|
1081
|
+
[npm-version-src]: https://img.shields.io/npm/v/buddy?style=flat-square
|
|
1082
|
+
[npm-version-href]: https://npmjs.com/package/buddy
|
|
1083
|
+
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/buddy/ci.yml?style=flat-square&branch=main
|
|
1084
|
+
[github-actions-href]: https://github.com/stacksjs/buddy/actions?query=workflow%3Aci
|
|
1085
|
+
|
|
1086
|
+
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/buddy/main?style=flat-square
|
|
1087
|
+
[codecov-href]: https://codecov.io/gh/stacksjs/buddy -->
|