Commit 1b851ad
Include All Branches in template repositories (#1353)
* Include All Branches in template repositories
When creating a repository from a template, you can pass in a boolean to
include all the branches in the template repo.
This is documented here: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template
In addition, the provider already supports that here: https://github.com/google/go-github/blob/3e8a7f0fbe0e4402f9ad5a80e0ab0a050786e0f8/github/repos.go#L441
Adding a variable under the template structure and then pass it in to
the provider function works.
Added tests to make sure it works. All tests are passing
* Remove failing test. Nothing to see here, folks
* Add clarifying doc note
Co-authored-by: KensoDev <[email protected]>1 parent ffd6f0a commit 1b851ad
File tree
2 files changed
+15
-6
lines changed- github
- website/docs/r
2 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
| |||
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
| 367 | + | |
362 | 368 | | |
363 | 369 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
368 | 375 | | |
369 | 376 | | |
370 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments