Action cannot match an existing same-repository sync PR
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
調査の方向性
コミット 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wevm/frog のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
frog log rejects Windows repository roots対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
GitHub App token fallback misses recent issues in large repositories対応中かも @blalor が 57 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
feat: allow local log entries to select an issue form対応中かも @emmajam が 72 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
似ている issue
-
Endpoint links in the tag operations list are below the 24px target size対応中かも @AdzerKI が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ai-driven-qa bug Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
linagora/twake-tasks#435 ·
メンテナーはふだん 1 日以内に返信
-
bug domain: database priority: p1 Stellar Wave
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
StellarState/SS-backend#632 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A2A audit timestamps end in +00:00Z (invalid ISO 8601)対応中かも @O1sumitkumar が今日担当しました。 オープンbug good first issue help wanted python
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`cf complete zsh >> .zshrc` fails on vanilla zsh再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cloudflare/cf#340 ·
メンテナーはふだん 1 日以内に返信