Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Ping maintainers on stale branch review issues (#6326)

Copilota923e25dca2e
diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml
index f8d769a6..9845be74 100644
--- a/.github/workflows/stale-branches.yml
+++ b/.github/workflows/stale-branches.yml
@@ -23,7 +23,7 @@ jobs:
const now = Date.now();
const repoUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}`;
- const { data: openPullRequests } = await github.paginate(github.rest.pulls.list, {
+ const openPullRequests = await github.paginate(github.rest.pulls.list, {
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
@@ -36,14 +36,14 @@ jobs:
.map(pr => pr.head.ref)
);
- const { data: openIssues } = await github.paginate(github.rest.issues.listForRepo, {
+ const openIssues = await github.paginate(github.rest.issues.listForRepo, {
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
per_page: 100,
});
- const { data: branches } = await github.paginate(github.rest.repos.listBranches, {
+ const branches = await github.paginate(github.rest.repos.listBranches, {
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 100,
@@ -80,7 +80,7 @@ jobs:
`- Last updated: ${new Date(lastUpdated).toISOString()}`,
`- Branch URL: ${repoUrl}/tree/${encodeURIComponent(branch.name)}`,
'',
- 'A maintainer should review whether this branch should be kept, merged, or removed.',
+ '@mochajs/maintenance-crew, could someone please review whether this branch should be kept, merged, or removed?',
].join('\n');
try {