Skip to content

Fix bot filtering in generate-changelog.mjs#6791

Merged
louislam merged 4 commits intomasterfrom
copilot/fix-changelog-ignore-bots
Jan 22, 2026
Merged

Fix bot filtering in generate-changelog.mjs#6791
louislam merged 4 commits intomasterfrom
copilot/fix-changelog-ignore-bots

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 22, 2026

Bot accounts were appearing in generated changelogs because ignoreList entries contained @ prefixes while GitHub API returns usernames without them.

Changes

  • extra/generate-changelog.mjs: Remove @ prefix from @autofix-ci[bot] and add three new bots: app/copilot-swe-agent, app/github-actions, github-actions[bot]
  • test/backend-test/test-generate-changelog.js: Add test coverage to prevent regression

Example

// Before: Comparison fails
author.login = "autofix-ci[bot]"  // from GitHub API
ignoreList.includes("@autofix-ci[bot]")  // false

// After: Comparison succeeds  
author.login = "autofix-ci[bot]"  // from GitHub API
ignoreList.includes("autofix-ci[bot]")  // true
Original prompt

The generate-changelog.mjs, it seems that it is not able to ignore @autofix-ci[bot], find out why and solve it. The generated result, @autofix-ci[bot] is still visible.

Please also ignore @app/copilot-swe-agent @app/github-actions @github-actions[bot]


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 22, 2026 16:23
…e list

Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
@louislam louislam changed the title [WIP] Fix changelog to ignore specific bot entries chore: Fix changelog to ignore specific bot entries Jan 22, 2026
@louislam louislam marked this pull request as ready for review January 22, 2026 16:26
Copilot AI review requested due to automatic review settings January 22, 2026 16:26
@github-actions github-actions bot added the pr:needs review this PR needs a review by maintainers or other community members label Jan 22, 2026
@louislam louislam enabled auto-merge (squash) January 22, 2026 16:26
Copilot AI changed the title chore: Fix changelog to ignore specific bot entries Fix bot filtering in generate-changelog.mjs Jan 22, 2026
Copilot AI requested a review from louislam January 22, 2026 16:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes bot filtering in generate-changelog.mjs by aligning the ignore list entries with the GitHub API author.login format (no leading @) and expanding the ignored bot/app actors.

Changes:

  • Updated ignoreList to remove the leading @ from autofix-ci[bot] so it matches author.login.
  • Added additional bot/app actors to ignoreList (app/copilot-swe-agent, app/github-actions, github-actions[bot]).

@louislam louislam merged commit 2ac2875 into master Jan 22, 2026
32 of 33 checks passed
@louislam louislam deleted the copilot/fix-changelog-ignore-bots branch January 22, 2026 16:30
@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:needs review this PR needs a review by maintainers or other community members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants