Skip to content

Commit 6d91f62

Browse files
committed
Skip including release notes for cleanup pull requests
1 parent 91c8850 commit 6d91f62

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/make_release.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def main():
6262
'major': [],
6363
'minor': [],
6464
'patch': [],
65+
'cleanup': [],
6566
'unspecified': [],
6667
}
6768

@@ -95,6 +96,8 @@ def main():
9596
group_name = 'minor'
9697
elif 'patch-backwards-compatible-bug-fixes' in pull_labels:
9798
group_name = 'patch'
99+
elif 'cleanup-no-release-required' in pull_labels:
100+
group_name = 'cleanup'
98101
else:
99102
group_name = 'unspecified'
100103
pulls_missing_semver_label.append(pull)
@@ -105,9 +108,10 @@ def main():
105108
# pprint.pprint('merged at: {}'.format(pull.merged_at))
106109
# print(pull.html_url)
107110

108-
pull_request_changes.append(
109-
'- {} ([#{}]({}))'.format(pull.title, pull.number, pull.html_url)
110-
)
111+
if group_name in ['major', 'minor', 'patch']:
112+
pull_request_changes.append(
113+
'- {} ([#{}]({}))'.format(pull.title, pull.number, pull.html_url)
114+
)
111115

112116
# print('-' * 10)
113117

0 commit comments

Comments
 (0)