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

Issues workflow fails on every opened issue because issues.cjs is called without its arguments

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, node.js, typescript
領域
ci-cd, tooling

調査の方向性

Read .github/workflows/issues.yaml and .github/scripts/issues.cjs, then compare the script’s assumptions with .agents/skills/opening-issues/SKILL.md and the current issue templates. Verify the workflow behavior by opening and reopening a test issue; done means no failed Issues run and no unwanted title change, or that the obsolete workflow and script are removed.

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

説明

Area: Infrastructure Bug Difficulty: Low Good First Issue Priority: Low

The "Issues" workflow fails on every issue that is opened or reopened. The workflow calls require('./.github/scripts/issues.cjs')() with no arguments. The module's default export forwards its args parameter to addPriorityAndDifficulty({ context, github }), so the destructure throws TypeError: Cannot destructure property 'context' of 'undefined' before any API call. All 195 runs GitHub still retains failed, from 2025-09-16 to today. The call has had no arguments since the script was moved out of the workflow in Feb 2024. Every new issue therefore adds a red run to the Actions tab and sends a failure notification. A plain fix would also do the wrong thing. The issue templates no longer contain the Priority and Estimated Difficulty sections the script parses, so it would call addLabels with an empty list. .agents/skills/opening-issues/SKILL.md says titles carry no [Bug]:-style prefix, yet the script would add one to every title, and on reopened it would add a second ([Bug]: [Bug]: …).

Where

.github/workflows/issues.yaml:16-20:

- name: Run Script
  uses: actions/github-script@v9
  with:
    script: |
      require('./.github/scripts/issues.cjs')()

.github/scripts/issues.cjs:4 and :51-54:

function addPriorityAndDifficulty({ context, github }) {
// ...
module.exports = (args) => {
  addPriorityAndDifficulty(args);
  addLabelToTitle(args);
};

Reproduce

  1. Open any issue on the repository.
  2. Open the triggered "Issues" run (gh run list --workflow=Issues --limit 1) and read its log.

Actual: ##[error]Unhandled error: TypeError: Cannot destructure property 'context' of 'undefined' as it is undefined. (for example, run 37676175978).
Expected: either the workflow does something useful and succeeds, or it does not exist.

Tests

No unit or Playwright test can run a GitHub workflow. Verify the fix by opening and then reopening a test issue, and confirming that no "Issues" run fails and that the title is unchanged.

Suggested fix

Delete .github/workflows/issues.yaml and .github/scripts/issues.cjs. The templates no longer feed the label step, and the title step contradicts the documented title convention. If automatic labelling is still wanted, reimplement it against the current templates. Pass { context, github } from the workflow, await both API calls, and skip addLabels when there is nothing to add.

主要言語
TypeScript
スター
119
フォーク
19
平均マージ
1日 2時間
マージ済み PR(30日)
56

環境構築

はじめの一歩

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

DouglasNeuroInformatics/OpenDataCapture のほかの issue

DouglasNeuroInformatics/OpenDataCapture の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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