Skip to content

TPT-4298: Added PR title checking to lint workflow and new clean up release notes workflow#913

Open
ezilber-akamai wants to merge 3 commits intolinode:mainfrom
ezilber-akamai:TPT-4298-jira-id-in-prs
Open

TPT-4298: Added PR title checking to lint workflow and new clean up release notes workflow#913
ezilber-akamai wants to merge 3 commits intolinode:mainfrom
ezilber-akamai:TPT-4298-jira-id-in-prs

Conversation

@ezilber-akamai
Copy link
Contributor

📝 Description

Added a new step in the lint workflow to fail if the PR title does not begin with "TPT-1234:" (works with and without a space between the colon and description).

Also added a new workflow to run upon release publish to edit the release notes to remove the Jira ticket ID prefixes from patch notes.

✔️ How to Test

To test the PR title enforcement, edit the title of this PR to remove the Jira ticket ID and rerun the lint job. It should fail immediately. Then, add the Jira ticket ID back to the PR title and it should pass.

To test the release note cleanup job, check out this PR locally and merge it into your fork. Then, cut a test release to your fork. Upon generating the release notes, the TPT-**** prefix will still be there. Publish the release and verify that the new workflow is triggered. After it finishes, confirm that the release notes were correctly updated.

@ezilber-akamai ezilber-akamai requested a review from a team as a code owner March 13, 2026 16:00
Copilot AI review requested due to automatic review settings March 13, 2026 16:00
@ezilber-akamai ezilber-akamai added the repo-ci-improvement for improvements in the repository or CI workflow in the changelog. label Mar 13, 2026
@ezilber-akamai ezilber-akamai requested review from jriddle-linode and lgarber-akamai and removed request for a team March 13, 2026 16:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds GitHub Actions automation to enforce Jira-prefixed PR titles during CI and to post-process published release notes by removing Jira ticket prefixes from generated changelog entries.

Changes:

  • Add a PR title validation step to the lint-tidy CI job to enforce TPT-1234: prefix format.
  • Introduce a new Clean Release Notes workflow that runs on release publish and updates the release body to remove TPT-####: prefixes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/ci.yml Adds a CI step to validate PR title format before lint/tidy runs.
.github/workflows/clean-release-notes.yml Adds a workflow to rewrite published release notes by stripping Jira-style prefixes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +29
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
TITLE=$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json title --jq '.title')
Copy link
Contributor Author

@ezilber-akamai ezilber-akamai Mar 13, 2026

Choose a reason for hiding this comment

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

I tried this initially. The issue was that ${{ github.event.pull_request.title }} does not update when you update the PR title, so rerunning the failed lint workflow with rerun failed jobs still failed even after fixing the PR title.

}

// Remove prefixes like "TPT-1234: " (including after markdown bullet points)
body = body.replace(/TPT-\d+:\s*/g, '');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can do this if we want, but do we want the TPT-#### to show up anywhere in the release notes?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do not see value of leaving TPT anywhere in the release notes

Copy link
Contributor

@mgwoj mgwoj left a comment

Choose a reason for hiding this comment

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

One suggestion IMHO should be applied

@ezilber-akamai ezilber-akamai requested a review from mgwoj March 13, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo-ci-improvement for improvements in the repository or CI workflow in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants