Skip to content

chore: INFRA-3180: Update team json file for commits.csv during create release pr#180

Merged
XxdpavelxX merged 2 commits into
mainfrom
INFRA-3180-UpdateJsonForCommitCSV
Dec 3, 2025
Merged

chore: INFRA-3180: Update team json file for commits.csv during create release pr#180
XxdpavelxX merged 2 commits into
mainfrom
INFRA-3180-UpdateJsonForCommitCSV

Conversation

@XxdpavelxX
Copy link
Copy Markdown
Contributor

@XxdpavelxX XxdpavelxX commented Dec 2, 2025

Ticket: https://consensyssoftware.atlassian.net/browse/INFRA-3180

Fix bug discussed here https://consensys.slack.com/archives/C09B64PEHAQ/p1764576026224679.
Update create-release-pr workflow to use new topology.json) instead of old teams.json file which no longer exists to create commits.csv.


Note

Replace teams.json with topology.json for team resolution and update logic to detect members/roles with fallback to 'none'.

  • Scripts:
    • Update /.github/scripts/generate-rc-commits.mjs to use topology.json instead of teams.json for team lookup.
    • Revise team detection to search members and roles (pm, em, tl); return undefined when not found and group such commits under none.

Written by Cursor Bugbot for commit d135939. This will update automatically on new commits. Configure here.

@XxdpavelxX XxdpavelxX self-assigned this Dec 2, 2025
Comment thread .github/scripts/generate-rc-commits.mjs Outdated
// Step 4: Return the team name or 'Unknown' if not found
return team || 'Unknown';
// Return 'Unknown' if author not found in any team
return 'Unknown';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we return undefined here, then update filterCommitsByTeam function, to handle undefined responses, with such a condition:

const team = await getTeam(repository, prMatch) || "none";

It doesn't really change anything but it seems clearer to me.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea, updated

@XxdpavelxX XxdpavelxX merged commit 265e8b3 into main Dec 3, 2025
21 checks passed
@XxdpavelxX XxdpavelxX deleted the INFRA-3180-UpdateJsonForCommitCSV branch December 3, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants