-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update update-set-implementation-lists.yml
- Loading branch information
1 parent
570c981
commit 1bf105b
Showing
1 changed file
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,35 +139,32 @@ jobs: | |
//console.log("Issues to update: ", issuesToUpdate); | ||
//console.log("Issues to create: ", issuesToCreate); | ||
issuesToUpdate.forEach(issue => { | ||
for (const issue of issuesToUpdate) { | ||
github.rest.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: issue.number, | ||
body: issue.body, | ||
state: issue.state | ||
}); | ||
}); | ||
issuesToCreate.slice(0, 1).forEach(issue => { | ||
const act = async () => { | ||
const result = await github.rest.issues.create({ | ||
} | ||
for (const issue of issuesToCreate.slice(0, 1)) { | ||
const result = await github.rest.issues.create({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
title: issue.title, | ||
body: issue.body, | ||
labels: ["tracking set"] | ||
}); | ||
if (issue.state === "closed") { | ||
github.rest.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
title: issue.title, | ||
body: issue.body, | ||
labels: ["tracking set"] | ||
issue_number: result.number, | ||
state: issue.state | ||
}); | ||
if (issue.state === "closed") { | ||
github.rest.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: result.number, | ||
state: issue.state | ||
}); | ||
} | ||
}; | ||
//act(); | ||
}); | ||
} | ||
} | ||
- uses: actions/[email protected] | ||
id: updatesetimplementations | ||
with: | ||
|