Skip to content

Commit b35c436

Browse files
committed
Document negative lookahead usage in banned_specs
1 parent 579dd78 commit b35c436

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)