GitHub Actions: Notify Go Module Major Version Updates #716
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When Go modules mature and their major version has exceeded one, the module path requires a version suffix, such as
/v2
. Unfortunately, the Dependabot is unable to detect such a Go module major version bump for suffixed major versions, resulting in stalling dependencies - dependabot/dependabot-core#2213.By introducing another GitHub Actions Workflow utilizing gomajor, those major version updates for Go modules can be identified. As a scheduled workflow, running each Monday morning, it will either create or update an open GitHub issue with all currently available major version updates for referenced Go modules.
As a playground, I have forked this repository to another GitHub repository. Please feel free to take a look at its issue tracker. Issue oxzi/icingadb-go-mod-major-test#1, for example, shows how a new issue was first created and later re-used while it was still open. After it was closed, a new issue oxzi/icingadb-go-mod-major-test#2 was created and used afterwards, until this one was also closed.
An open issue will look like the following:
If this idea suits you, I can also submit this PR against our other Go projects.