Skip to content

Commit

Permalink
adding auto-chart-bump feature
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasSUSE committed Nov 5, 2024
1 parent a5e17ff commit 78afe43
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func main() {
branchFlag := cli.StringFlag{
Name: "branch,b",
Usage: `Usage:
./bin/charts-build-scripts <command> --branch="release-v2.y"
BRANCH="release-v2.y" make <command>
Available branches for release: (release-v2.8; release-v2.9; release-v2.10...)
./bin/charts-build-scripts <command> --branch="release-v2.y" OR
BRANCH="dev-v2.y" make <command>
Available branches: (release-v2.8; dev-v2.9; release-v2.10.)
`,
Required: true,
EnvVar: defaultBranchEnvironmentVariable,
Expand Down Expand Up @@ -386,11 +386,12 @@ func main() {
Flags: []cli.Flag{branchFlag},
},
{
Name: "auto-chart-bump",
Name: "chart-bump",
Usage: `Generate a new chart bump PR.
`,
Action: autoChartBump,
Flags: []cli.Flag{branchFlag},
Action: chartBump,

Check failure on line 392 in main.go

View workflow job for this annotation

GitHub Actions / build

undefined: chartBump

Check failure on line 392 in main.go

View workflow job for this annotation

GitHub Actions / lint

undefined: chartBump (typecheck)

Check failure on line 392 in main.go

View workflow job for this annotation

GitHub Actions / test

undefined: chartBump
Before: setupCache,
Flags: []cli.Flag{packageFlag, branchFlag},
},
}

Expand All @@ -399,10 +400,6 @@ func main() {
}
}

func autoChartBump(c *cli.Context) {

}

func listPackages(c *cli.Context) {
repoRoot := getRepoRoot()
packageList, err := charts.ListPackages(repoRoot, CurrentPackage)
Expand Down

0 comments on commit 78afe43

Please sign in to comment.