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 27
27
labels: ["recode", "level 1", "hacktoberfest-accepted"]
28
28
});
29
29
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}`);
31
31
32
32
- name : Add labels to Issue
33
33
if : github.event_name == 'issues'
43
43
});
44
44
45
45
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