Skip to content

Commit

Permalink
chore: add debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatsu committed Oct 19, 2023
1 parent 07e6823 commit 8d46e5e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export async function run(): Promise<void> {

const teamApprovalStatus: TeamApprovalStatus[] = await Promise.all(
conditions.map(async c => {
console.log(c, 'c')
const res = await axios.get(
`https://api.github.com/orgs/${owner}/teams/${c.team}/members`,
{
Expand All @@ -67,8 +68,17 @@ export async function run(): Promise<void> {
}
)

console.log(res, 'res')
if (!res.data) {
core.setFailed(
'There are no teams for this organization. Or the url is incorrect.'
)
}

const members = res.data

console.log(members, 'members')

return {
team: c.team,
minimumCount: c.minimumCount,
Expand Down

0 comments on commit 8d46e5e

Please sign in to comment.