Skip to content

Add a github workflow to automatically generate a new tag#6

Open
matheuslc wants to merge 2 commits intomainfrom
feat/auto-tag
Open

Add a github workflow to automatically generate a new tag#6
matheuslc wants to merge 2 commits intomainfrom
feat/auto-tag

Conversation

@matheuslc
Copy link
Copy Markdown

@matheuslc matheuslc commented Jul 11, 2022

What? ⛵

This is a suggestion to automatically create a new tag whenever we push something to main. The tag is based on semantic versioning and will look into the commit message to know if it is a major, minor, or patch.

As we squash commits before merging, we end up with just one commit. The auto-tag will use this commit to know the next version.

For example, our project is at version 1.0.0. A new Pull Request will be merged.
If you add #major to the commit, the next version tag will be 2.0.0
if you add #minor to the commit, the next version tag will be 1.1.0
if you add #patch to the commit, the next version tag will be 1.0.1

Why? 🤔

Checklist ☑️

  • I have added added tests for PR or I have justified why this PR doesn't need tests.
  • Swager definition added (if new route or route is adjusted)

Links 🌎

PS 🎮

@matheuslc matheuslc requested a review from graywolf336 July 11, 2022 16:53
@matheuslc matheuslc self-assigned this Jul 11, 2022
Comment thread .github/workflows/tag.yml
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Matheus Carmo seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

3 participants