Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes sync workflow and syncs YAML with GH #44

Merged
merged 4 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions github/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,7 @@ repositories:
- ipdx
push:
- Repos - Go
- Merge - Go
visibility: public
go-detect-race:
collaborators:
Expand Down Expand Up @@ -1661,6 +1662,7 @@ repositories:
- Stebalien
push:
- web3-bot
description: Demo plugin for Kubo IPFS daemon
files:
.github/workflows/stale.yml:
content: .github/workflows/stale.yml
Expand Down Expand Up @@ -2777,14 +2779,13 @@ repositories:
- cwaring
- johnnymatthews
maintain:
- BlocksOnAChain
- TheDiscordian
- hugomrdias
- walkerlj0
- yusefnapora
- dannys03
- DannyS03
- jennijuju
push:
- Annamarie2019
- TMoMoreau
- gmasgras
- johndmulhausen
Expand Down Expand Up @@ -3602,6 +3603,32 @@ repositories:
- Repos - JavaScript
- admin
visibility: public
js-kubo-rpc-client:
branch_protection:
master: {}
release: {}
release-*: {}
collaborators:
push:
- web3-bot
description: A client library for the Kubo RPC API
teams:
admin:
- admin
- w3dt-stewards
- ipdx
pull:
- contributors
push:
- Maintainers
- Merge - Go
- Repos - Go
topics:
- ipfs
- http-client
- rpc-client
- kubo
visibility: public
js-level-pull-blob-store:
collaborators:
push:
Expand All @@ -3621,7 +3648,7 @@ repositories:
- JS Core Team
- Repos - JavaScript
visibility: public
js.ipfs.io:
js.ipfs.tech:
branch_protection:
master: {}
collaborators:
Expand All @@ -3631,11 +3658,12 @@ repositories:
files:
.github/workflows/stale.yml:
content: .github/workflows/stale.yml
overwrite_on_create: true
teams:
admin:
- admin
- w3dt-stewards
- ipdx
- w3dt-stewards
maintain:
- Maintainers
push:
Expand Down Expand Up @@ -4033,32 +4061,6 @@ repositories:
maintain:
- TestGround
visibility: public
js-kubo-rpc-client:
branch_protection:
master: {}
release: {}
release-*: {}
collaborators:
push:
- web3-bot
description: A client library for the Kubo RPC API
teams:
admin:
- admin
- w3dt-stewards
- ipdx
pull:
- contributors
push:
- Maintainers
- Merge - Go
- Repos - Go
topics:
- ipfs
- http-client
- rpc-client
- kubo
visibility: public
teams:
CI:
description: continous integration
Expand Down Expand Up @@ -4807,8 +4809,8 @@ teams:
# - be ready to triage/review org configuration change request in github-mgmt
maintainer:
- aschmahmann
- biglep
- lidel
- BigLep
member:
- guseggert
- willscott
Expand Down Expand Up @@ -4903,8 +4905,6 @@ teams:
- jacobheun
- lidel
member:
- Gozala
- achingbrain
- eshon
- pooja
- SgtPooki
privacy: closed
23 changes: 18 additions & 5 deletions scripts/src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,26 @@ export class GitHub {
async getRepositoryFile(repository: string, path: string) {
core.info(`Checking if ${repository}/${path} exists...`)
try {
return (
await this.client.repos.getContent({
const repo = (
await this.client.repos.get({
owner: env.GITHUB_ORG,
repo: repository,
path
repo: repository
})
).data as {path: string; url: string}
).data
if (repo.owner.login === env.GITHUB_ORG && repo.name === repository) {
return (
await this.client.repos.getContent({
owner: env.GITHUB_ORG,
repo: repository,
path
})
).data as {path: string; url: string}
} else {
core.debug(
`${env.GITHUB_ORG}/${repository} has moved to ${repo.owner.login}/${repo.name}`
)
return undefined
}
} catch (e) {
core.debug(JSON.stringify(e))
return undefined
Expand Down