From fff7a347ee6197642f57a2937726b1a2c1bda6a5 Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Fri, 12 May 2023 06:31:51 -0700 Subject: [PATCH] Add variation of skip-changelog (#31) * Add variation of skip-changelog * Include skipchangelog * Spelling addition --- .config/dictionary.txt | 1 + antsichaut/antsichaut.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/dictionary.txt b/.config/dictionary.txt index ffd70c8..79740da 100644 --- a/.config/dictionary.txt +++ b/.config/dictionary.txt @@ -15,6 +15,7 @@ passenv rndmh3ro ruamel saadmk11 +skipchangelog testenv timeperiod typeshed diff --git a/antsichaut/antsichaut.py b/antsichaut/antsichaut.py index 390ee33..1f1fce6 100755 --- a/antsichaut/antsichaut.py +++ b/antsichaut/antsichaut.py @@ -260,9 +260,9 @@ def parse_changelog( # noqa: C901, PLR0912 for pull_request in changes: for config in self.group_config: if any(label in pull_request["labels"] for label in config["labels"]): - # if a PR contains a skip_changelog label, + # if a PR contains a skip changelog label, # do not add it to the changelog - if config["title"] == "skip_changelog": + if config["title"] in ["skip_changelog", "skip-changelog", "skipchangelog"]: break change_type = config["title"]