Skip to content

ci: ensure conventional commit PR title#307

Merged
kb-newrelic merged 7 commits intomainfrom
kbauer/enforce-semantic-convention-prs
May 8, 2025
Merged

ci: ensure conventional commit PR title#307
kb-newrelic merged 7 commits intomainfrom
kbauer/enforce-semantic-convention-prs

Conversation

@kb-newrelic
Copy link
Contributor

@kb-newrelic kb-newrelic commented May 6, 2025

Summary

  • Simple workflow to validate PR title to avoid the suggested commit message to not adhere to conventional commits and therefore end up excluded from the auto-generated changelogs in the draft release.
  • If it fails, it comments (like here when I removed the ci: prefix from the title) and fails the workflow

@kb-newrelic kb-newrelic requested a review from a team as a code owner May 6, 2025 20:22
@kb-newrelic kb-newrelic force-pushed the kbauer/enforce-semantic-convention-prs branch from 0a4d874 to 22c7e11 Compare May 6, 2025 20:26
@kb-newrelic kb-newrelic force-pushed the kbauer/enforce-semantic-convention-prs branch from 22c7e11 to 21497d1 Compare May 6, 2025 20:30
@kb-newrelic kb-newrelic changed the title ci: enforce conventional commit PRs test foobar May 6, 2025
@kb-newrelic kb-newrelic changed the title test foobar test foobar 2 May 6, 2025
@kb-newrelic kb-newrelic changed the title test foobar 2 test: foobar 2 May 6, 2025
@kb-newrelic kb-newrelic changed the title test: foobar 2 test foobar 2 May 6, 2025
@github-actions
Copy link

github-actions bot commented May 6, 2025

PR title '{"title":"test foobar 2"}' does not adhere to conventional commits. Change PR title to ensure that the suggested squash commit follows the conventions and thus ends up in the changelog.

@kb-newrelic kb-newrelic changed the title test foobar 2 ci: ensure conventional commit PR title May 6, 2025
@kb-newrelic kb-newrelic changed the title ci: ensure conventional commit PR title ensure conventional commit PR title May 6, 2025
@github-actions
Copy link

github-actions bot commented May 6, 2025

PR title 'ensure conventional commit PR title' does not adhere to conventional commits. Change PR title to ensure that the suggested squash commit follows the conventions and thus ends up in the changelog.

@kb-newrelic kb-newrelic changed the title ensure conventional commit PR title ci: ensure conventional commit PR title May 6, 2025
Copy link
Contributor

@mailo-nr mailo-nr left a comment

Choose a reason for hiding this comment

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

LGTM

@kb-newrelic kb-newrelic merged commit a2fa5ed into main May 8, 2025
13 of 14 checks passed
@kb-newrelic kb-newrelic deleted the kbauer/enforce-semantic-convention-prs branch May 8, 2025 17:04
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.

2 participants

Comments