Skip to content

ci: Add github action for tagging every merged PR - #287

Open
furtib wants to merge 4 commits into
Ericsson:mainfrom
furtib:auto-tag-every-commit
Open

ci: Add github action for tagging every merged PR#287
furtib wants to merge 4 commits into
Ericsson:mainfrom
furtib:auto-tag-every-commit

Conversation

@furtib

@furtib furtib commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Why:
We want to tag every commit made to main for easier integration and testing for end users.

What:

  • Added a GitHub Action that creates a tag for every merged PR.
    Use the date and time for the tag name.

Addresses:
#285

@furtib
furtib requested a review from Szelethus August 13, 2026 11:37
@furtib furtib self-assigned this Aug 13, 2026
@furtib furtib added the CI 📦 label Aug 13, 2026

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/pr-tag.yaml Outdated
jobs:
tag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to specify this?

@furtib
furtib marked this pull request as draft August 13, 2026 12:56
nettle
nettle previously requested changes Aug 13, 2026
Comment thread .github/workflows/pr-tag.yaml Outdated
@furtib
furtib force-pushed the auto-tag-every-commit branch from 17af99e to 2528064 Compare August 19, 2026 08:29
@Szelethus

Szelethus commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

If we decide to stick with this option, we should use custom_release_rules to create a PR title trigger for major versions.

On the other hand... if we want an all-in-one solution (PR title linting, automatic versioning, etc) the industry standard seems to be https://github.com/semantic-release/semantic-release, albeit its a significantly more complex tool.

Edit: NVM, it seems like semantic-release has no linting. So what I've suggested matters a little less.

@furtib
furtib marked this pull request as ready for review August 25, 2026 11:53
@furtib
furtib force-pushed the auto-tag-every-commit branch from 2528064 to 8ee5bff Compare August 25, 2026 11:55

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a rather invasive change for our workflow -- if it doesn't work out, we should revert it. But for now, I'm in favour of giving this a shot.

@Szelethus
Szelethus dismissed nettle’s stale review August 25, 2026 12:01

We removed any trailing bits from semantic versioning as requested. With features like this, the test of pudding is in eating. We tried this out on a throwaway repo, and it works as advertised; if we later decide the this isn't a good fit for this repo, we could adjust or revert it altogether.

@furtib furtib changed the title Add github Ci action for tagging every merged PR ci: Add github action for tagging every merged PR Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants