Refactor *VersionHelpers to use an object
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
まず ios_version_helper と android_version_helper を読み、次にそれらの呼び出し元と Fastlane::Helper::Android エントリポイントをたどります。既存のバージョンデータと操作のための一貫した Version オブジェクト API を定義し、呼び出し元とドキュメントを更新して、現在のバージョニング動作が維持されていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Today ios_version_helper and android_version_helper consist of freeform, module-static methods which take various and heterogeneous types of parameters depending on the method (sometimes a String for versionName, sometimes a Hash, etc)
It would make way more sense, and make the code way easier to understand, if instead of freeform methods, we created a class Version which would expose the appropriate instance properties (e.g. for Android, name and code) and instance methods to manipulate those versions, inspired by Gem::Version and its methods.
This would make the implementation way easier to understand and document (not having to repeat the parameter type documentation methods taking similar inputs), but also clearer at call-site and more idiomatic.
Some ideas / inspiration for possible API, e.g. for the Android one in the Fastlane::Helper::Android module:
class Version
# [String] Doc here
attr_reader :name
# [Int] Doc here
attr_reader :code
# @return [Version] Next release version
def next_release
…
end
…
end
Or, alternatively, something like:
class Version
attr_reader :major, :minor, :hotfix
attr_reader :is_alpha?
attr_reader :suffix
attr_reader :code
# @return [String] The versionName. `"alpha-major.minor.patch-suffix"` if `is_alpha?`, `"major.minor.patch-rc-suffix"` otherwise.
def name
(sprefix, *ssuffixes) = is_alpha? ? ["alpha", suffix] : [nil, "rc", suffix]
[sprefix, "#{major}.#{minor}.#{patch}", *ssuffixes].compact.join('-')
end
…
# And a lot of instance methods to bump versions up and down, etc
end
- 主要言語
- Ruby
- スター
- 32
- フォーク
- 7
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wordpress-mobile/release-toolkit のほかの issue
-
`GitHelper.checkout_and_pull` swallows git errors and reports failure only via its return valueオープンenhancement release-toolkit
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
wordpress-mobile/release-toolkit#756 ·
メンテナーはふだん 1 日以内に返信
-
bug release-toolkit ruby
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
wordpress-mobile/release-toolkit#740 ·
メンテナーはふだん 1 日以内に返信
-
release-toolkit
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
wordpress-mobile/release-toolkit#737 ·
メンテナーはふだん 1 日以内に返信
-
release-toolkit
難易度 5/5 1週間以上 初心者へのやさしさ 48/100
wordpress-mobile/release-toolkit#736 ·
メンテナーはふだん 1 日以内に返信
-
Make `create_release_backmerge_pull_request` support squash strategy再び着手できるかも @mokagio が 624 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
wordpress-mobile/release-toolkit#637 · コメント 1 件 · 担当者 3 名 ·
メンテナーはふだん 1 日以内に返信
wordpress-mobile/release-toolkit の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
TarteelAI/quranic-universal-library#1111 ·
メンテナーはふだん 1 日以内に返信
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every command対応中かも @k4kratik が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sachincool/cruft#4 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
auth0/ruby-auth0#840 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
riscv/riscv-unified-db#2859 ·
メンテナーはふだん 2 日以内に返信
-
agent-driven deployment documentation future releases nice to have
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信