@@ -60,28 +60,25 @@ For pull requests, the configuration file in the pull gets used except when issu
6060All commands issued in the body of a pull request, issue, or comment in an issue or pull request are restricted to
6161owners and collaborators.
6262
63- ## Using a Master Configuration Template
64-
65- You can use a master configuration file and share it across repositories. This is a good way to define common labels
66- that you wish to reuse. Point to the master configuration file by setting the environmental variable ` GH_CONFIG ` on your
67- server. It should be in the form ` user:repo:path/to/config:ref ` . In our case it is
68- ` facelessuser:master-labels:labels.yml:master ` .
69-
70- When merging the master configuration and the local repo configuration, merging will occur as follows:
71-
72- - keys that contain string or bool will be override the master by the local.
73- - keys that contain lists will append the local list to the master list.
74- - keys that contain hashes will append the key value pair of the local to the master. In the case of duplicates, the
75- local will override.
76- - One exception is with ` lgtm_add ` . The keys ` pull_request ` and ` issue ` will append values from the local to the master.
77- In the future, ` lgtm_add ` may get broken up into two separate options for consistency. This would not occur until
78- version 2.0.
79-
80- Even with a master configuration file, you still must specify a ` .github/labels.yml ` file in your repository, even if
81- all it contains is an empty hash ` {} ` . If you specify a master configuration, if either the master or local
82- configuration file fails, an empty set of options will be returned. Since repository label syncing will not occur when
83- the ` labels ` option is missing, this will prevent all your repository labels from getting wiped out in the case of a
84- failure.
63+ ## Using a Configuration Template
64+
65+ You can use a configuration template file and share it across repositories. This is a good way to define common labels
66+ that you wish to reuse. You can set the template to use in your local repository file in ` .github/labels.yml ` . In our
67+ case it is ` facelessuser:master-labels:labels.yml:master ` .
68+
69+ When merging the template configuration and the local repo configuration, merging will occur as follows:
70+
71+ - keys that contain string or bool will override the template with the local value.
72+ - keys that contain list values will append the local list to the template list.
73+ - keys that contain hash values will append the key value pair of the local to the template. In the case of duplicates,
74+ the local will override.
75+ - One exception is with ` lgtm_add ` . The keys ` pull_request ` and ` issue ` will append values from the local to the
76+ template. In the future, ` lgtm_add ` may get broken up into two separate options for consistency. This would not occur
77+ until version 2.0.
78+
79+ If either the template or local configuration file fails to be acquired, an empty set of options will be returned. Since
80+ repository label syncing will not occur when the ` labels ` option is missing, this will prevent all your repository
81+ labels from getting wiped out in the case of a failure.
8582
8683## Triage Labels
8784
0 commit comments