Skip to content

Commit

Permalink
test cleanup and expire
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Sep 7, 2023
1 parent bf87e8f commit 1fd87ff
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/expire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ jobs:
core.info(`Closing #${pull['number']} (${pull['title']})`);
await github.rest.pulls.update({
owner: repoOwner,
repo: repoName,
pull_number: pull['number'],
state: 'closed',
});
# await github.rest.pulls.update({
# owner: repoOwner,
# repo: repoName,
# pull_number: pull['number'],
# state: 'closed',
# });
// Comment on closed PRs.
await github.rest.issues.createComment({
Expand All @@ -141,7 +141,9 @@ jobs:
body: `**\`Access on Demand\`** - request closed and branch deleted due to inactivity (no new commit) for at least ${{ inputs.expiry_hours }} hours`,
});
core.info(`pull ${pull}`);
expiredPulls.push(pull)
core.info(`expiredPull ${expiredPulls}`);
} else {
core.info(`Skipping #${pull['number']} (${pull['title']}) - not an AOD request`);
}
Expand Down

0 comments on commit 1fd87ff

Please sign in to comment.