diff --git a/src/action.js b/src/action.js index 9aec986d6..182b43daf 100644 --- a/src/action.js +++ b/src/action.js @@ -24,9 +24,6 @@ const getTeamMembers = async (octokit, org, teamNames) => { newErr.stack += `\nCaused by: ${err.stack}`; throw newErr; }); - - console.log(JSON.stringify(teamMemberRequests)); - return teamMemberRequests .map((response) => response.data) .reduce((all, cur) => all.concat(cur), []) diff --git a/src/temp.json b/src/temp.json deleted file mode 100644 index f95c081c7..000000000 --- a/src/temp.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "status": 200, - "url": "https://api.github.com/orgs/trailheadapps/teams/test-team/members", - "headers": { - "access-control-allow-origin": "*", - "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", - "cache-control": "private, max-age=60, s-maxage=60", - "connection": "close", - "content-encoding": "gzip", - "content-security-policy": "default-src 'none'", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 17 Jan 2022 08:50:31 GMT", - "etag": "W/\"bacc8f2add5b45a2dbaea45dd49f8b07de78a9717dfa6ef54a86410621151b24\"", - "github-authentication-token-expiration": "2022-01-24 08:25:53 UTC", - "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "server": "GitHub.com", - "strict-transport-security": "max-age=31536000; includeSubdomains; preload", - "transfer-encoding": "chunked", - "vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With", - "x-accepted-oauth-scopes": "admin:org, read:org, repo, user, write:org", - "x-content-type-options": "nosniff", - "x-frame-options": "deny", - "x-github-media-type": "github.v3; format=json", - "x-github-request-id": "0481:0D49:EBF1A2:1F5F24E:61E52DD7", - "x-oauth-scopes": "read:org, repo", - "x-ratelimit-limit": "5000", - "x-ratelimit-remaining": "4996", - "x-ratelimit-reset": "1642412773", - "x-ratelimit-resource": "core", - "x-ratelimit-used": "4", - "x-xss-protection": "0" - }, - "data": [ - { - "login": "pozil", - "id": 5071767, - "node_id": "MDQ6VXNlcjUwNzE3Njc=", - "avatar_url": "https://avatars.githubusercontent.com/u/5071767?u=b8193cb38d2ebd821e9c333761912d127cbe300d&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pozil", - "html_url": "https://github.com/pozil", - "followers_url": "https://api.github.com/users/pozil/followers", - "following_url": "https://api.github.com/users/pozil/following{/other_user}", - "gists_url": "https://api.github.com/users/pozil/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pozil/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pozil/subscriptions", - "organizations_url": "https://api.github.com/users/pozil/orgs", - "repos_url": "https://api.github.com/users/pozil/repos", - "events_url": "https://api.github.com/users/pozil/events{/privacy}", - "received_events_url": "https://api.github.com/users/pozil/received_events", - "type": "User", - "site_admin": false - } - ] - } -]