From 392e5a56949da38c11a5f1a9feac53ea77414f07 Mon Sep 17 00:00:00 2001 From: ImSwordQueen <52015098+ImSwordQueen@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:06:55 +0100 Subject: [PATCH] Update issue-check.yml --- .github/workflows/issue-check.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issue-check.yml b/.github/workflows/issue-check.yml index d1c1df3..afdb6e1 100644 --- a/.github/workflows/issue-check.yml +++ b/.github/workflows/issue-check.yml @@ -1,19 +1,22 @@ -name: Check if issue is a known issue +name: MSHUWAP Issue Handler on: issues: - types: [opened] # Triggers when an issue is opened + types: [opened] # Trigger when an issue is opened jobs: check_keywords: runs-on: ubuntu-latest + steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Log dynamic message with issue title + - name: Log Custom Message with Issue Information run: | - echo "Checking issue: ${{ github.event.issue.title }} for known keywords..." + # Log the custom message with issue title and number for context + echo "Checking Issue #${{ github.event.issue.number }}: ${{ github.event.issue.title }}" + echo "Check if issue is a known issue" - name: Check for keywords in issue title and body id: check_keywords @@ -48,5 +51,5 @@ jobs: # Close the issue curl -X PATCH \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -d '{"state": "closed", "reason": "notplanned"}' \ + -d '{"state": "closed"}' \ "https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER"