Skip to content

Release notes credit upstream commits as community contributions #124

Description

@DevFlex-AI

Problem

The v1.20.2 draft release notes thank upstream OpenCode authors as bolt-cli community contributors:

  • @fwang: zen: update doc and the raw merge commit Merge branch 'dev' of github.com:anomalyco/opencode into dev
  • @OpeOginni: fix(app): prevent stale prompt control reads (#39842) (an upstream PR number)

These commits entered via the upstream sync merge (43432a4, PR #120 by pull[bot]), not via contributions to this repo. contributors() in script/raw-changelog.ts iterates every commit in the compare range with no merge-commit or origin filtering.

Fix

In script/raw-changelog.ts:

  1. Skip merge commits (parent count > 1) when collecting contributors.
  2. Attribute a commit to a community contributor only when an associated pull request in this repo was authored by that same user (GET /repos/{repo}/commits/{sha}/pulls). Upstream commits only associate with the sync PR (authored by pull[bot] or a team member), so they are excluded; genuine community PRs pass.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions