diff --git a/README.md b/README.md index e6aa2d0a..783c5110 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Usage: dependabot [command] Examples: - $ dependabot update go_modules rsc/quote + $ dependabot update go_modules dependabot/cli $ dependabot test -f input.yml Available Commands: @@ -63,7 +63,7 @@ Run the `update` subcommand to run a Dependabot update job for the provided ecos This does not create PRs, but outputs data that could be used to create PRs. ```console -$ dependabot update go_modules rsc/quote +$ dependabot update go_modules dependabot/cli # ... +----------------------------------------------------+ | Changes to Dependabot Pull Requests | @@ -269,7 +269,7 @@ To produce a scenario file that tests Dependabot behavior for a given repo, run the `update` subcommand and set the `--output` / `-o` option to a file path. ```console -dependabot update go_modules rsc/quote -o go-scenario.yml +dependabot update go_modules dependabot/cli -o go-scenario.yml ``` Run the `test` subcommand for the generated scenario file, diff --git a/cmd/dependabot/internal/cmd/root.go b/cmd/dependabot/internal/cmd/root.go index b8fe7367..2b29c26e 100644 --- a/cmd/dependabot/internal/cmd/root.go +++ b/cmd/dependabot/internal/cmd/root.go @@ -39,7 +39,7 @@ var rootCmd = &cobra.Command{ Short: "Dependabot end-to-end runner", Long: `Run Dependabot jobs from the command line.`, Example: heredoc.Doc(` - $ dependabot update go_modules rsc/quote + $ dependabot update go_modules dependabot/cli $ dependabot test -f input.yml `), Version: Version(), diff --git a/cmd/dependabot/internal/cmd/update.go b/cmd/dependabot/internal/cmd/update.go index 39a57349..fd2151ea 100644 --- a/cmd/dependabot/internal/cmd/update.go +++ b/cmd/dependabot/internal/cmd/update.go @@ -54,7 +54,7 @@ func NewUpdateCommand() *cobra.Command { Use: "update [ | -f ] [flags]", Short: "Perform an update job", Example: heredoc.Doc(` - $ dependabot update go_modules rsc/quote + $ dependabot update go_modules dependabot/cli $ dependabot update -f input.yml `), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/cmd/dependabot/internal/cmd/update_test.go b/cmd/dependabot/internal/cmd/update_test.go index ebe998e7..53eeb8a8 100644 --- a/cmd/dependabot/internal/cmd/update_test.go +++ b/cmd/dependabot/internal/cmd/update_test.go @@ -190,7 +190,7 @@ func assertStringArraysEqual(t *testing.T, expected, actual []string) { func Test_extractInput(t *testing.T) { t.Run("test arguments", func(t *testing.T) { cmd := NewUpdateCommand() - if err := cmd.ParseFlags([]string{"go_modules", "rsc/quote"}); err != nil { + if err := cmd.ParseFlags([]string{"go_modules", "dependabot/cli"}); err != nil { t.Fatal(err) } input, err := extractInput(cmd, &UpdateFlags{}) diff --git a/docs/debugging.md b/docs/debugging.md index 5eb16231..ded9f801 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -4,11 +4,11 @@ This guide will help you debug issues with your Dependabot update using the Depe ## Getting started -First, test to make sure you have a working Dependabot CLI by performing a simple update, like `dependabot update go_modules rsc/quote -o out.yml`. This should complete without error, and you can examine the out.yml file which should contain two calls to `create_pull_request`. +First, test to make sure you have a working Dependabot CLI by performing a simple update, like `dependabot update go_modules dependabot/cli -o out.yml`. This should complete without error, and you can examine the out.yml file which should contain two calls to `create_pull_request`. Next, clone https://github.com/dependabot/dependabot-core. This project contains all the source for the updater images, and a helpful script `script/dependabot` which will mount the ecosystems in the container that the CLI starts. -Try opening a terminal and run `script/dependabot update go_modules rsc/quote --debug` in the `dependabot-core` project directory. This will drop you in an interactive session with the update ready to proceed. +Try opening a terminal and run `script/dependabot update go_modules dependabot/cli --debug` in the `dependabot-core` project directory. This will drop you in an interactive session with the update ready to proceed. To perform the update, you need to run two commands: diff --git a/testdata/basic.yml b/testdata/basic.yml index db96b405..ca821c57 100644 --- a/testdata/basic.yml +++ b/testdata/basic.yml @@ -5,5 +5,5 @@ job: update-type: all source: provider: github - repo: rsc/quote + repo: dependabot/cli directory: / diff --git a/testdata/invalid-commit.yml b/testdata/invalid-commit.yml index 7e6627b7..ca644fe2 100644 --- a/testdata/invalid-commit.yml +++ b/testdata/invalid-commit.yml @@ -5,6 +5,6 @@ job: update-type: all source: provider: github - repo: rsc/quote + repo: dependabot/cli directory: / commit: unknown diff --git a/testdata/scenario.yml b/testdata/scenario.yml index f12f9378..7d14c452 100644 --- a/testdata/scenario.yml +++ b/testdata/scenario.yml @@ -6,5 +6,5 @@ input: update-type: all source: provider: github - repo: rsc/quote + repo: dependabot/cli directory: / diff --git a/testdata/valid-commit.yml b/testdata/valid-commit.yml index 78bbd17a..2d319117 100644 --- a/testdata/valid-commit.yml +++ b/testdata/valid-commit.yml @@ -5,6 +5,6 @@ job: update-type: all source: provider: github - repo: rsc/quote + repo: dependabot/cli directory: / commit: 5d9f230bcfbae514bb6c2215694c2ce7273fc604