Skip to content

Commit

Permalink
all: change references from cuelang/cue to cue-lang/cue
Browse files Browse the repository at this point in the history
Signed-off-by: cueckoo <cueckoo@cuelang.org>
  • Loading branch information
cueckoo committed Jul 2, 2021
1 parent 20ed9ab commit 06484a3
Show file tree
Hide file tree
Showing 21 changed files with 446 additions and 1,043 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @cueckoo
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If possible, provide a recipe for reproducing the error.
For advice on how to create a good reproducer, please see:
https://github.com/cuelang/cue/wiki/Creating-test-or-performance-reproducers
https://github.com/cue-lang/cue/wiki/Creating-test-or-performance-reproducers
-->


Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/mirror.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/new_version_triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Rebuild tip.cuelang.org
run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
}} --request POST --data-binary "{\"event_type\": \"Re-test post release of
${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cuelang/cuelang.org/dispatches'
${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cue-lang/cuelang.org/dispatches'
- name: Trigger unity build
run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
}} --request POST --data-binary "{\"event_type\": \"Check against CUE ${GITHUB_REF##refs/tags/}\",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
args: release --rm-dist
version: v0.155.1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CUECKOO_GITHUB_PAT }}
docker:
name: docker
runs-on: ubuntu-18.04
Expand All @@ -47,7 +47,7 @@ jobs:
uses: docker/build-push-action@v1
with:
tags: ${{ env.CUE_VERSION }},latest
repository: cuelang/cue
repository: cue-lang/cue
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_with_ref: false
Expand Down
58 changes: 10 additions & 48 deletions .github/workflows/repository_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
shell: bash
if: ${{ github.event.client_payload.type == 'runtrybot' }}
steps:
- name: Write netrc file for cueckoo Gerrithub
run: |-
cat <<EOD > ~/.netrc
machine review.gerrithub.io
login cueckoo
password ${{ secrets.CUECKOO_GERRITHUB_PASSWORD }}
EOD
chmod 600 ~/.netrc
- name: Trigger trybot
run: |-
mkdir tmpgit
Expand All @@ -19,52 +27,6 @@ jobs:
git config user.name cueckoo
git config user.email cueckoo@gmail.com
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} | base64)"
git fetch https://cue-review.googlesource.com/cue ${{ github.event.client_payload.payload.ref }}
git fetch https://review.gerrithub.io/a/cue-lang/cue ${{ github.event.client_payload.payload.ref }}
git checkout -b ci/${{ github.event.client_payload.payload.changeID }}/${{ github.event.client_payload.payload.commit }} FETCH_HEAD
git push https://github.com/cuelang/cue ci/${{ github.event.client_payload.payload.changeID }}/${{ github.event.client_payload.payload.commit }}
mirror:
runs-on: ubuntu-18.04
defaults:
run:
shell: bash
if: ${{ github.event.client_payload.type == 'mirror' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Mirror Gerrit to GitHub
run: |-
cd _scripts
docker run --rm -v $PWD/cache:/root/copybara/cache -v $PWD:/usr/src/app --entrypoint="" cueckoo/copybara:afc4ae03eed00b0c9d7415141cd1b5dfa583da7c bash -c " \
set -eu; \
echo \"${{ secrets.gerritCookie }}\" > ~/.gitcookies; \
chmod 600 ~/.gitcookies; \
git config --global user.name cueckoo; \
git config --global user.email cueckoo@gmail.com; \
git config --global http.cookiefile \$HOME/.gitcookies; \
echo https://cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }}@github.com > ~/.git-credentials; \
chmod 600 ~/.git-credentials; \
java -jar /opt/copybara/copybara_deploy.jar migrate copy.bara.sky github; \
"
importpr:
runs-on: ubuntu-18.04
defaults:
run:
shell: bash
if: ${{ github.event.client_payload.type == 'importpr' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: 'Import PR #${{ github.event.client_payload.commit }} from GitHub to Gerrit'
run: |-
cd _scripts
docker run --rm -v $PWD/cache:/root/copybara/cache -v $PWD:/usr/src/app --entrypoint="" cueckoo/copybara:afc4ae03eed00b0c9d7415141cd1b5dfa583da7c bash -c " \
set -eu; \
echo \"${{ secrets.gerritCookie }}\" > ~/.gitcookies; \
chmod 600 ~/.gitcookies; \
git config --global user.name cueckoo; \
git config --global user.email cueckoo@gmail.com; \
git config --global http.cookiefile \$HOME/.gitcookies; \
echo https://cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }}@github.com > ~/.git-credentials; \
chmod 600 ~/.git-credentials; \
java -jar /opt/copybara/copybara_deploy.jar migrate copy.bara.sky github-pr ${{ github.event.client_payload.payload.pr }}; \
"
git push https://github.com/cue-lang/cue ci/${{ github.event.client_payload.payload.changeID }}/${{ github.event.client_payload.payload.commit }}
68 changes: 36 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '**'
tags-ignore:
- v*
pull_request: {}
jobs:
start:
runs-on: ubuntu-18.04
Expand All @@ -15,34 +16,42 @@ jobs:
shell: bash
steps:
- if: ${{ startsWith(github.ref, 'refs/heads/ci/') }}
name: Write the gitcookies file
run: echo "${{ secrets.gerritCookie }}" > ~/.gitcookies
name: Write netrc file for cueckoo Gerrithub
run: |-
cat <<EOD > ~/.netrc
machine review.gerrithub.io
login cueckoo
password ${{ secrets.CUECKOO_GERRITHUB_PASSWORD }}
EOD
chmod 600 ~/.netrc
- if: ${{ startsWith(github.ref, 'refs/heads/ci/') }}
name: Update Gerrit CL message with starting message
run: 'curl -f -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Started
the build... see progress at ${{ github.event.repository.html_url }}/actions/runs/${{
github.run_id }}"}'' -b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data
''{"tag":"trybot","message":"Started the build... see progress at ${{ github.event.repository.html_url
}}/actions/runs/${{ github.run_id }}"}'' https://review.gerrithub.io/a/changes/$(basename
$(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review'
test:
needs: start
strategy:
fail-fast: false
matrix:
go-version:
- 1.14.14
- 1.15.8
- "1.16"
os:
- ubuntu-18.04
- macos-10.15
- windows-2019
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Write the gitcookies file
run: echo "${{ secrets.gerritCookie }}" > ~/.gitcookies
- name: Write netrc file for cueckoo Gerrithub
run: |-
cat <<EOD > ~/.netrc
machine review.gerrithub.io
login cueckoo
password ${{ secrets.CUECKOO_GERRITHUB_PASSWORD }}
EOD
chmod 600 ~/.netrc
- name: Install Go
uses: actions/setup-go@v2
with:
Expand All @@ -65,27 +74,16 @@ jobs:
run: go generate ./...
- name: Test
run: go test ./...
- if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/')
&& matrix.go-version == '1.15.8' && matrix.os == 'ubuntu-18.04' }}
name: Test with -race
run: go test -race ./...
- name: gorelease check
run: go run golang.org/x/exp/cmd/gorelease
- name: Check that git is clean post generate and tests
run: test -z "$(git status --porcelain)" || (git status; git diff; false)
- if: ${{ github.ref == 'refs/heads/master' }}
name: Pull this commit through the proxy on master
run: |-
v=$(git rev-parse HEAD)
cd $(mktemp -d)
go mod init mod.com
GOPROXY=https://proxy.golang.org go get -d cuelang.org/go/cmd/cue@$v
- if: ${{ startsWith(github.ref, 'refs/heads/ci/') && failure() }}
name: Post any failures for this matrix entry
run: 'curl -f -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
failed for ${{ runner.os }}-${{ matrix.go-version }}; see ${{ github.event.repository.html_url
}}/actions/runs/${{ github.run_id }} for more details","labels":{"Code-Review":-1}}''
-b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data
''{"tag":"trybot","message":"Build failed for ${{ runner.os }}-${{ matrix.go-version
}}; see ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id
}} for more details","labels":{"TryBot-Result":-1}}'' https://review.gerrithub.io/a/changes/$(basename
$(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review'
mark_ci_success:
runs-on: ubuntu-18.04
Expand All @@ -95,12 +93,18 @@ jobs:
run:
shell: bash
steps:
- name: Write the gitcookies file
run: echo "${{ secrets.gerritCookie }}" > ~/.gitcookies
- name: Write netrc file for cueckoo Gerrithub
run: |-
cat <<EOD > ~/.netrc
machine review.gerrithub.io
login cueckoo
password ${{ secrets.CUECKOO_GERRITHUB_PASSWORD }}
EOD
chmod 600 ~/.netrc
- name: Update Gerrit CL message with success message
run: 'curl -f -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
succeeded for ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id
}}","labels":{"Code-Review":1}}'' -b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data
''{"tag":"trybot","message":"Build succeeded for ${{ github.event.repository.html_url
}}/actions/runs/${{ github.run_id }}","labels":{"TryBot-Result":1}}'' https://review.gerrithub.io/a/changes/$(basename
$(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review'
delete_build_branch:
runs-on: ubuntu-18.04
Expand All @@ -117,4 +121,4 @@ jobs:
git config user.name cueckoo
git config user.email cueckoo@gmail.com
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} | base64)"
git push https://github.com/cuelang/cue :${GITHUB_REF#refs/heads/}
git push https://github.com/cue-lang/cue :${GITHUB_REF#refs/heads/}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ brews:
commit_author:
name: cue-bot
email: noreply@cuelang.org
homepage: "https://github.com/cuelang/cue"
homepage: "https://cuelang.org"
description: "CUE is an open source data constraint language which aims to simplify tasks involving defining and using data."
test: |
system "#{bin}/cue version"
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ again.
## Code reviews

All submissions, including submissions by project members, require review. We
use Gerrit code reviews at https://cue-review.googlesource.com for this purpose.
Please read the [Contributing Guide](./doc/contribute.md)
before reading patches.
use [Gerrit code
reviews](https://review.gerrithub.io/q/project:cue-lang%252Fcue) for this
purpose. Please read the [Contributing Guide](./doc/contribute.md) before
reading patches.

## Code of Conduct

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
limitations under the License.
-->
[![Go Reference](https://pkg.go.dev/badge/cuelang.org/go.svg)](https://pkg.go.dev/cuelang.org/go)
[![Github](https://github.com/cuelang/cue/workflows/Test/badge.svg)](https://github.com/cuelang/cue/actions)
[![GolangCI](https://golangci.com/badges/github.com/cuelang/cue.svg)](https://golangci.com/r/github.com/cuelang/cue)
[![Github](https://github.com/cue-lang/cue/workflows/Test/badge.svg)](https://github.com/cue-lang/cue/actions)
[![GolangCI](https://golangci.com/badges/github.com/cue-lang/cue.svg)](https://golangci.com/r/github.com/cue-lang/cue)
[![Go 1.14+](https://img.shields.io/badge/go-1.14-9cf.svg)](https://golang.org/dl/)
[![platforms](https://img.shields.io/badge/platforms-linux|windows|macos-inactive.svg)]()

Expand Down Expand Up @@ -95,7 +95,7 @@ Some aspects of this are:

#### Release builds

[Download](https://github.com/cuelang/cue/releases) the latest release from GitHub.
[Download](https://github.com/cue-lang/cue/releases) the latest release from GitHub.

#### Install using Homebrew

Expand Down Expand Up @@ -146,12 +146,13 @@ an existing set of Kubernetes configurations is available in

### Contributing

Our canonical Git repository is located at https://cue.googlesource.com.
Our canonical Git repository is located at
https://review.gerrithub.io/q/project:cue-lang%252Fcue.

To contribute, please read the [Contribution Guide](./doc/contribute.md).

To report issues or make a feature request, use the
[issue tracker](https://github.com/cuelang/cue/issues).
[issue tracker](https://github.com/cue-lang/cue/issues).

Changes can be contributed using Gerrit or Github pull requests.

Expand All @@ -160,7 +161,7 @@ Changes can be contributed using Gerrit or Github pull requests.

You can get in touch with the cuelang community in the following ways:

- Ask questions via [GitHub Discussions](https://github.com/cuelang/cue/discussions)
- Ask questions via [GitHub Discussions](https://github.com/cue-lang/cue/discussions)
- Chat with us on our
[Slack workspace](https://join.slack.com/t/cuelang/shared_invite/enQtNzQwODc3NzYzNTA0LTAxNWQwZGU2YWFiOWFiOWQ4MjVjNGQ2ZTNlMmIxODc4MDVjMDg5YmIyOTMyMjQ2MTkzMTU5ZjA1OGE0OGE1NmE).

Expand Down
Loading

0 comments on commit 06484a3

Please sign in to comment.