Skip to content
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

Introduce semantic versioning & changelog file #194

Open
tormi opened this issue Apr 29, 2021 · 7 comments
Open

Introduce semantic versioning & changelog file #194

tormi opened this issue Apr 29, 2021 · 7 comments
Assignees

Comments

@tormi
Copy link
Member

tormi commented Apr 29, 2021

We need a better way to let people know about template changes. Let's start using the semantic versioning and the changelog file.

Edit: There's also a recommendation writing commit messages using the Conventional Commits specification.

References

Reference project: https://github.com/wunderio/client-fi-uh-courses/blob/master/CHANGELOG.md

@tormi
Copy link
Member Author

tormi commented Apr 29, 2021

Also, let's figure out the best way for template user to know what template version they are using in their project.

@tormi
Copy link
Member Author

tormi commented Apr 29, 2021

Also, let's figure out the best way for template user to know what template version they are using in their project.

@greg-1-anderson, you have implemented the upstream stuff in https://github.com/pantheon-systems/drops-8. Could you maybe give some hints how to achieve this in a best possible way? :)

@tormi
Copy link
Member Author

tormi commented Apr 18, 2022

Related issue: wunderio/WunderFlow#1

@tormi tormi self-assigned this Apr 18, 2022
@tormi
Copy link
Member Author

tormi commented May 20, 2022

OK, what can gren do for me?
gren is a small helpful robot that will do for you just create a release from a tag and compile the release notes using issues or commits.

It also can generate a CHANGELOG.md file based on the release notes (or generate a brand new).

https://github.com/github-tools/github-release-notes
An example of usage: https://github.com/matcornic/hugo-theme-learn#releasing

@greg-1-anderson
Copy link
Contributor

Is this for a Pantheon custom upstream? Pantheon upstreams always release from branches, not tags. If you want to simulate a Semantic Versioning based release mechanism, I would recommend:

  • Name your default branch default
  • Make semver tags off of the default branch as usual
  • When making a release tag, merge the result into the branch Pantheon is releasing from. This has historically been the master branch, but can now be main instead. (Only the upstream: Pantheon sites themselves still must use the master branch for the dev environment)

To allow users to keep track of what version of your upstream they are using, you could write a VERSION fill to the root of your upstream repo.

@tormi
Copy link
Member Author

tormi commented Jul 3, 2023

Is this for a Pantheon custom upstream?

No, this is not related to Pantheon.

If you want to simulate a Semantic Versioning based release mechanism, I would recommend..

Thanks for your valuable input, Greg!

@tormi
Copy link
Member Author

tormi commented Jul 3, 2023

This is how drupal-composer/drupal-project handles branch naming:

Screenshot 2023-07-03 at 17 32 09

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

No branches or pull requests

2 participants