github / github/app

create_issue requires a linked project account despite explicit repo_full_name

未关闭
#3,283 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
2.1k
派生
153
PR 合并指标
30 天内没有已合并 PR

描述

[Filed by Copilot on behalf of @bghgary]

### Short summary

The app-native `create_issue` tool requires the current project to have a linked GitHub account even when `repo_full_name` explicitly identifies the target repository.

### Affected version or release

GitHub Copilot app 1.1.14 (`0d498e8`)

### Installation context

Windows x86_64. The folder-project control had no linked repository or account; the GitHub-backed control used the same default signed-in GitHub account.

### What happened?

From a folder project, calling `create_issue` with `repo_full_name: bghgary/probe-241-does-not-exist` fails before repository lookup:

> This project's GitHub account is no longer available. Please re-link the project to a GitHub account before creating an issue.

The identical nonexistent target from a GitHub-backed project reaches `https://api.github.com/repos/bghgary/probe-241-does-not-exist/issues` and returns the expected 404. Neither control can create an artifact.

### Steps to reproduce

1. Add a folder project that is not linked to a GitHub repository.
2. Start a local session in that project.
3. Call `create_issue` with an explicit `repo_full_name` for an intentionally nonexistent repository.
4. Observe the project-account error instead of a repository-not-found response.
5. Repeat the same call from a GitHub-backed project and observe that the explicit target reaches the GitHub API.

### Expected behavior

When `repo_full_name` is supplied, `create_issue` should use the signed-in account that can access that target. The current project's GitHub account association should only be required when the destination must be inferred.

### Additional context

The folder project's database row has no `github_account_id`, while the app has a valid default signed-in account. The native handler returns in 0 ms without issuing an API request; the linked-project control reaches the explicit target in 408 ms.

`update_pull_request` and `reply_and_resolve_review_thread` show the same project-account precheck with explicit targets, suggesting a shared resolver. This report remains scoped to the verified `create_issue` failure.

Authenticated `gh` remains a working fallback.

贡献指南

打开贡献指南

调研方向

从 app-native create_issue 入口开始,跟踪显式 repo_full_name 在 project-account 预检查之前是如何解析的。将该路径与 update_pull_request 和 reply_and_resolve_review_thread 所描述的行为进行比较,然后验证显式目标使用已登录账户,而推断出的目的地仍需要项目关联。

由索引模型根据 Issue 内容生成。

评估

技术栈
github
领域
api, authentication
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。