Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/backport-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
'X-GitHub-Api-Version': '2022-11-28'
}
});
core.info(`Search results: ${searchResults}`)
if (searchResults.data.total_count === 0) {
core.info(`No 'internal/main' issue found for PR #${pr.number}. Exiting.`);
return;
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,15 @@ jobs:
const repo = context.repo.repo;
const owner = context.repo.owner;

// Get terraform-maintainers team
const { data: teamMembers } = await github.rest.teams.listMembersInOrg({
org: "rancher",
team_slug: "terraform-maintainers"
});
const newAssignees = teamMembers.map(member => member.login);

// Note: can't get terraform-maintainers team, the default token can't access org level objects
// Create the sub-issue
const newIssue = await github.rest.issues.create({
owner: owner,
repo: repo,
title: "Backport #" + parentIssueNumber + " to release/v0",
body: "Backport #" + parentIssueNumber + " to release/v0",
labels: ['release/v0'],
assignees: newAssignees // assign terraform-maintainers to sub-issue
assignees: ['matttrach']
});

const subIssueId = newIssue.data.id;
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/main-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ jobs:
const versionLabel = releaseLabel.name.replace('release/', 'version/');
newLabels.push(versionLabel);
}
// Get terraform-maintainers team
const { data: teamMembers } = await github.rest.teams.listMembersInOrg({
org: "rancher",
team_slug: "terraform-maintainers"
});
const newAssignees = teamMembers.map(member => member.login);

// Note: can't get terraform-maintainers team, the default token can't access org level objects
// Create the main issue
// https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#create-an-issue
// Note: issues can't have teams assigned to them
Expand All @@ -43,5 +37,5 @@ jobs:
"Please add comments for user issues which this issue addresses. \n\n" +
"Description copied from PR: \n" + pr.body,
labels: newLabels,
assignees: newAssignees // assign terraform-maintainers to issue
assignees: ['matttrach']
});
Loading