[Core feature request] Support operators for type-safe expressions
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the type-safe expr API and the linked GitHub Actions expressions operator documentation. Compare the proposed explicit functions, operator overloading, and textual input for unsupported contexts such as step outcomes and matrix values; done means the API can represent the example expression without falling back to plain strings.
索引モデルが issue の本文から書いたものです。
説明
What feature do you need?
https://docs.github.com/en/actions/learn-github-actions/expressions#operators
It would be nice if you could construct more complex expressions using operators with the type-safe expr API.
One way would be to model them as explicit functions like expr { and(always(), success()) } to get ${{ always() && success() }}.
An even nicer way would of course be if operator overloading is used, so that you can actually do expr { always() && success() }} instead.
Those ways also need to support some way of textual input to support not yet supported contexts like step outcome, or matrix values.
Do you have an example usage?
if: always() && (steps.execute_action.outcome == 'success')
Is there a workaround for not having this feature? If yes, please describe it.
Work-around is to not use the type-safe API, but simple strings.
- 主要言語
- Kotlin
- スター
- 664
- フォーク
- 30
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 5
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
typesafegithub/github-workflows-kt のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
typesafegithub/github-workflows-kt#2389 · コメント 7 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
typesafegithub/github-workflows-kt#2368 · コメント 1 件 ·
-
problem
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
typesafegithub/github-workflows-kt#2348 · コメント 2 件 ·
-
Use a lib to interact with GitHub対応中かも @LeoColman が 519 日前に担当しました。 オープンoperational
typesafegithub/github-workflows-kt#1884 · 担当者 1 名 ·
-
problem
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
typesafegithub/github-workflows-kt#1864 · コメント 5 件 ·
typesafegithub/github-workflows-kt の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
T31n/YagniLauncher#1051 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Accepted Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ankidroid/Anki-Android#22114 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solana-foundation/pay-kit#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100