Skip to content

Commit c07d252

Browse files
authored
Merge pull request #1948 from paololazzari/document-bannedspec-lookahead
Document negative lookahead usage in banned_specs
2 parents 579dd78 + 8e47184 commit c07d252

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/source/customizing.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,13 @@ repository and the ml-training repository from launching.
125125
banned_specs:
126126
- ^ines/spacy-binder.*
127127
- ^aschen/ml-training.*
128+
129+
You can also use a negative lookahead. For example, the following configuration will
130+
prevent all notebooks except those in repositories in the myorg organization from launching.
131+
132+
.. code-block:: yaml
133+
134+
config:
135+
GitHubRepoProvider:
136+
banned_specs:
137+
- ^(?!myorg\/.*).*$

0 commit comments

Comments
 (0)