From 9712628ec5cb3c0b3d87bf62b198e7f9bf289b52 Mon Sep 17 00:00:00 2001 From: aditya singh rathore Date: Thu, 9 Oct 2025 23:50:07 +0530 Subject: [PATCH 1/2] Added Issue type to workflow Co-Authored-By: Sanjay Viswanathan --- .github/workflows/autolabler.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/autolabler.yml b/.github/workflows/autolabler.yml index 88370966..c97f78d7 100644 --- a/.github/workflows/autolabler.yml +++ b/.github/workflows/autolabler.yml @@ -43,3 +43,17 @@ jobs: }); console.log(`Added labels [recode, level 1, hacktoberfest-accepted] to Issue #${issueNumber}`); + + - name: Set Issue Type to Bug + if: github.event_name == 'issues' + run: | + ISSUE_NUMBER=${{ github.event.issue.number }} + REPO=${{ github.repository }} + TOKEN=${{ secrets.GITHUB_TOKEN }} + + curl --request PATCH \ + --url https://api.github.com/repos/${REPO}/issues/${ISSUE_NUMBER} \ + --header "authorization: token ${TOKEN}" \ + --header "content-type: application/json" \ + --data '{"type":"Bug"}' + From f1a024d993521d30b6f5818deb55812e80f74c56 Mon Sep 17 00:00:00 2001 From: aditya singh rathore Date: Thu, 9 Oct 2025 23:53:31 +0530 Subject: [PATCH 2/2] fix Co-Authored-By: Sanjay Viswanathan --- .github/workflows/autolabler.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/autolabler.yml b/.github/workflows/autolabler.yml index c97f78d7..36ea4bed 100644 --- a/.github/workflows/autolabler.yml +++ b/.github/workflows/autolabler.yml @@ -27,7 +27,7 @@ jobs: labels: ["recode", "level 1", "hacktoberfest-accepted"] }); - console.log(`Added labels [recode, level 1,hacktoberfest-accepted] to PR #${prNumber}`); + console.log(`Added labels [recode, level 1, hacktoberfest-accepted] to PR #${prNumber}`); - name: Add labels to Issue if: github.event_name == 'issues' @@ -56,4 +56,3 @@ jobs: --header "authorization: token ${TOKEN}" \ --header "content-type: application/json" \ --data '{"type":"Bug"}' -