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
Copy file name to clipboardExpand all lines: docs/README.md
+128Lines changed: 128 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,7 @@ We currently provide these generators:
136
136
- pullRequests
137
137
- gitRepository
138
138
- matrix
139
+
- apiClient
139
140
140
141
### List generator
141
142
@@ -429,6 +430,133 @@ spec:
429
430
name: go-demo-repo
430
431
```
431
432
433
+
### apiClient generator
434
+
435
+
This generator is configured to poll an HTTP endpoint and parse the result as the generated values.
436
+
437
+
This will poll an endpoint on the interval, instead of using the simpler to use PullRequest generator, you can access GitHub's API with the APIClient generator.
438
+
439
+
The PullRequest generator is simpler to use, and works across multiple different git-providers.
440
+
441
+
The GitHub [documentation](https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests) for the API endpoint shows:
This will generate three maps for templates, with just the _env_ and _team_ keys.
559
+
432
560
## Templating functions
433
561
434
562
Currently, the [Sprig](http://masterminds.github.io/sprig/) functions are available in the templating, with some functions removed[^sprig] for security reasons.
0 commit comments