swift-release-notes

swift-release-notes 是一个 Swift 脚本,用于创建软件包更新的发行说明链接列表。

运行 swift release-notes 会执行 swift package update --dry-run 来查找软件包更新,并为这些更新创建发行说明 URL。

(注意,以 swift- 为前缀命名的可执行文件可以通过 swift ... 调用,使其看起来像 swift 子命令。)

$ swift release-notes ~/Projects/SPI/spi-server

(... progress output removed)

Release notes URLs (updating from):
https://github.com/vapor/fluent-kit/releases (1.19.0)
https://github.com/apple/swift-llbuild/releases (main)
https://github.com/vapor/vapor/releases (4.54.0)
https://github.com/apple/swift-package-manager/releases (main)
https://github.com/vapor/async-kit/releases (1.11.0)
https://github.com/apple/swift-nio-ssl/releases (2.17.1)
https://github.com/apple/swift-tools-support-core/releases (main)
https://github.com/apple/swift-nio-transport-services/releases (1.11.3)
https://github.com/apple/swift-driver/releases (main)
https://github.com/apple/swift-nio/releases (2.36.0)

安装

使用 Mint

$ mint install SwiftPackageIndex/ReleaseNotes

从源码安装

您也可以通过克隆此项目并运行 make install (macOS 11 或更高版本 | Linux) 来从源码构建和安装。

手动运行以下命令来手动构建和安装

$ git clone https://github.com/SwiftPackageIndex/ReleaseNotes.git
$ cd ReleaseNotes
$ make install