mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2024-10-11 18:07:24 +08:00
fix: broken workflow
This commit is contained in:
parent
925dd62fe3
commit
c48c9e75f9
4
.github/workflows/label-issue.yml
vendored
4
.github/workflows/label-issue.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
if (issue.labels.some(label => label.name === 'topic-change')) {
|
||||
if (roadmapUrl) {
|
||||
const roadmapSlug = new URL(roadmapUrl[0]).pathname.replace(/\//, '');
|
||||
github.issues.addLabels({
|
||||
github.rest.issues.addLabels({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: issue.number,
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
|
||||
// Close the issue if it has no roadmap URL
|
||||
if (!roadmapUrl) {
|
||||
github.issues.update({
|
||||
github.rest.issues.update({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: issue.number,
|
||||
|
Loading…
Reference in New Issue
Block a user