From 6d3354ca1b0e401e5374f0cd28b2f96753ac4f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Thu, 29 Feb 2024 18:36:34 +0300 Subject: [PATCH] docs(website): add tip about skipping commits by PR label --- website/docs/tips-and-tricks.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/tips-and-tricks.md b/website/docs/tips-and-tricks.md index 99c7f83fcc..5dfe2faa6b 100644 --- a/website/docs/tips-and-tricks.md +++ b/website/docs/tips-and-tricks.md @@ -43,6 +43,14 @@ Then strip the tags in the template with the series of filters: {% for group, commits in commits | filter(attribute="merge_commit", value=false) %} ``` +## Skip commits by PR label + +```jinja2 +{% if commit.github.pr_labels is containing("skip-release-notes") %} + {% continue %} +{% endif %} +``` + ## Remove gitmoji ```toml