diff --git a/README.md b/README.md index 3c1b27f..a59b440 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ exclude: humans: - pyup-bot +labels: + skip-changelog: skip news # default: `bot:chronographer:skip` + ... ``` diff --git a/chronographer/event_handlers.py b/chronographer/event_handlers.py index 880904d..b9d356a 100644 --- a/chronographer/event_handlers.py +++ b/chronographer/event_handlers.py @@ -148,7 +148,10 @@ async def on_pr(event): {external_docs_url!s} """ - if LABEL_SKIP in pr_labels: + labels_config = repo_config.get('labels', {}) + repo_skip_label = labels_config.get('skip-changelog', LABEL_SKIP) + + if repo_skip_label in pr_labels: logger.info( 'Skipping PR event because the `%s` label is present', LABEL_SKIP,