Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/lain-health.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lain architecture health

on:
pull_request:
branches: [master]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Trigger health checks for main PRs

When a PR targets main—the repository's active integration branch—this filter prevents the workflow from starting, so it never emits its architecture status or sticky comment. Existing CI workflows explicitly cover main (for example, .github/workflows/ci.yml:4-6); add main to this filter (or remove the target-branch restriction) so the new check runs on normal PRs.

Useful? React with 👍 / 👎.


Comment on lines +3 to +6
permissions:
# The action posts a commit status and a sticky PR comment; the
# default GITHUB_TOKEN is read-only.
statuses: write
pull-requests: write
Comment on lines +7 to +11

jobs:
lain-health:
name: Lain architecture health badge
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: spuentesp/lain/.github/actions/lain-health-badge@v0.7.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
min-fan-out: '15'
# auto-detect: pyproject.toml -> pylsp, package.json -> typescript-language-server
lsp-languages: 'auto'
Loading