-
Notifications
You must be signed in to change notification settings - Fork 0
chore: initial release setup #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
77554b7
chore: initial release setup
jbdevprimary 26bd947
fix: harden installer and tooling
jbdevprimary 401584c
feat: add bash-it and vimrc installers
jbdevprimary fbfbfbd
fix: harden PR title check and repo refs
jbdevprimary 0b2335b
fix: load installer registry before UI
jbdevprimary 805fc5e
feat: add vimrc mode flag
jbdevprimary 5b09997
feat: add get_bashed_component helper
jbdevprimary ddbf752
feat: add graceful component resolver
jbdevprimary 3a862b0
feat: unify auto-approve installs
jbdevprimary f79f0a1
refactor: centralize tool registry
jbdevprimary 8fc738d
fix: satisfy shellcheck/bashate
jbdevprimary 5340a20
feat: add dotfile linking option
jbdevprimary dcff864
feat: add default dotfiles
jbdevprimary ad0ea29
feat: add git identity flags
jbdevprimary c7dab2a
feat: add optional deps by config
jbdevprimary ad2d55c
test: add link-dotfiles coverage
jbdevprimary d6d802e
docs: update memory bank and README
jbdevprimary d1bde57
test: expand coverage and address CR
jbdevprimary f42f39d
test: add bats helpers and split CI
jbdevprimary cca5675
fix: harden installers and tests
jbdevprimary ae7879b
fix: harden extractor and ssh-agent
jbdevprimary 5366856
docs: expand security and contributing
jbdevprimary a8b9ef4
ci: add autofix and polish linting
jbdevprimary ba0365c
refactor: split POSIX bootstrap and bash installer
jbdevprimary 5d79731
fix: link dotfiles and install bash-it
jbdevprimary 12d2220
fix: harden installer and diagnostics
jbdevprimary 947e91d
fix: address linting and doppler loading
jbdevprimary 06f8233
fix: address shellcheck and bashate
jbdevprimary bd86dd5
fix: stabilize lint configuration
jbdevprimary 0ceeb82
fix: ensure docs newline and bashate args
jbdevprimary fce3378
fix: tune pre-commit exclusions
jbdevprimary a6a0f05
fix: scope bashate to shell scripts
jbdevprimary 01c711f
ci: install bats via get-bashed
jbdevprimary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| labels: | ||
| - "dependencies" | ||
| open-pull-requests-limit: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: PR Autofix | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| autofix: | ||
| if: github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: CI setup (get-bashed) | ||
| run: ./scripts/ci-setup.sh "pre_commit,shdoc,actionlint,shellcheck,bashate" | ||
| - name: Run pre-commit | ||
| run: pre-commit run --all-files || true | ||
| - name: Detect changes | ||
| id: changed | ||
| uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1 | ||
| - name: Commit fixes | ||
| if: steps.changed.outputs.any_modified == 'true' | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git add -A | ||
| git commit -m "chore: apply pre-commit fixes [skip actions]" || exit 0 | ||
| git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: CI setup (get-bashed) | ||
| run: ./scripts/ci-setup.sh "shellcheck,actionlint,bashate,pre_commit,shdoc" | ||
| - name: Pre-commit | ||
| run: ./scripts/pre-commit-ci.sh | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: CI setup (get-bashed) | ||
| run: ./scripts/ci-setup.sh "bats" | ||
| - name: Fetch Bats helpers | ||
| run: ./scripts/test-setup.sh | ||
| - name: Run tests | ||
| run: bats tests | ||
| - name: Verify install wiring | ||
| run: ./scripts/verify-install.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Dependabot Auto-merge | ||
| on: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| auto-merge: | ||
| if: github.actor == 'dependabot[bot]' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 | ||
| - uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0 | ||
| with: | ||
| merge-method: squash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Docs | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: CI setup (get-bashed) | ||
| run: ./scripts/ci-setup.sh "shdoc" | ||
| - name: Generate docs | ||
| run: ./scripts/gen-docs.sh | ||
| - name: Ensure landing page | ||
| run: | | ||
| if [[ ! -f docs/index.md ]]; then | ||
| cp docs/INDEX.md docs/index.md | ||
| fi | ||
| - name: Upload pages artifact | ||
| uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 | ||
| with: | ||
| path: docs | ||
|
|
||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: PR Title | ||
| on: | ||
| pull_request: | ||
| types: [opened, edited, synchronize, reopened] | ||
|
|
||
| jobs: | ||
| lint-title: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: Validate PR title | ||
| env: | ||
| PR_TITLE: ${{ github.event.pull_request.title }} | ||
| run: | | ||
| title="$PR_TITLE" | ||
| pattern='^(feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert)(\([a-z0-9._-]+\))?: .+' | ||
| if [[ ! "$title" =~ $pattern ]]; then | ||
| echo "Invalid PR title: $title" >&2 | ||
| echo "Expected Conventional Commit format, e.g., 'feat: add installer'." >&2 | ||
| exit 1 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Release Please | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| release-please: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0 | ||
| with: | ||
| release-type: simple | ||
| exclude-paths: | | ||
| .github/** | ||
| docs/** | ||
| .pre-commit-config.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Release Artifacts | ||
| on: | ||
| release: | ||
| types: [ published ] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: Package | ||
| run: ./scripts/package.sh dist "${GITHUB_REF_NAME}" | ||
| - name: Upload tarball | ||
| uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| upload_url: ${{ github.event.release.upload_url }} | ||
| asset_path: dist/get-bashed-${{ github.ref_name }}.tar.gz | ||
| asset_name: get-bashed-${{ github.ref_name }}.tar.gz | ||
| asset_content_type: application/gzip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| tests/lib/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| repos: | ||
| - repo: https://github.com/gitleaks/gitleaks | ||
| rev: v8.30.0 | ||
| hooks: | ||
| - id: gitleaks | ||
| - repo: https://github.com/gruntwork-io/pre-commit | ||
| rev: v0.1.30 | ||
| hooks: | ||
| - id: shellcheck | ||
| - repo: https://github.com/sirosen/check-jsonschema | ||
| rev: 0.36.1 | ||
| hooks: | ||
| - id: check-github-workflows | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v6.0.0 | ||
| hooks: | ||
| - id: detect-private-key | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| exclude: ^docs/ | ||
| - repo: https://github.com/rhysd/actionlint | ||
| rev: v1.7.10 | ||
| hooks: | ||
| - id: actionlint | ||
| - repo: https://github.com/openstack/bashate | ||
| rev: 2.1.1 | ||
| hooks: | ||
| - id: bashate | ||
| entry: bashate --ignore=E003,E006 | ||
| files: ^(bin/.*|.*\\.(sh|bash)$) | ||
| exclude: ^tests/.*\\.bats$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "release-type": "simple", | ||
| "packages": { | ||
| ".": {} | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| ".": "0.1.0" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.