git_dependency_prs 0.1.0 git_dependency_prs: ^0.1.0 copied to clipboard
Link PRs to git dependencies. Generate update timelines and enforce compliance.
Link PRs to git dependencies. Generate update timelines and enforce compliance.
About #
A lot of packages have necessary PRs that are not merged. This tool helps keep track of open PRs and display a timeline to help see if the changes may have been released so you can update your pubspec.
Installation #
$ dart pub global activate git_dependency_prs
Usage #
Pubspec #
dependency_overrides:
package:
git:
prs:
- https://github.com/owner/name/pulls/14
url: https://github.com/owner/name
Print the update timeline #
$ git_dependency_prs check
package (dependency_overrides)
- 11 months ago: https://github.com/owner/name/pull/503 was merged
- 11 months ago: https://github.com/owner/name/pull/504 was merged
- 10 months ago: https://github.com/owner/name/pull/511 was closed
- 10 months ago: https://github.com/owner/name/pull/521 was created
- 10 months ago: https://github.com/owner/name/pull/522 was created
- 7 months ago: Version 2.2.0 released
- 3 months ago: https://github.com/owner/name/pull/610 was created
package (dependency_overrides)
- 27 days ago: Version 5.2.4 released
- 7 hours ago: https://github.com/owner/name/pull/10317 was created
Lint #
$ git_dependency_prs lint
The following git dependencies specify no PRs:
- package (dependencies)
The following git dependencies are not in dependency_overrides:
- package (dependencies)
This will exit with status code 1 for use in CI
Ignoring lint issues #
dependencies:
package:
git:
ignore_lint: true
url: ...
Troubleshooting #
API rate limit exceeded #
If you see this, you need to pass a GitHub token:
$ git_dependency_prs check -t <token>
Generate a token here: https://github.com/settings/personal-access-tokens/new