From 128c3ababad8e7932c27c18f54542c844d45acbc Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Wed, 23 Oct 2024 12:20:33 +0800 Subject: [PATCH] add auto close issues workflow --- .github/workflows/issues.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/issues.yml diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 0000000..3ab510f --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,23 @@ +name: Close Issues + +on: + issues: + types: [opened] + +jobs: + close: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: mihomo-party-org/auto-close-isssues + + - uses: actions/setup-go@v5 + with: + go-version: '1.23' + + - env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} + API_URL: ${{ secrets.API_URL }} + API_KEY: ${{ secrets.API_KEY }} + run: go run main.go \ No newline at end of file