Skip to content

Assets is now category in the release notes #3005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 7, 2024

Conversation

adids1221
Copy link
Contributor

@adids1221 adids1221 commented Mar 28, 2024

Description

Release notes script now accepts categories to make it generic for private categories.
The script will support any category in the structure of: {name: 'category', branch: 'cat/', title: 'title for the release notes'}

Changelog

none

Additional info

@Inbal-Tish
Copy link
Collaborator

@adids1221 Can we do the same to intl?

@@ -99,12 +100,14 @@ function getPRsByType(PRs) {
fixes.push(pr);
} else if (pr.branch.startsWith('infra/')) {
infra.push(pr);
} else if (pr.branch.startsWith('assets/') || pr.branch.startsWith('Assets/')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

instead of checking both assets and Assets you can use toLowerCase on the branch name and check only against assets

...categories,
{name: 'others', branch: '', title: 'OTHERS'},
{
name: 'silentPRs',
Copy link
Collaborator

Choose a reason for hiding this comment

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

'silent' is enough IMO

@adids1221 adids1221 merged commit fa40a43 into master Apr 7, 2024
@adids1221 adids1221 deleted the infra/release_notes_assets_category branch April 7, 2024 14:30
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.

3 participants