You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: templates/README.md
+55-13Lines changed: 55 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,11 @@ ${{{ <context> }}}
23
23
|`config`|`object`| Configuration object because of which the file is being copied. For more information, see [config context](#config-context)|
24
24
|`github`|`object`| Information about the target repository the file is being copied to. For more information, see [github context](#github-context)|
25
25
26
+
The context container is generated automatically before template expansion is performed.
27
+
26
28
#### `config` context
27
29
28
-
The `config` context is the configuration object because of which the file is being copied.
30
+
The `config` context is the configuration object because of which the file is being copied. It is created by merging the `defaults` object with a `repository` object (from the `repositories` array) from a JSON configuration file.
29
31
30
32
| Property name | Type | Always present | Description |
31
33
| --- | --- | --- | --- |
@@ -39,7 +41,7 @@ The `config` context is the configuration object because of which the file is be
39
41
40
42
#### `github` context
41
43
42
-
The `github` context contains information about the target repository the file is being copied to.
44
+
The `github` context contains information about the target repository the file is being copied to. It is created on the fly before template expansion is performed.
43
45
44
46
| Property name | Type | Always present | Description |
45
47
| --- | --- | --- | --- |
@@ -48,25 +50,49 @@ The `github` context contains information about the target repository the file i
48
50
49
51
### Examples
50
52
53
+
#### JSON configuration
54
+
55
+
```json
56
+
{
57
+
"defaults": {
58
+
"files": [".github/workflows/automerge.yml"],
59
+
"is_example": false
60
+
},
61
+
"repositories": [
62
+
{
63
+
"target": "protocol/.github-test-target",
64
+
"extra_files": [".github/workflows/example.yml"],
65
+
"example": {
66
+
"greeting": "Hello"
67
+
},
68
+
"is_example": true
69
+
}
70
+
]
71
+
}
72
+
```
73
+
51
74
#### Context container
52
75
76
+
*created automatically before template expansion is performed*
0 commit comments