fix: backport PR need individual assignees (#88) (#91)

(cherry picked from commit 66b964f45c)
Signed-off-by: matttrach <matt.trachier@suse.com>
This commit is contained in:
Matt Trachier 2025-08-26 13:34:53 -05:00 committed by GitHub
parent 60ac9af3e9
commit 911c134974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@ jobs:
const owner = context.repo.owner;
const repo = context.repo.repo;
const mergeCommitSha = context.payload.head_commit.id;
const assignees = ['matttrach', 'jiaqiluo', 'HarrisonWAffel'];
const { data: associatedPrs } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
owner,
@ -99,9 +100,9 @@ jobs:
head: newBranchName,
base: targetBranch,
body: "This pull request cherry-picks the changes from #" + pr.number + " into " + targetBranch + "\n" +
"Addresses #" + subIssueNumber + "for #" + mainIssue.number + " \n\n" +
"Addresses #" + subIssueNumber + " for #" + mainIssue.number + " \n\n" +
"**WARNING!**: to avoid having to resolve merge conflicts this PR is generated with `git cherry-pick -X theirs`.\n" +
"Please make sure to carefully inspect this PR so that you don't accidentally revert anything!",
assignees: ['terraform-maintainers']
assignees: assignees
});
}

View File

@ -42,7 +42,7 @@ jobs:
const repo = context.repo.repo;
const owner = context.repo.owner;
const parentIssueBody = parentIssue.body;
const assignees = ['matttrach', 'jiaqiluo', 'HarrisonWAffel']
const assignees = ['matttrach', 'jiaqiluo', 'HarrisonWAffel'];
const prNumber = ${{ steps.extract_pr.outputs.result }};

View File

@ -23,7 +23,7 @@ jobs:
if (releaseLabel) {
newLabels.push(releaseLabel);
}
const assignees = ['matttrach', 'jiaqiluo', 'HarrisonWAffel']
const assignees = ['matttrach', 'jiaqiluo', 'HarrisonWAffel'];
// Note: can't get terraform-maintainers team, the default token can't access org level objects
// Create the main issue