Skip to content

Commit d7f12cb

Browse files
authored
Merge pull request #2 from CodeBoarding/feat/mermaid-architecture-diff
Mermaid PR architecture-diff action (level-1 default, nested opt-in)
2 parents d7e3ba3 + 934369a commit d7f12cb

15 files changed

Lines changed: 2398 additions & 614 deletions

‎.codeboarding/static_analysis.pkl‎

-108 Bytes
Binary file not shown.

‎.github/workflows/example-usage.yml‎

Lines changed: 0 additions & 126 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Move major version tag
2+
3+
# Marketplace actions are pinned by consumers as `@v1`, a *moving* major tag that
4+
# should always point at the newest v1.x.x release. This re-points it on every
5+
# published (non-pre) release, e.g. publishing v1.4.2 moves `v1` -> v1.4.2.
6+
#
7+
# First release is still manual (cut a `vX.Y.Z` release once); after that `vX`
8+
# is maintained here automatically.
9+
10+
on:
11+
release:
12+
types: [published]
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
major-tag:
19+
if: github.event.release.prerelease == false
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.event.release.tag_name }}
25+
26+
- name: Re-point major tag at ${{ github.event.release.tag_name }}
27+
env:
28+
TAG: ${{ github.event.release.tag_name }}
29+
run: |
30+
set -euo pipefail
31+
ver="${TAG#v}"
32+
if ! printf '%s' "$ver" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
33+
echo "::notice::Tag '$TAG' is not a clean vMAJOR.MINOR.PATCH release (prerelease/suffix); skipping major-tag move."
34+
exit 0
35+
fi
36+
major="v${ver%%.*}"
37+
git config user.name "github-actions[bot]"
38+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39+
git tag -fa "$major" -m "Update ${major} to ${TAG}"
40+
git push origin "refs/tags/${major}" --force
41+
echo "::notice::${major} now points at ${TAG}"

‎.github/workflows/test.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
unittest:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.13'
21+
- name: Run unit tests (stdlib only)
22+
run: python -m unittest discover -s tests -v
23+
24+
lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
30+
- uses: actions/setup-go@v5
31+
with:
32+
go-version: '1.22'
33+
- name: Install shellcheck
34+
run: sudo apt-get update && sudo apt-get install -y shellcheck
35+
- name: Install actionlint
36+
run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.7
37+
- name: Run actionlint
38+
run: actionlint
39+
- name: Run shellcheck
40+
run: shellcheck scripts/run_local.sh

‎.gitignore‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
test_response.json
33
test_codeboarding/
44

5+
# Local test harness output (scripts/run_local.sh)
6+
.cb-local/
7+
8+
# Dependencies
9+
node_modules/
10+
11+
# Python generated files
12+
__pycache__/
13+
*.py[cod]
14+
15+
# CodeBoarding generated cache/log artifacts
16+
.codeboarding/static_analysis.pkl
17+
.codeboarding/static_analysis.sha
18+
.codeboarding/logs/
19+
.codeboarding/health/*
20+
!.codeboarding/health/
21+
!.codeboarding/health/health_report.json
22+
523
# Environment files
624
.env
725

0 commit comments

Comments
 (0)