disable remove labels for issues

This commit is contained in:
Andras Bacsai
2024-09-19 12:47:35 +02:00
parent 240352f4b2
commit 6ec1b9b3f5

View File

@@ -3,10 +3,6 @@ name: Remove Labels and Assignees on Issue Close
on: on:
issues: issues:
types: [closed] types: [closed]
pull_request:
types: [closed]
pull_request_target:
types: [closed]
jobs: jobs:
remove-labels-and-assignees: remove-labels-and-assignees:
@@ -18,7 +14,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
const { owner, repo } = context.repo; const { owner, repo } = context.repo;
async function processIssue(issueNumber) { async function processIssue(issueNumber) {
try { try {
const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue({ const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue({