Alex Tugarev 4c6cc4fb01
[papi] add user.proto and GetAuthenticatedUser – EXP-845 (#19132)
* [papi] add user.proto and GetAuthenticatedUser

* [papi] (generate.sh) Run end-of-file-fixer

* rename to EditoSettings

* clean up proto

* fix import

* update WorkspaceTimeoutSettings

* fix typo

* update WorkspaceTimeoutSettings

* clarify User.name is full name in doc line
2023-11-28 12:42:06 +02:00

42 lines
831 B
Bash
Executable File

#!/bin/bash
if [ -n "$DEBUG" ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../
# include protoc bash functions
# shellcheck disable=SC1090,SC1091
source "$ROOT_DIR"/scripts/protoc-generator.sh
pushd "go"
go install github.com/gitpod-io/gitpod/components/public-api/go/protoc-proxy-gen
popd
install_dependencies
lint
# Format all proto files
buf format -w
# Run breaking change detector
buf breaking --against "https://github.com/gitpod-io/gitpod.git#branch=main,subdir=components/public-api"
# Remove generated files, so they are re-created
rm -rf go/experimental
protoc_buf_generate
update_license
# Run end-of-file-fixer
git ls-files -- 'typescript/*.ts' | xargs pre-commit run end-of-file-fixer --files
yarn --cwd typescript build