Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ This file is maintained by [release-please](.github/workflows/release-please.yml
from conventional commit messages. Add entries by writing good commit messages,
not by editing this file by hand.

## Unreleased — provider push

`tfpfgen provider push -out DIR -repo URL` publishes the generated provider
tree to its own repository: shallow-clone, sync, manifest-based pruning of
files the generator owned and no longer produces, a commit with stated
provenance on the generator-owned `tfpfgen/generate-<digest>` branch, and a
pull request against the default branch. No difference means exit 0 and
nothing pushed. The token comes from `TFPFGEN_GITHUB_TOKEN` (or
`GITHUB_TOKEN`) — env only, never a flag.

## Unreleased — Naming standard hard cut

Everything below was renamed in one release; no aliases were kept.
Expand Down
6 changes: 6 additions & 0 deletions cmd/tfpfgen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ var providerVerbs = []command{
usage: usageProviderGenerate,
run: runProviderGenerate,
},
{
name: "push",
summary: "publish the generated tree to its repository as a branch and pull request",
usage: usageProviderPush,
run: runProviderPush,
},
{
name: "scaffold",
summary: "write a blank resource from the scaffold template, registered and compiling",
Expand Down
1 change: 1 addition & 0 deletions cmd/tfpfgen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ var builtCommands = map[string]bool{
"probe sweep": true,
"probe list": true,
"provider generate": true,
"provider push": true,
"bindings check": true,
"bindings facts": true,
// spec exports, and imports resources-only drafts.
Expand Down
Loading
Loading