Browse Source

Update issue-check.yml

pull/4046/head
ImSwordQueen 12 months ago
parent
commit
130878a951
  1. 9
      .github/workflows/issue-check.yml

9
.github/workflows/issue-check.yml

@ -1,4 +1,4 @@
name: MSHUWAP Issue Handler name: Check if issue is a known issue
on: on:
issues: issues:
@ -7,14 +7,13 @@ on:
jobs: jobs:
check_keywords: check_keywords:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Log check message - name: Log dynamic message with issue title
run: | run: |
echo "Check if issue is a known issue" echo "Checking issue: ${{ github.event.issue.title }} for known keywords..."
- name: Check for keywords in issue title and body - name: Check for keywords in issue title and body
id: check_keywords id: check_keywords
@ -49,5 +48,5 @@ jobs:
# Close the issue # Close the issue
curl -X PATCH \ curl -X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d '{"state": "closed", "reason": "not planned"}' \ -d '{"state": "closed", "reason": "notplanned"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER" "https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER"

Loading…
Cancel
Save