diff options
author | Nick Brassel <nick@tzarc.org> | 2022-02-05 07:36:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 07:36:57 +1100 |
commit | 8fd8b2dc92a01b86a8e9ff3c37baeba760312140 (patch) | |
tree | 6af7d576e6492873d30d9f96d20465bcad3de158 /lib | |
parent | 0c0aa6a0ae2b15f244bd40e3dc9c54f91b32648f (diff) |
Skip categorisation of PR if it's only for code formatting. (#16215)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/python/qmk/cli/generate/develop_pr_list.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/develop_pr_list.py b/lib/python/qmk/cli/generate/develop_pr_list.py index fab0262773..09236a7c42 100755 --- a/lib/python/qmk/cli/generate/develop_pr_list.py +++ b/lib/python/qmk/cli/generate/develop_pr_list.py @@ -12,6 +12,14 @@ fix_expr = re.compile(r'fix', flags=re.IGNORECASE) clean1_expr = re.compile(r'\[(develop|keyboard|keymap|core|cli|bug|docs|feature)\]', flags=re.IGNORECASE) clean2_expr = re.compile(r'^(develop|keyboard|keymap|core|cli|bug|docs|feature):', flags=re.IGNORECASE) +ignored_titles = ["Format code according to conventions"] + + +def _is_ignored(title): + for ignore in ignored_titles: + if ignore in title: + return + def _get_pr_info(cache, gh, pr_num): pull = cache.get(f'pull:{pr_num}') @@ -81,7 +89,9 @@ def generate_develop_pr_list(cli): else: normal_collection.append(info) - if "dependencies" in commit_info['pr_labels']: + if _is_ignored(commit_info['title']): + return + elif "dependencies" in commit_info['pr_labels']: fix_or_normal(commit_info, pr_list_bugs, pr_list_dependencies) elif "core" in commit_info['pr_labels']: fix_or_normal(commit_info, pr_list_bugs, pr_list_core) |