From 6d91f62e889cedf93448093f94992ed50d0e2273 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 8 Dec 2022 18:45:48 -0800 Subject: [PATCH] Skip including release notes for cleanup pull requests --- scripts/make_release.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/make_release.py b/scripts/make_release.py index 6d07c1d..5ea3a72 100644 --- a/scripts/make_release.py +++ b/scripts/make_release.py @@ -62,6 +62,7 @@ def main(): 'major': [], 'minor': [], 'patch': [], + 'cleanup': [], 'unspecified': [], } @@ -95,6 +96,8 @@ def main(): group_name = 'minor' elif 'patch-backwards-compatible-bug-fixes' in pull_labels: group_name = 'patch' + elif 'cleanup-no-release-required' in pull_labels: + group_name = 'cleanup' else: group_name = 'unspecified' pulls_missing_semver_label.append(pull) @@ -105,9 +108,10 @@ def main(): # pprint.pprint('merged at: {}'.format(pull.merged_at)) # print(pull.html_url) - pull_request_changes.append( - '- {} ([#{}]({}))'.format(pull.title, pull.number, pull.html_url) - ) + if group_name in ['major', 'minor', 'patch']: + pull_request_changes.append( + '- {} ([#{}]({}))'.format(pull.title, pull.number, pull.html_url) + ) # print('-' * 10)