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

github.rest.actions.createWorkflowDispatch() calls deprecated API

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github, github-actions, typescript
領域
api, ci-cd

調査の方向性

Start at the github.rest.actions.createWorkflowDispatch() entry point used in the actions/github-script workflow step, then review the linked GitHub REST API version guidance. Trace how this method is exposed and determine what update removes the deprecation warning while preserving workflow dispatch behavior; done means the workflow runs without that warning.

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

説明

We have a workflow step like this:

      - name: Call validation workflow
        uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
        with:
          github-token: TOKEN
          script: |
            await github.rest.actions.createWorkflowDispatch({
              owner: OWNER,
              repo: REPO,
              workflow_id: WORKFLOW_ID,
              ref: 'master'
            });

When running it, we get the following warning in the log:

[@octokit/request] "POST https://api.github.com/repos/OWNER/REPO/actions/workflows/WORKFLOW_ID/dispatches" is deprecated. It is scheduled to be removed on Fri, 10 Mar 2028 00:00:00 GMT. See https://docs.github.com/en/rest/about-the-rest-api/api-versions

Is there anything we could update to use the new API version?

主要言語
TypeScript
スター
5k
フォーク
586
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

actions/github-script のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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