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

upgrade (#9) #37

Merged
merged 2 commits into from
Sep 5, 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
2 changes: 1 addition & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
git_branch="${GITHUB_REF_NAME}-sync-${TF_WORKSPACE}"
git checkout -B "${git_branch}"
git add --all
git diff-index --quiet HEAD || git commit --message="chore: sync ${TF_WORKSPACE} (#${GITHUB_RUN_NUMBER})'
git diff-index --quiet HEAD || git commit --message="chore: sync ${TF_WORKSPACE} (#${GITHUB_RUN_NUMBER})"
git push origin "${git_branch}" --force
pull_request:
needs: [prepare, sync]
Expand Down
19 changes: 19 additions & 0 deletions github/testground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ members:
- mxinden
repositories:
docs:
default_branch: master
description: Content for docs.testground.ai
teams:
admin:
Expand All @@ -34,6 +35,7 @@ repositories:
github-mgmt:
branch_protection:
master: {}
default_branch: master
files:
CODEOWNERS:
content: >
Expand All @@ -46,6 +48,7 @@ repositories:
collaborators:
push:
- Stebalien
default_branch: master
description: Testground infrastructure - playbooks and scripts for setting up a
Kubernetes cluster for Testground
teams:
Expand All @@ -64,21 +67,30 @@ repositories:
collaborators:
admin:
- brdji
default_branch: master
description: An example project intended to help newcomers familiarize
themselves with the Testground tool
visibility: public
learning-example-tg:
branch_protection:
master: {}
collaborators:
admin:
- brdji
push:
- StefanGajic
- bokimilinkovic
default_branch: master
description: Testground project with test plans and examples for the learning project
visibility: public
pl-infra-testground:
default_branch: master
visibility: private
plan-templates:
collaborators:
admin:
- coryschwartz
default_branch: master
teams:
admin:
- admins
Expand All @@ -87,6 +99,7 @@ repositories:
- maintainers
visibility: public
pm:
default_branch: master
description: Project management of Testground
teams:
admin:
Expand All @@ -99,6 +112,7 @@ repositories:
collaborators:
push:
- Stebalien
default_branch: master
description: "Testground: SDK for developing test plans in Go"
teams:
admin:
Expand All @@ -111,6 +125,7 @@ repositories:
collaborators:
admin:
- hacdias
default_branch: master
teams:
admin:
- admins
Expand All @@ -119,6 +134,7 @@ repositories:
- maintainers
visibility: public
sdk-rust:
default_branch: master
teams:
admin:
- admins
Expand All @@ -132,6 +148,7 @@ repositories:
- hacdias
pull:
- testgroundbot
default_branch: master
teams:
admin:
- admins
Expand Down Expand Up @@ -159,6 +176,7 @@ repositories:
- lanzafame
- petar
- vyzo
default_branch: master
description: 🧪 A platform for testing, benchmarking, and simulating distributed
and p2p systems at scale.
teams:
Expand All @@ -174,6 +192,7 @@ repositories:
- testing
visibility: public
testground-github-action:
default_branch: master
visibility: public
teams:
admins:
Expand Down
13 changes: 9 additions & 4 deletions scripts/src/actions/update-pull-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ async function updatePullRequests() {
continue
}

github.client.pulls.updateBranch({
...context.repo,
pull_number: pull.number
})
try {
await github.client.pulls.updateBranch({
...context.repo,
pull_number: pull.number
})
} catch (error) {
// we might be unable to update the pull request if it there is a conflict
console.error(error)
}
}
}

Expand Down