ios-osushi / release-subscriptions Goto Github PK
View Code? Open in Web Editor NEWGitHub 上のリポジトリのリリース情報を定期的に自動で取得し、Slack へ通知するツール
License: MIT License
GitHub 上のリポジトリのリリース情報を定期的に自動で取得し、Slack へ通知するツール
License: MIT License
単体テストの testYamlSortOrderChecking()
で購読リストのバリデーション(ソート順が正しいかどうか)を実行している。
単体テストの失敗時に原因や対応をわかりやすくするため、PR にコメントするようにしたい。
Danger のようなツールを導入しなくても、既存のワークフローにステップを追加するだけで実現できそう。
現状だと CLI ツールと購読リスト( ReleaseSubscriptions.yml )・ワークフローがひとつのリポジトリで管理されている。
CLI ツールを使い回せるようにするため、購読リストやワークフローを別リポジトリで管理したい。
購読リストのパスを渡すオプションを付ける必要があるかも。
この CLI ツールが優秀過ぎるから、Android のリリース情報とかも通知したいという欲があるw
現状だと購読しているリポジトリを YAML で管理しているため、行数がかさばって俯瞰しにくい。
表形式で記述して俯瞰しやすくしたい。
YAML でなく Swift ファイルで管理する。
移植性は下がるが、直接操作できるメリットもある。
Before
repositories:
- kind: primary
case: releases
name: Swift
owner: apple
repo: swift
- kind: primary
case: releases
name: Swift Algorithms
owner: apple
repo: swift-algorithms
After
let repositories: Repository = [
(.primary, .releases, "Swift", "apple", "swift"),
(.primary, .releases, "Swift Algorithms", "apple", "swift-algorithms"),
]
表形式とまでは呼べないが、YAML よりは俯瞰しやすい。
記事の作成時に Slack の通知を遡るのが大変。1週間分のリリース情報をまとめてみれたら楽になる。
Fetcher
や SlackNotifier
は並列化できているのに対し、 DifferenceComparator
と FileHelper
は並列化できていない。
量的に並列実行しても実行時間が大幅に短縮するわけではなさそうだが、やってもよさそう。
apple
Org 傘下の一部の Swift プロジェクトリポジトリが swiftlang
Org 傘下へと移行することに伴って、ReleaseSubscriptions.yml
もそれに追従する。ただ、しばらくは GitHub 側のリダイレクトによって耐えられるだろう。
swiftlang
Org 傘下への移行スケジュールは以下の通り:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.