diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-07-07 01:48:42 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-07-07 01:48:42 +0200 |
commit | 605d4c676fb126573e3267c6d45d3aee1860ba6d (patch) | |
tree | 0c2ea01f86597172cda16daa7aad215e3795eb91 /.github/workflows | |
parent | 7ef7178b1f4c9523137cfa9ed90f5883ee6449b5 (diff) | |
download | skyhanni-605d4c676fb126573e3267c6d45d3aee1860ba6d.tar.gz skyhanni-605d4c676fb126573e3267c6d45d3aee1860ba6d.tar.bz2 skyhanni-605d4c676fb126573e3267c6d45d3aee1860ba6d.zip |
remove label bug fix for now
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/label-bug-fix.yml | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.github/workflows/label-bug-fix.yml b/.github/workflows/label-bug-fix.yml deleted file mode 100644 index 71e00d27b..000000000 --- a/.github/workflows/label-bug-fix.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: "Bug Fix label" -on: - pull_request: - types: [ opened, edited, labeled ] - -jobs: - assign-label: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: label - env: - TITLE: ${{ github.event.pull_request.title }} - LABEL: Bug Fix - Sooner than Very Soon - uses: actions/github-script@v7 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - if(process.env.TITLE.split(":")[0].toUpperCase().includes("FIX")){ - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: [process.env.LABEL] - }) - }else{ - const {data} = await github.rest.issues.listLabelsOnIssue({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - }) - const filtered = data.filter(label => label.name == process.env.LABEL) - if(filtered.length == 1){ - github.rest.issues.removeLabel({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - name: process.env.LABEL - }) - } - } |