-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Automatically tag project releases #34261
Conversation
This will automatically create tags like "packages/autoloader@3.0.2" or "plugins/jetpack@12.9" as projects are released. The logic used is similar to the autotagger: on push to trunk or prerelease for projects without a release-branch-prefix and on push to corresponding release branches for projects with a release-branch-prefix, if the `/changelog/` directory for the project is empty and the first entry in CHANGELOG.md is a release version number, it'll create the corresponding tag for the project.
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. |
BTW, in case anyone is interested, I created that tags.tsv like this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's give this a go 👍
|
😀 I wound up creating 3504 tags total: the ones in the tsv linked above, plus tags for two releases since I created that, plus I matched up old tags like "1.1" and "automattic/jetpack-assets@1.0.0". 750 potential tags I didn't have a commit to match them with. pdWQjU-D3-p2 |
Proposed changes:
This will automatically create tags like "packages/autoloader@3.0.2" or "plugins/jetpack@12.9" as projects are released.
The logic used is similar to the autotagger: on push to trunk or prerelease for projects without a release-branch-prefix and on push to corresponding release branches for projects with a release-branch-prefix, if the
/changelog/
directory for the project is empty and the first entry in CHANGELOG.md is a release version number, it'll create the corresponding tag for the project.Note that when this is first merged, it'll probably create a bunch of tags incorrectly pointing to that commit for things that were recently released and haven't been bumped since. We'll have to fix those manually. We'll also have to manually create tags for all the previous releases if we want them. A list of tags and what I could find for corresponding commits is here: tags.tsv
Other information:
Jetpack product discussion
Fixes https://github.com/Automattic/garage-backlog/issues/23
Does this pull request change what data or activity we track or use?
Testing instructions: