Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

full-day workshop: Correct the CI workflow triggers and first-run verification

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

还没有人认领这个 Issue。

评估

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

调研方向

从 content/full-day/4-testing.md 开始,并将其中对触发器的说明与 .github/workflows/server-test.yml 进行比较。在一个全新的模板仓库中验证首次运行流程,包括 workflow 变更、server 变更、pull request 以及按需执行。文档中记录的事件和验证步骤与观察到的 GitHub Actions 运行结果一致,即视为完成。

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

描述

priority: P0

Problem

content/full-day/4-testing.md describes merge as a GitHub Actions event, but there is no merge workflow event; a merge to main is normally handled as a push. Learners are also told to request an on-demand trigger, while the example omits workflow_dispatch.

The example restricts both push and pull_request to app/server/**. The first commit adds only .github/workflows/server-test.yml, so the text's claim that this push triggers the workflow is false: the path filter prevents that first run. Learners can reach the Actions page with no run to inspect.

Suggested change

Teach the actual event semantics and provide an example whose triggers support every verification step in the exercise.

Acceptance criteria

  • merge is removed as an event name and explained as a push to the target branch.
  • The example includes workflow_dispatch when on-demand execution is required.
  • Adding or changing the workflow itself triggers a run, or learners are explicitly told to dispatch it manually.
  • Server changes still trigger push and pull-request runs.
  • The exact first-run flow is tested in a fresh template repository.

Related: #236 separately tracks the pytest/unittest inconsistency.

主要语言
Python
星标
80
派生
161
平均合并
31 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

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

github-samples/pets-workshop 的其他 Issue

查看 github-samples/pets-workshop 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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