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 2 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
68 changes: 26 additions & 42 deletions github/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ members:
- protocollabsit-readonly
- ratoshniuk
- raulk
galargh marked this conversation as resolved.
Show resolved Hide resolved
- reidlw
- requilence
- ribasushi
- richardschneider
Expand Down Expand Up @@ -747,8 +746,7 @@ repositories:
/github/ipfs.yml @ipfs/github-mgmt-stewards @ipfs/ipdx
teams:
# ATTN: do not add teams with push+ access, use github-mgmt stewards team membership instead
maintain:
- ipdx # NOTE: ipdx are the creators of GitHub Management framework
maintain: []
galargh marked this conversation as resolved.
Show resolved Hide resolved
push:
- github-mgmt stewards
visibility: public
Expand Down Expand Up @@ -1003,6 +1001,7 @@ repositories:
- ipdx
push:
- Repos - Go
- Merge - Go
visibility: public
go-detect-race:
collaborators:
Expand Down Expand Up @@ -1661,6 +1660,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 +2777,13 @@ repositories:
- cwaring
- johnnymatthews
maintain:
- BlocksOnAChain
- TheDiscordian
- hugomrdias
- walkerlj0
- yusefnapora
- dannys03
- DannyS03
- jennijuju
push:
- Annamarie2019
- TMoMoreau
- gmasgras
- johndmulhausen
Expand Down Expand Up @@ -3602,6 +3601,23 @@ repositories:
- Repos - JavaScript
- admin
visibility: public
js-kubo-rpc-client:
collaborators:
admin:
- SgtPooki
push:
- web3-bot
description: A client library for the Kubo RPC API
teams:
admin: []
pull: []
push: []
topics:
- http-client
- ipfs
- kubo
- rpc-client
visibility: public
galargh marked this conversation as resolved.
Show resolved Hide resolved
js-level-pull-blob-store:
collaborators:
push:
Expand All @@ -3621,21 +3637,18 @@ repositories:
- JS Core Team
- Repos - JavaScript
visibility: public
js.ipfs.io:
js.ipfs.tech:
branch_protection:
master: {}
collaborators:
push:
- web3-bot
description: The Website for the JavaScript implementation of the IPFS protocol
galargh marked this conversation as resolved.
Show resolved Hide resolved
files:
.github/workflows/stale.yml:
content: .github/workflows/stale.yml
teams:
admin:
- admin
- w3dt-stewards
- ipdx
- w3dt-stewards
maintain:
- Maintainers
push:
Expand Down Expand Up @@ -4033,32 +4046,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 +4794,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 @@ -4875,7 +4862,6 @@ teams:
- laurentsenta
- marten-seemann
- petar
galargh marked this conversation as resolved.
Show resolved Hide resolved
- reidlw
privacy: closed
website-deployers:
description: We can deploy the websites
Expand Down Expand Up @@ -4903,8 +4889,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