Skip to content

Change git-tag-commit data generator to use most recent ancestor tag #66

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

Merged
merged 3 commits into from
Mar 25, 2022

Conversation

courajs
Copy link
Contributor

@courajs courajs commented Mar 30, 2018

What Changed & Why

Upgraded git-repo-info in order to take advantage of the lastTag feature. This allows deploying releases using the git-tag-commit generator without creating new a git tag. This is useful for pushing to staging before graduating a release to a full version bump.

Related issues

lastTag added to git-repo-info in rwjblue/git-repo-info#37, released in v2.0.0
Closes #27
Closes #28
Closes #50

PR Checklist

  • Add tests
  • Add documentation (this was the behavior implied by the current documentation)

People

@reidab, @lukemelia, @jrowlingson,

@courajs
Copy link
Contributor Author

courajs commented Apr 13, 2018

Ping @lukemelia @achambers if you have a chance to look at this

@jrowlingson
Copy link
Contributor

This allows deploying releases using the git-tag-commit generator without creating new a git tag.

@courajs Could you expand a bit on this? I am interested in your deployment workflow.

@courajs
Copy link
Contributor Author

courajs commented Apr 13, 2018

Without this, ember deploy fails if the current commit isn't tagged. With it, as long as an ancestor commit is tagged, it will simply append the commit sha to the most recent tag name, and allow the deploy:

-   timestamp           | revision
- =================================
- > 2018/03/30 19:16:11 | v0.1.0+a96d264a
-   2018/03/30 19:03:41 | v0.1.0+e3f28123
-   2018/03/30 15:32:09 | v0.1.0+e6d393e4
-   2018/03/30 15:30:14 | v0.1.0+3a75100f
-   2018/03/30 13:41:23 | v0.1.0+7b5e9631

While you might not do this for production, it's useful when your versioning process involves validation in staging before approving a version bump.

@lukemelia
Copy link
Contributor

Thanks @courajs. I'm +1 on this. @achambers we should make sure that the git revision data plugin gets a similar bump.

@achambers
Copy link
Member

@lukemelia said:

Thanks @courajs. I'm +1 on this. @achambers we should make sure that the git revision data plugin gets a similar bump.

Roger that.

@ludalex
Copy link

ludalex commented Mar 4, 2019

Any plans on merging this?

@demee
Copy link

demee commented Sep 26, 2019

LGTM!

@lukemelia
Copy link
Contributor

I know it's been a while. My apologies. @courajs: if you (or anyone else) wants to take initiative to review this and resolve the conflicts, I'll get it merged.

@courajs
Copy link
Contributor Author

courajs commented Oct 25, 2021

@lukemelia Conflicts are resolved! Tests are passing and it looks like not too much else has changed in the add-on, so I think this is probably still a good patch?

@lukemelia lukemelia merged commit 66845ca into ember-cli-deploy:master Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants