From f40b38734d5b2dce23690240a837feedd191545b Mon Sep 17 00:00:00 2001 From: Josh Dales <30500472+joshdales@users.noreply.github.com> Date: Fri, 17 Mar 2023 17:14:59 -0400 Subject: [PATCH] Correct errors and typos in the README Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com> --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b869a7e3..d703682e 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ The match object is defined as: - changed-files: - any: ['list', 'of', 'globs'] - all: ['list', 'of', 'globs'] -- base-branch: ['list', 'of, 'regexps'] -- head-branch: ['list', 'of, 'regexps'] +- base-branch: ['list', 'of', 'regexps'] +- head-branch: ['list', 'of', 'regexps'] ``` One or all fields can be provided for fine-grained matching. Unlike the top-level list, the list of path globs provided to `any` and `all` must ALL match against a path for the label to be applied. @@ -65,11 +65,11 @@ label3: # Add 'label4' to any PR where the head branch name starts with 'example4' label4: -- head-branch: '^example4/**' +- head-branch: '^example4' # Add 'label5' to any PR where the base branch name starts with 'example5' label5: -- base-branch: '^example4/' +- base-branch: '^example5' ``` #### Common Examples @@ -102,7 +102,7 @@ frontend: # Add 'feature' label to any branch that starts with `feature` or has a `feature` section in the name feature: - - head-branch: ['^feature/**', '/feature/'] + - head-branch: ['^feature', 'feature'] # Add 'release' label to any PR that is opened against the `main` branch release: