Skip to content

Commit 9712628

Browse files
Adez017sanjay-kv
andcommitted
Added Issue type to workflow
Co-Authored-By: Sanjay Viswanathan <[email protected]>
1 parent 0837923 commit 9712628

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/autolabler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,17 @@ jobs:
4343
});
4444
4545
console.log(`Added labels [recode, level 1, hacktoberfest-accepted] to Issue #${issueNumber}`);
46+
47+
- name: Set Issue Type to Bug
48+
if: github.event_name == 'issues'
49+
run: |
50+
ISSUE_NUMBER=${{ github.event.issue.number }}
51+
REPO=${{ github.repository }}
52+
TOKEN=${{ secrets.GITHUB_TOKEN }}
53+
54+
curl --request PATCH \
55+
--url https://api.github.com/repos/${REPO}/issues/${ISSUE_NUMBER} \
56+
--header "authorization: token ${TOKEN}" \
57+
--header "content-type: application/json" \
58+
--data '{"type":"Bug"}'
59+

0 commit comments

Comments
 (0)