Skip to content

Commit 44e724d

Browse files
authored
Merge pull request #877 from Adez017/Experiment
Added Issue type to workflow
2 parents cb7d781 + f1a024d commit 44e724d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/autolabler.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
labels: ["recode", "level 1", "hacktoberfest-accepted"]
2828
});
2929
30-
console.log(`Added labels [recode, level 1,hacktoberfest-accepted] to PR #${prNumber}`);
30+
console.log(`Added labels [recode, level 1, hacktoberfest-accepted] to PR #${prNumber}`);
3131
3232
- name: Add labels to Issue
3333
if: github.event_name == 'issues'
@@ -43,3 +43,16 @@ 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"}'

0 commit comments

Comments
 (0)