Skip to content

docs: add Swift Package Index badges to README - #57

Merged
futamura merged 1 commit into
developfrom
docs/spi-badges
Aug 20, 2026
Merged

docs: add Swift Package Index badges to README#57
futamura merged 1 commit into
developfrom
docs/spi-badges

Conversation

@futamura

Copy link
Copy Markdown
Owner

目的

Swift Package Index への登録 (project memory の task 32) が完了し、package page と badge endpoint が稼働したため、README に SPI badge を追加する。

あわせて、役割が重複するハードコードの Language: Swift 6 badge を削除する。

主要変更点

README.md の badge 行のみ (+2 / -1)。

  • ![Language](https://img.shields.io/badge/Language-Swift%206-orange.svg) を削除
  • SPI の swift-versions badge を追加 (現在値 Swift: 6.3 | 6.2)
  • SPI の platforms badge を追加 (現在値 Platforms: iOS)

いずれも link 先は https://swiftpackageindex.com/futamura/Fluidable

削除した badge はハードコードで、Swift version が変わるたび手で直す必要があった。SPI badge は index から現在値を解決するため追従が不要になる。既存の CI / codecov / Hound badge は変更していない。

Verification

  • git diff --check exit 0
  • diff は 1 行削除 / 2 行追加。既存 3 badge は context 行のまま無変更
  • README から抽出した badge 5 URL がすべて HTTP 200 + image/svg+xml を返すことを確認 (CI - passing / codecov / Reviewed by: Hound / Swift: 6.3 | 6.2 / Platforms: iOS)
  • markdown 構造は badge 5 個すべて [![alt](img)](link) 形式。link 無しの bare badge はゼロ
  • GitHub markdown API で描画確認。単一 <p> 内に 5 個の <a><img> となり横並び 1 行で崩れない
  • GitHub の実描画経路である camo proxy 経由でも SPI badge 2 個が HTTP 200 + 正しい内容を返すことを確認

UI 変更なし。Swift / Storyboard / Auto Layout / asset / font に触れないため Simulator 確認は不要。

既知の制約

Package.swift の platforms は .iOS(.v15) のみのため、SPI の compatibility matrix と platforms badge は iOS のみを示す。UIKit 依存 library として正常な結果。

swiftpackageindex.com の HTML page は bot 保護により WebFetch / curl から HTTP 403 を返すため、page の存在確認は api/packages/futamura/Fluidable/badge endpoint 経由で行った。

Hound badge と .hound.yml の要否判断は本 PR の scope 外 (project memory の task 27 に残す)。

Replace the hardcoded Language badge with the Swift Package Index
swift-versions and platforms badges. The SPI badges resolve current
values from the index (Swift 6.3 | 6.2, Platforms iOS), so they no
longer need manual updates when the toolchain moves.
@futamura
futamura merged commit e977636 into develop Aug 20, 2026
1 check passed
@futamura
futamura deleted the docs/spi-badges branch August 20, 2026 13:42
futamura added a commit that referenced this pull request Aug 20, 2026
Hound is not installed on this repository: the only webhook is Codecov,
and PRs #43-#57 show no Hound review, comment, or check. The README badge
therefore advertised a review that never runs.

.hound.yml dates from the initial commit and is referenced by nothing.
SwiftLint runs through the Fastlane lint lane against .swiftlint.yml.
@futamura futamura mentioned this pull request Aug 21, 2026
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