Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update remove-labels-and-assignees-on-close.yml

peaklabs-dev7037c779e2e1
diff --git a/.github/workflows/remove-labels-and-assignees-on-close.yml b/.github/workflows/remove-labels-and-assignees-on-close.yml
index 81f7d35f3b..04d62623cc 100644
--- a/.github/workflows/remove-labels-and-assignees-on-close.yml
+++ b/.github/workflows/remove-labels-and-assignees-on-close.yml
@@ -7,9 +7,6 @@ on:
types: [closed]
pull_request_target:
types: [closed]
- workflow_run:
- workflows: ["*"]
- types: [completed]
jobs:
remove-labels-and-assignees:
@@ -65,14 +62,6 @@ jobs:
if (context.eventName === 'issues' || context.eventName === 'pull_request' || context.eventName === 'pull_request_target') {
const issue = context.payload.issue || context.payload.pull_request;
await processIssue(issue.number);
- } else if (context.eventName === 'workflow_run') {
- const { data: closedIssues } = await github.rest.search.issuesAndPullRequests({
- q: `repo:${owner}/${repo} is:issue is:closed closed:${context.payload.workflow_run.updated_at}`,
- per_page: 100
- });
- for (const issue of closedIssues.items) {
- await processIssue(issue.number);
- }
}
if (context.eventName === 'pull_request' || context.eventName === 'pull_request_target') {