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

Allow to specify `named-values` **in addition** to `allowed-values` for `enum` types

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

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

評価

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

調査の方向性

No files or tests are named. Start by locating the enum handling and JAR binding-generation entry points, then trace how allowed-values become generated constants. Done means supporting named-values alongside allowed-values, including mixed named and unnamed entries, without duplicate generated names or compilation failures.

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

説明

Currently we only generate constant values for enums from their content.
If you have quite long or awkward possible values like the terms of use URL of the setup-gradle action, the names are a bit unhandy.

Additionally, if you have an enum with values that calculate to the same name like

inputs:
  some-enum:
    type: enum
    allowed-values:
      - foo-bar
      - foo_bar

which both evaluate to FooBar, you get a 500 internal server error as soon as you request the JAR, because a compile error will happen when trying to compile the bindings.

The latter could maybe also be solved by some logic to make the names unique,
but it could also be solved by this feature request which means, that you can give explicit names for enum values.

I think it makes sense to allow unnamed and named in the same element.

主要言語
Kotlin
スター
69
フォーク
4
平均マージ
7日 3時間
マージ済み PR(30日)
7

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

typesafegithub/github-actions-typing のほかの issue

typesafegithub/github-actions-typing の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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