[aw] Primer Branding reported incomplete result

未关闭
#229 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先运行 npm test 并检查 test/workflow.test.js 中失败的六条断言,然后通过 src/js/workflow.js 及其相关数据追踪生成的指导内容。预先存在的 workflow 测试失败得到解决、完整测试套件通过,并且 Primer Branding workflow 能够生成可合并的结果,即表示完成。

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

描述

agentic-workflows
Workflow Failure

Workflow: Primer Branding
Branch: main
Run: https://github.com/githubnext/gh-aw-wizard/actions/runs/33463263999

[!WARNING]
Task Could Not Be Completed: The agent reported that the task could not be performed due to an infrastructure or tool failure.

Reasons:

  • Found one on-brand fix (hardcoded orange rgba(255,112,67) in .landing-glow gradient replaced with a Primer orange-scale-derived CSS variable), but npm test fails on main HEAD itself (6 pre-existing workflow.test.js assertion failures unrelated to styling) before any of my edits. Workflow rules forbid opening a PR when tests fail, so I reverted the CSS change and cannot submit it.

    Verified via git stash that the same 6 test failures occur on unmodified main (test/workflow.test.js, generateAgentPrompt suite: boundary-constraint, duplicate-prevention, skip-if-match schema, max/expires, protected-files, PR-spam assertions all fail — actual output is a generic "Create a draft PR..." string instead of expected guidance text, indicating a pre-existing bug/regression in src/js/workflow.js or its data, not caused by CSS).

Primer-brand audit findings (not blocked by test issue, for reference):

  • src/styles/style.css line ~1557: .landing-glow radial-gradient used a bare hardcoded rgba(255, 112, 67, 0.24) for the "warm" glow stop, while its sibling stops in the same gradient correctly reference CSS custom properties (--accent-blue-rgb, --accent-green-rgb). Fix: added --thermo-warm-rgb: 240, 138, 58 (derived from Primer's --base-color-scale-orange-3 = #f08a3a) and referenced it via rgba(var(--thermo-warm-rgb), 0.24), matching the site's existing token-driven pattern. This was reverted since it could not be shipped as a PR under the test-gate rule.
  • No other significant deviations found: color variables elsewhere already fall back to Primer color tokens (--color-canvas-default, --color-fg-default, etc.), typography uses system font stacks consistent with Primer's brand type approach for lightweight sites, and spacing uses rem-based scale consistently.

Recommend a maintainer first fix the pre-existing test/workflow.test.js failures (unrelated to this workflow's scope) before this branding pass can produce a mergeable PR.

This is a structured incompletion signal (report_incomplete), not a real task outcome. Any other safe outputs emitted alongside this signal (e.g., comments) describe the failure state, not a completed review or action.

Action Required

Assign this issue to an agent to debug and fix the issue.

Debug with any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/githubnext/gh-aw-wizard/actions/runs/33463263999
Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

[!TIP]

Stop reporting this workflow as a failure

To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from Primer Branding · 43 AIC · ◷

  • expires on Sep 8, 2026, 2:44 AM UTC
主要语言
JavaScript
星标
6
派生
1
平均合并
22 小时 10 分钟
30 天内合并 PR
10

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

githubnext/gh-aw-wizard 的其他 Issue

查看 githubnext/gh-aw-wizard 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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