Skip to content
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ docker run -ti --rm stackstate-cli2-ci:latest go version

## Working with openapi

This repository pulls the stackstate-api spec from the [openapi repository](https://gitlab.com/stackvista/platform/stackstate-openapi).
This repository pulls the stackstate-api spec from the [openapi repository](https://github.com/StackVista/stackstate-openapi).

### Bumping the openapi version
- Change the version/branch/commit sha in the `stackstate_openapi/openapi_version` file
Expand Down
7 changes: 1 addition & 6 deletions scripts/generate_stackstate_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ OUTPUT_DIR="generated/stackstate_api"

rm -rf "$CHECKOUT_DIR"

# In gitlab we authenticate with the job token when cloning
if [ -z "${CI_JOB_TOKEN}" ]; then
git clone git@gitlab.com:stackvista/platform/stackstate-openapi.git "$CHECKOUT_DIR"
else
git clone "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/stackvista/platform/stackstate-openapi.git" "$CHECKOUT_DIR"
fi
git clone https://github.com/StackVista/stackstate-openapi.git "$CHECKOUT_DIR"

git -C "$CHECKOUT_DIR" checkout "$OPENAPI_VERSION"

Expand Down
Loading