WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

build(deps): bump urllib3 from 2.2.2 to 2.5.0 in /.github/actions/merge #13

build(deps): bump urllib3 from 2.2.2 to 2.5.0 in /.github/actions/merge

build(deps): bump urllib3 from 2.2.2 to 2.5.0 in /.github/actions/merge #13

Workflow file for this run

name: Close and lock spam issues and PRs
# WARNING: Do NOT use org level secrets or checkout any code in this
# workflow
on:
issues:
types: [labeled]
pull_request:
types: [labeled]
pull_request_target:
types: [labeled]
workflow_dispatch:
jobs:
spam_issues:
if: github.event.label.name == 'spam' && github.event.issue != null
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Close the issue
run: gh issue close "$ISSUE_NUM" --reason "not planned"
- name: Lock the issue
run: |
if [ "$(gh api repos/"$GH_REPO"/issues/"$ISSUE_NUM" --jq '.locked')" = "false" ]; then
gh issue lock "$ISSUE_NUM" --reason "spam"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
ISSUE_NUM: ${{ github.event.issue.number }}
spam_prs:
if: github.event.label.name == 'spam' && github.event.pull_request != null
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Close the PR
run: gh pr close "$PR_NUM"
- name: Lock the PR
run: |
if [ "$(gh api repos/"$GH_REPO"/issues/"$PR_NUM" --jq '.locked')" = "false" ]; then
gh pr lock "$PR_NUM" --reason "spam"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUM: ${{ github.event.pull_request.number }}