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

Action cannot match an existing same-repository sync PR

オープン 初心者向け
#85 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

コミット 702c4eadefe175a208290a99c36e7f4ac1390e53 の action/action.yml にある該当する比較を確認し、その後、レスポンスフィールドを確認するために文書化されている gh pr list コマンドを実行してください。owner login とリポジトリ名を別々に使用するようにリポジトリのマッチングを更新し、既存のオープンな frog/sync の pull request が存在しないものとして扱われるのではなく、見つかることを検証してください。

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

説明

Expected Behavior

When frog/sync already has an open pull request, the Action finds and updates that pull request.

Current Behavior

The Action requests headRepository and headRepositoryOwner from gh pr list, then compares .headRepository.nameWithOwner with the full repository name.

The GitHub CLI exposes .headRepository.name, but nameWithOwner is an empty string in this response. The comparison rejects the existing pull request. Later steps can then treat the pull request as absent.

Possible Solution

Compare both fields that the CLI populates:

.headRepositoryOwner.login == $owner and
.headRepository.name == $name

Derive $owner and $name separately from GITHUB_REPOSITORY.

Minimal Reproducible Example

For a repository with an open pull request, run:

gh pr list \
    --head frog/sync \
    --state open \
    --json number,headRepository,headRepositoryOwner

The repository object has this shape:

{
  "headRepository": {
    "name": "repo",
    "nameWithOwner": ""
  },
  "headRepositoryOwner": {
    "login": "owner"
  }
}

The current nameWithOwner == "owner/repo" condition is therefore false.

Context

The affected comparison is in action/action.yml at commit 702c4eadefe175a208290a99c36e7f4ac1390e53.

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

wevm/frog のほかの issue

wevm/frog の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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