From ac2f1d26e8bcb8d54feda5b0a4d5923cd74734a0 Mon Sep 17 00:00:00 2001 From: Jan-Pieter Baert Date: Wed, 14 Sep 2022 15:31:44 +0200 Subject: [PATCH] Add more documentation about branch matching (#1186) Closes #1183 --- docs/docs/20-usage/20-pipeline-syntax.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docs/20-usage/20-pipeline-syntax.md b/docs/docs/20-usage/20-pipeline-syntax.md index dcbdf32ee..2fe1ba54b 100644 --- a/docs/docs/20-usage/20-pipeline-syntax.md +++ b/docs/docs/20-usage/20-pipeline-syntax.md @@ -96,6 +96,13 @@ pipeline: + exclude: [ develop, feature/* ] ``` +The branch matching is done using [doublestar](https://github.com/bmatcuk/doublestar/#usage), note that a pattern starting with `*` should be put between quotes and a literal `/` needs to be escaped. A few examples: + +- `*\\/*` to match patterns with exactly 1 `/` +- `*\\/**` to match patters with at least 1 `/` +- `*` to match patterns without `/` +- `**` to match everything + ### Skip Commits Woodpecker gives the ability to skip individual commits by adding `[CI SKIP]` to the commit message. Note this is case-insensitive.