Skip to content

fix(remediation): use conventional-commit PR titles and sync existing PRs - #19

Merged
franzramadhan merged 2 commits into
mainfrom
fix/remediation-pr-title-format-and-upsert-update
Aug 6, 2026
Merged

fix(remediation): use conventional-commit PR titles and sync existing PRs#19
franzramadhan merged 2 commits into
mainfrom
fix/remediation-pr-title-format-and-upsert-update

Conversation

@franzramadhan

Copy link
Copy Markdown
Contributor

Summary

  • Remediator PR titles now follow Conventional Commits (fix(<rule-id>): <description>) instead of a git-cascade: prefix.
  • CreateOrUpdatePullRequest now edits the title/body of an already-open PR on the same head branch when they've drifted from the current fix, instead of leaving stale titles/bodies untouched on rerun.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./...
  • Added TestCreateOrUpdatePullRequest_UpdatesTitleWhenChanged and renamed the no-op case to TestCreateOrUpdatePullRequest_ReturnsExistingWhenOpenAndUnchanged

… PRs

Remediator PR titles now follow fix(<rule-id>): <description> instead of
a git-cascade: prefix. CreateOrUpdatePullRequest now edits the title/body
of an already-open PR on the same head branch when they've drifted from
the current fix, instead of leaving stale titles/bodies untouched on rerun.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.06%. Comparing base (3c43703) to head (75d1ca2).

Files with missing lines Patch % Lines
internal/github/write.go 80.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
- Coverage   78.06%   78.06%   -0.01%     
==========================================
  Files          41       41              
  Lines        3150     3159       +9     
==========================================
+ Hits         2459     2466       +7     
- Misses        549      550       +1     
- Partials      142      143       +1     
Flag Coverage Δ
unittests 78.06% <85.71%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@franzramadhan
franzramadhan merged commit 2d23c56 into main Aug 6, 2026
1 check passed
@franzramadhan
franzramadhan deleted the fix/remediation-pr-title-format-and-upsert-update branch August 6, 2026 09:02
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