Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Use multiline in `if` statements

オープン
#130 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions
領域
ci-cd, devops

調査の方向性

まず、GitHub Actions の if 条件に対応する既存の recipe と、その recipe のユニットテストを見つけます。この issue にある変換前後の YAML 例を使って、複数の条件を含む単一行の式が複数行の式に書き換えられることを確認します。変換がユニットテストでカバーされ、条件が保持されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

recipe

What problem are you trying to solve?

  • Improve the readability of the workflows when multiple if conditions 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openrewrite/rewrite-github-actions のほかの issue

openrewrite/rewrite-github-actions の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。