Skip to content

Conversation

@jakecoffman
Copy link
Member

This does a few small things to improve the update command:

  1. Remove the dry-run flag which was required but has no effect. Also updated the docs to remove the flag.
  2. Removes the error logging for the update command, as this is now done in core: Include summary of errors at the end of job output dependabot-core#6761.
  3. Outputs the updater calls to stdout to make it easier to integrate with the CLI.

@jakecoffman jakecoffman requested a review from a team as a code owner March 17, 2023 14:47
Copy link
Contributor

@landongrindheim landongrindheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This makes sense to me!

Comment on lines -59 to +60
Run the `update` subcommand with the `--dry-run` flag to
simulate a Dependabot update job for the provided ecosystem and repo
(without actually creating any PRs).
Run the `update` subcommand to run a Dependabot update job for the provided ecosystem and repo.
This does not create PRs, but outputs data that could be used to create PRs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider using a flag to do the inverse of --dry-run? i.e. use a --execute flag or something to create pull requests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah if we go that route, I would rather it be a flag that enables the PR management, rather than defaulting to it and needing to remember to add the dry-run flag.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather it be a flag that enables the PR management, rather than defaulting to it and needing to remember to add the dry-run flag

That seems right on target to me 🎯

@jakecoffman jakecoffman merged commit 5fd887b into main Mar 17, 2023
@jakecoffman jakecoffman deleted the jakecoffman/update-cleanup branch March 17, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants