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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 |
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cmd/dependabot/internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion cmd/dependabot/internal/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewUpdateCommand() *cobra.Command {
Use: "update [<package_manager> <repo> | -f <input.yml>] [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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dependabot/internal/cmd/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down
4 changes: 2 additions & 2 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion testdata/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ job:
update-type: all
source:
provider: github
repo: rsc/quote
repo: dependabot/cli
directory: /
2 changes: 1 addition & 1 deletion testdata/invalid-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ job:
update-type: all
source:
provider: github
repo: rsc/quote
repo: dependabot/cli
directory: /
commit: unknown
2 changes: 1 addition & 1 deletion testdata/scenario.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ input:
update-type: all
source:
provider: github
repo: rsc/quote
repo: dependabot/cli
directory: /
2 changes: 1 addition & 1 deletion testdata/valid-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ job:
update-type: all
source:
provider: github
repo: rsc/quote
repo: dependabot/cli
directory: /
commit: 5d9f230bcfbae514bb6c2215694c2ce7273fc604