Skip to content

Commit

Permalink
fix: rename backport relation from master to source pr
Browse files Browse the repository at this point in the history
  • Loading branch information
arddor authored and marcbachmann committed Nov 25, 2024
1 parent 0ab791f commit 75cccbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backport.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function requestReviewers (context, prId, reviewers) {
function patchPullRequestBody (pr) {
const body = pr.body || ''
const indent = /Relations:\s+?( *)-/.exec(body)?.[1].length || 0
const msg = `Relations:\r\n${' '.repeat(indent)}- Master: #${pr.number}`
const msg = `Relations:\r\n${' '.repeat(indent)}- Source PR: #${pr.number}`
if (body.includes('Relations:')) return body.replace('Relations:', msg)
return `${msg}\n${body}`
}

0 comments on commit 75cccbb

Please sign in to comment.