Support changelog for the new branch model:#160
Support changelog for the new branch model:#160NvTimLiu wants to merge 3 commits intobranch-25.10from
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for changelog generation with a new branch model, transitioning from the old branch-YY.MM pattern to a new release/YY.MM pattern starting from version 25.10. The changes enable the script to handle both branching models and retrieve commit information via GitHub's GraphQL API.
- Introduces commit-based PR retrieval for the new branch model using GitHub GraphQL queries
- Adds logic to determine which branch pattern to use based on the release version
- Implements functions to calculate previous release versions and fetch commits between branches
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| changelog = {} # changelog dict | ||
| releases = {x.strip() for x in rels.split(',')} | ||
| # Sort releases in descending order for the follow-up operations | ||
| releases = sorted(releases, reverse=True) |
There was a problem hiding this comment.
Converting releases from a set to a sorted list changes its type, but the variable name and usage throughout the codebase still treat it as a set. This could cause issues in functions that expect a set type. Consider using a different variable name like sorted_releases for the sorted list.
6c29169 to
cb29987
Compare
0dedd1e to
af668f4
Compare
1, Retrieve commit hashes for a release after enabling the new branch model. 2, Create a query to fetch pull request (PR) information from GitHub using commit hashes. 3, Support retrieving PR changelogs for both the old and new branch models. Signed-off-by: timl <timl@nvidia.com>
cb29987 to
b6beb84
Compare
Signed-off-by: timl <timl@nvidia.com>
… the changelog Signed-off-by: timl <timl@nvidia.com>


1, Retrieve commit hashes for a release after enabling the new branch model.
2, Create a query to fetch pull request (PR) information from GitHub using commit hashes.
3, Support retrieving PR changelogs for both the old and new branch models.