BUG: the changelog workflow stopped running, and CHANGELOG.md is 37 merged pull requests behind

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

维护者通常 3 天内回复

已经有一个关联 PR 被合并了。

  • #1180 来自 @ting-hong-shieh —— 已合并

评估

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

调研方向

Start with .github/workflows/changelog.yml on master and develop, then inspect the failing checkout step in run 31756544967 and compare the workflow run events with the documented pull_request_target behavior. Check the Actions secret configuration with repository access; the issue notes it may not be visible publicly. Done means merged pull requests to develop populate [Unreleased] again, and the missing entries are accounted for.

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

描述

The last commit to CHANGELOG.md is 5eae273b, on 12 August. Thirty-seven pull requests have been merged into develop since then and none of them is recorded, so the [Unreleased] section no longer describes what is on the branch. The highest pull request it mentions is #1140.

Two things went wrong, one after the other, and both need fixing before entries start appearing again.

The workflow has not been triggered since #1112

#1112 changed the trigger from pull_request to pull_request_target, so the job would run for pull requests from forks, and merged at 2026-08-14T09:44:01Z. Nothing has run since.

2026-08-14T00:12:03Z  failure
2026-08-14T00:05:22Z  failure
2026-08-13T23:59:03Z  failure
2026-08-13T13:15:27Z  failure
2026-08-12T22:27:08Z  success

The next merge after #1112 was #1149 at 2026-08-14T09:45:03Z, and thirty more have landed since. The workflow is still active, so it has not been disabled.

Where GitHub reads the file from looks like the reason. The documentation says a pull_request_target workflow is taken from the default branch rather than from the pull request's base branch. This repository's default branch is master, which is 77 commits behind develop and still carries the older changelog.yml with the pull_request trigger. The pull_request_target version exists only on develop, where nothing reads it.

.github/workflows/pr_agent.yml sits the same way: pull_request_target, present only on develop, last run 2026-08-12T02:44:27Z. Every recorded run of both workflows reports event=pull_request, which fits neither having fired under the newer trigger.

I cannot see the repository's Actions settings, so there may be something here that is only visible from the inside.

RELEASE_TOKEN was already empty before that

The four runs before #1112 did fire, and all four died on the first step:

##[error]Input required and not supplied: token

That step is actions/checkout with token: ${{ secrets.RELEASE_TOKEN }}, so the secret is resolving to nothing. The last run that got past it was 2026-08-12T22:27:08Z, which puts the change somewhere between then and 2026-08-13T13:15:27Z.

This one will still be waiting once the trigger works again, so it is worth checking the secret at the same time rather than after another round of silent failures.

To reproduce

gh api repos/RocketPy-Team/RocketPy/actions/workflows \
  --jq '.workflows[] | select(.name=="Populate Changelog") | .id'

gh api "repos/RocketPy-Team/RocketPy/actions/workflows/<id>/runs?per_page=10" \
  --jq '.workflow_runs[] | "\(.created_at) \(.conclusion // .status) event=\(.event)"'

For the token, the failing step's log is in run 31756544967, job 94633386642.

Expected behavior

A pull request merged into develop adds its entry to the [Unreleased] section of CHANGELOG.md, which is what the pull request template promises contributors when it tells them the file needs no action from them.

Additional context

#1101 is the fork problem #1112 set out to solve, and #905 is where the automation came from, so neither of those covers this.

Whatever the fix turns out to be, the thirty-seven entries from the gap will not appear on their own. It may be easier to write them in one pass from the merge list than to try to replay the workflow over each pull request.

主要语言
Python
星标
1.1k
派生
280
平均合并
3 天 2 小时
30 天内合并 PR
24

环境准备

从这里开始

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

RocketPy-Team/RocketPy 的其他 Issue

查看 RocketPy-Team/RocketPy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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