Use multiline in `if` statements
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
まず、GitHub Actions の if 条件に対応する既存の recipe と、その recipe のユニットテストを見つけます。この issue にある変換前後の YAML 例を使って、複数の条件を含む単一行の式が複数行の式に書き換えられることを確認します。変換がユニットテストでカバーされ、条件が保持されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What problem are you trying to solve?
- Improve the readability of the workflows when multiple
ifconditions are used - Improve source control as single line changes are easier to reason about
What precondition(s) should be checked before applying this recipe?
The job uses multiple if conditions within a single line
Describe the situation before applying the recipe
if: ${{ !cancelled() && condition1 && condition2 && condition3 && condition4 && condition5 }}
Describe the situation after applying the recipe
if: ${{
!cancelled() &&
condition1 &&
condition2 &&
condition3 &&
condition4 &&
condition5 &&
}}
- 主要言語
- Java
- スター
- 1
- フォーク
- 9
- 平均マージ
- 45分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openrewrite/rewrite-github-actions のほかの issue
-
enhancement recipe
難易度 5/5 1週間以上 初心者へのやさしさ 48/100
openrewrite/rewrite-github-actions#195 · コメント 1 件 ·
-
recipe
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
enhancement recipe
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
openrewrite/rewrite-github-actions#128 · コメント 5 件 ·
-
Do not use `gradle/actions/setup-gradle` with `arguments`; replace with two steps対応中かも @Wanbinyu が 38 日前に担当しました。 オープンrecipe
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
openrewrite/rewrite-github-actions#100 · コメント 1 件 ·
-
recipe
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
openrewrite/rewrite-github-actions#90 · リアクション 1 件 ·
openrewrite/rewrite-github-actions の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefix対応中かも @ItsDeadlyProgrammer が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
appsmithorg/appsmith#42471 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
code-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
carlos-emr/carlos#5258 ·
メンテナーはふだん 1 日以内に返信