File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 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'
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"}'
You can’t perform that action at this time.
0 commit comments