githubnext / githubnext/gh-aw-test

Suggested test: copilot/submit-pull-request-review-self-authored-fallback

已关闭
#8,653 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
suggested new test
主要语言
Shell
星标
8
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

## Motivation

Link to the gh-aw PR: github/gh-aw#47400 — fix: downgrade REQUEST_CHANGES→COMMENT on self-authored PRs in safe-outputs PR review

When the reviewing identity matches the PR author, GitHub rejects `REQUEST_CHANGES` with 422 "Can not request changes on your own pull request". The fix ensures reviewer workflows fall back to `COMMENT` in this case. Previously the fallback was bypassed when another 422 ("Line could not be resolved") occurred first. There is no regression test for this scenario.

## Proposed test

- **Workflow file**: `test-copilot-submit-pull-request-review-self-authored-fallback.md`
- **Trigger**: `workflow_dispatch`
- **Engine**: copilot
- **Safe output**: `submit-pull-request-review`
- **Variant**: standard

## Minimal test prompt sketch

Dispatch a review against a pull request authored by the same bot identity running the workflow. Ask the agent to request changes. The test passes if the review is successfully submitted (as a COMMENT) rather than failing with a 422 error.

## New fixtures or secrets needed

Requires a PR in `githubnext/gh-aw-test` authored by the same bot/app identity that submits the review. This may require a dedicated fixture PR or a test-setup step that creates such a PR.

## Notes

The existing `test-copilot-submit-pull-request-review.md` and `test-copilot-submit-pull-request-review-locked.md` both use PRs authored by a different identity. A self-authored PR fixture is the key missing element.

> [!WARNING]
>
> Firewall blocked 1 domain
>
> The following domain was blocked by the firewall during workflow execution:
>
> - `awmgmcpg`
>> To allow these domains, add them to the `network.allowed` list in your workflow frontmatter:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "awmgmcpg"
> ```
>
> See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information.
>
>

> Generated by [🔍 Suggest New E2E Tests](https://github.com/githubnext/gh-aw-test/actions/runs/29994494559) · sonnet46 22.2 AIC · ⌖ 5.72 AIC · ⊞ 5.7K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-test%2Fsuggest-new-e2e-tests%22&type=issues)

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with test-copilot-submit-pull-request-review.md and test-copilot-submit-pull-request-review-locked.md, then create test-copilot-submit-pull-request-review-self-authored-fallback.md using the proposed workflow settings. Investigate how githubnext/gh-aw-test supplies PR fixtures and bot identity credentials. Done means a workflow-dispatched review against a self-authored PR succeeds as COMMENT instead of failing with a 422.

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

评估

技术栈
github-actions
领域
ci-cd, testing-qa
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

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