Skip to content

ci(github-actions): Phase 1 advisory workflows (PR title lint / SwiftLint+SwiftFormat / docs link check) - #147

Merged
wei18 merged 2 commits into
mainfrom
feat/gh-actions-phase1
May 26, 2026
Merged

wei18 merged 2 commits into
mainfrom
feat/gh-actions-phase1

Conversation

@wei18

@wei18 wei18 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

First slice of merged backlog 「GitHub Actions adoption + GH Actions review agents on PR」(foundations §Backlog, 2026-05-26).

Phase 1 = no GitHub App bot identity needed. Phase 2 (review agents + meetings/ index auto-update) blocked on bot identity entry (methodology §Backlog).

3 new workflows

File Trigger Purpose
pr-metadata.yml pull_request types Conventional Commits PR title lint via `amannn/action-semantic-pull-request@v5`
lint.yml pull_request on `**.swift` SwiftLint strict + SwiftFormat lint (latter `continue-on-error: true` per baseline) on changed files via mise
docs-link-check.yml pull_request on `docs/` + `meetings/` Lychee link check via `lycheeverse/lychee-action@v2`

5 files, +200 LOC. All YAML lint-clean. Actions pinned to current majors.

swiftformat baseline note

Repo currently has ~204/244 files non-compliant. `lint.yml` SwiftFormat step is `continue-on-error: true` until either (a) mass-format baseline lands OR (b) `.swiftformat` config relaxes rules. Parallel PR in flight implementing option (b) — will flip this to hard-fail in a follow-up commit.

Advisory mode

Not required-status-checks. Workflows surface results but don't block merge until user enables branch protection (separate user-owned backlog entry).

Closes

Test plan

  • First PR after merge — pr-metadata passes / lint mirrors lefthook / lychee surfaces broken links
  • If Lychee 403s on apple.com → add one-line `.lycheeignore`

🤖 Generated with Claude Code

wei18 added 2 commits May 26, 2026 13:25
Adds three GitHub Actions workflows that run on PRs as advisory status
checks (not yet required) to cover gaps that Xcode Cloud single-track CI
does not address:

- pr-metadata.yml: PR title lint (Conventional Commits) via
  amannn/action-semantic-pull-request@v5.
- lint.yml: SwiftLint (strict) + SwiftFormat (advisory) on changed Swift
  files, using mise-pinned tool versions for parity with lefthook and
  Xcode Cloud ci_post_clone.sh. SwiftFormat is continue-on-error until
  the format baseline lands.
- docs-link-check.yml: lychee broken-link scan over docs/ and meetings/.

Phase 2 items (review agents, meetings index auto-update, required
status checks, branch protection) deferred — those need a bot identity
plus user-owned repo settings.

See meetings/2026-05-26_gh-actions-phase1.impl-notes.md for design
decisions, pin rationale, and open questions.

Refs foundations.md §Backlog "GitHub Actions(v1 暫不採用)" /
"GitHub Action agents on PR" entries.
Cross-reference for §4 CI readers: 3 advisory workflows landed in
commit 886489c covering PR metadata, swift lint mirror, and docs link
check. Branch protection / required-status promotion deferred to
Phase 3 (user-owned).
@wei18
wei18 merged commit 23789e4 into main May 26, 2026
1 of 3 checks passed
@wei18
wei18 deleted the feat/gh-actions-phase1 branch May 26, 2026 05:59
wei18 added a commit that referenced this pull request May 26, 2026
…ollow-up) (#151)

PR #149 landed `.swiftformat` option (b) relaxed-baseline config.
244/244 files now compliant with the pinned ruleset, so the advisory
`continue-on-error: true` guard from PR #147 is no longer needed.

Removes the guard + updates the inline comment to reference the new
state + escape hatch for future broad-violations regressions.

Co-authored-by: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant