[workflow-editor] Trim duplicated guideline text in workshop-author.md

已关闭 适合新手
#4,246 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, javascript

调研方向

同时阅读 .github/workflows/workshop-author.md 和 .github/workflows/guidelines.md,以核实重复的部分以及现有的应用共享指南的指示。issue 要求将重复的列表替换为指向共享指南的引用;使用 gh aw compile 重新生成 .github/workflows/workshop-author.lock.yml。当 workflow 引用共享规则且 lock 文件已重新生成时,即为完成。

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

描述

agentic-workflows documentation workflow-editor

[!CAUTION]
Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.

Protected files: .github/workflows/workshop-author.lock.yml, .github/workflows/workshop-author.md

What changed

.github/workflows/workshop-author.md restated two whole rule sections verbatim
from .github/workflows/guidelines.md — the "Codespaces-first environment"
bullet list and the alert-callout formatting rules — even though the workflow
already instructs the agent to "read .github/workflows/guidelines.md and
apply it while authoring" earlier in the same file.

Why

Keeping two copies of the same rules risks drift: if guidelines.md is
updated (e.g. the alert-level ceiling or gh delay rule changes), the
duplicated copy in workshop-author.md would silently go stale. The shared
guidelines file is the single source of truth for authoring workflows.

How

Replaced the duplicated bullet lists in workshop-author.md with short
pointers back to the relevant sections of guidelines.md, which the agent
already has loaded in context. No behavior change — the agent still applies
the exact same rules, just from one source instead of two.

Files changed

  • .github/workflows/workshop-author.md — trimmed duplicated sections
  • .github/workflows/workshop-author.lock.yml — regenerated via gh aw compile

This keeps the workflow source lean and Skills-like: direct instructions with
a single authoritative reference, rather than restating rules the agent
already read.

Generated by ✂️ Workflow Skills Editor · copilot · auto · 76.5 AIC · ⌖ 9.99 AIC · ⊞ 9.6K · ◷

  • expires on Oct 7, 2026, 7:44 AM UTC

[!NOTE]
This was originally intended as a pull request, but the git push operation failed.

Original error: The process '/usr/bin/git' failed with exit code 1

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

Create the pull request manually
# Download the artifact from the workflow run
gh run download '37430925381' -n agent -D '/tmp/agent-37430925381'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-37430925381/aw-workflow-editor-trim-workshop-author-duplication.bundle'
temp_ref='refs/bundles/create-pr-workflow-editor-trim-workshop-author-duplication-c19269f4410b8410-02e699e1'
target_ref='refs/heads/workflow-editor/trim-workshop-author-duplication-c19269f4410b8410'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
  bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
  echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
  exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'workflow-editor/trim-workshop-author-duplication-c19269f4410b8410'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch to the target remote
git push 'origin' 'workflow-editor/trim-workshop-author-duplication-c19269f4410b8410'

# Create the pull request
gh pr create --title '[workflow-editor] Trim duplicated guideline text in workshop-author.md' --base 'main' --head 'workflow-editor/trim-workshop-author-duplication-c19269f4410b8410' --repo 'githubnext/gh-aw-workshop'
主要语言
JavaScript
星标
58
派生
40
平均合并
4 天 4 小时
30 天内合并 PR
8

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

githubnext/gh-aw-workshop 的其他 Issue

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

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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