Skip to content

Commit

Permalink
Merge pull request #168 from open-sauced/beta
Browse files Browse the repository at this point in the history
chore: release v1.4.0
  • Loading branch information
jpmcb authored Sep 11, 2024
2 parents b1f1b95 + 9f6a92c commit bcec9b7
Show file tree
Hide file tree
Showing 40 changed files with 932 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pizza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Pizza Action
uses: open-sauced/pizza-action@v2.0.0
uses: open-sauced/pizza-action@v2.1.0
with:
commit-and-pr: "true"
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,46 @@ jobs:
NPM_PACKAGE_ROOT: "npm"
SKIP_DOCKER_PUBLISH: true

docs:
name: Update documentation
needs:
- release

runs-on: ubuntu-latest

steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: "☁️ checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: "🐹 Setup Go"
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- name: "🤲 Setup Just"
uses: extractions/setup-just@v2

- name: "📗 Generate Documentation"
run: ./scripts/generate-docs.sh
env:
GITHUB_REF: ${{ github.ref }}
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

build:
name: Build and publish artifacts
needs:
- release
- docs
if: needs.release.outputs.release-tag != ''
runs-on: ubuntu-latest
permissions:
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,48 @@

> All notable changes to this project will be documented in this file
## [1.4.0-beta.4](https://github.com/open-sauced/pizza-cli/compare/v1.4.0-beta.3...v1.4.0-beta.4) (2024-09-09)


### 🐛 Bug Fixes

* docs generation runs outside of build matrix now ([#165](https://github.com/open-sauced/pizza-cli/issues/165)) ([1e42988](https://github.com/open-sauced/pizza-cli/commit/1e42988c06fcab6694d4fca9670c59796352e7a5))

## [1.4.0-beta.3](https://github.com/open-sauced/pizza-cli/compare/v1.4.0-beta.2...v1.4.0-beta.3) (2024-09-09)


### 🐛 Bug Fixes

* now --tty-disable is set so the action can complete instead of hanging ([#164](https://github.com/open-sauced/pizza-cli/issues/164)) ([a970a73](https://github.com/open-sauced/pizza-cli/commit/a970a73f494f34464a4c8b6ba993d38ecb4e2ec4))

## [1.4.0-beta.2](https://github.com/open-sauced/pizza-cli/compare/v1.4.0-beta.1...v1.4.0-beta.2) (2024-09-09)


### 🐛 Bug Fixes

* fixed docs generation in release workflow ([#162](https://github.com/open-sauced/pizza-cli/issues/162)) ([5341e16](https://github.com/open-sauced/pizza-cli/commit/5341e16daaeeecdc664895d165246a82623accbe))

## [1.4.0-beta.1](https://github.com/open-sauced/pizza-cli/compare/v1.3.1-beta.2...v1.4.0-beta.1) (2024-09-09)


### 🍕 Features

* Posthog events bootstrapping ([#160](https://github.com/open-sauced/pizza-cli/issues/160)) ([847426b](https://github.com/open-sauced/pizza-cli/commit/847426bcb202e8846287461fb0e3735d04f4c82e))

## [1.3.1-beta.2](https://github.com/open-sauced/pizza-cli/compare/v1.3.1-beta.1...v1.3.1-beta.2) (2024-09-06)


### 🐛 Bug Fixes

* use the local directory and home directory as fallback for .sauced.yaml ([#158](https://github.com/open-sauced/pizza-cli/issues/158)) ([af2f361](https://github.com/open-sauced/pizza-cli/commit/af2f3612e26634455602d1840714c5bf15e1e40a))

## [1.3.1-beta.1](https://github.com/open-sauced/pizza-cli/compare/v1.3.0...v1.3.1-beta.1) (2024-09-06)


### 🐛 Bug Fixes

* skip interactive steps in generate codeowners with --tty-disable flag ([#159](https://github.com/open-sauced/pizza-cli/issues/159)) ([49f1fd3](https://github.com/open-sauced/pizza-cli/commit/49f1fd3fc4df24b95724feb1918dc80276cd017e))

## [1.3.0](https://github.com/open-sauced/pizza-cli/compare/v1.2.1...v1.3.0) (2024-09-06)


Expand Down
89 changes: 76 additions & 13 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,40 +1,103 @@
# This file is generated automatically by OpenSauced pizza-cli. DO NOT EDIT. Stay saucy!
#
# Generated with command:
# $ pizza generate codeowners pizza-cli/ --tty-disable true

.env @jpmcb
.github/ISSUE_TEMPLATE/bug_report.yaml @jpmcb
.github/ISSUE_TEMPLATE/config.yaml @jpmcb
.github/ISSUE_TEMPLATE/feature_request.yaml @jpmcb
.github/workflows/auto-add-to-project.yml @jpmcb
.github/workflows/release.yaml @jpmcb
.github/workflows/pizza.yml @nickytonline @jpmcb
.github/workflows/release.yaml @jpmcb @nickytonline
.github/workflows/test.yaml @jpmcb
.golangci.yaml @jpmcb
CHANGELOG.md @jpmcb @brandonroberts @nickytonline
.sauced.yaml @nickytonline @jpmcb
CHANGELOG.md @jpmcb @nickytonline @brandonroberts
CODEOWNERS @nickytonline @jpmcb
Dockerfile @jpmcb @nickytonline
Makefile @jpmcb
README.md @jpmcb
api/auth/auth.go @jpmcb
api/auth/success.html @nickytonline @jpmcb
api/client.go @jpmcb
api/mock/mock.go @jpmcb
api/services/contributors/contributors.go @jpmcb
api/services/contributors/contributors_test.go @jpmcb
api/services/contributors/spec.go @jpmcb
api/services/histogram/histogram.go @jpmcb
api/services/histogram/histogram_test.go @jpmcb
api/services/histogram/spec.go @jpmcb
api/services/repository/repository.go @jpmcb
api/services/repository/repository_test.go @jpmcb
api/services/repository/spec.go @jpmcb
api/services/spec.go @jpmcb
api/services/workspaces/spec.go @jpmcb
api/services/workspaces/userlists/spec.go @jpmcb
api/services/workspaces/userlists/userlists.go @jpmcb
api/services/workspaces/userlists/userlists_test.go @jpmcb
api/services/workspaces/workspaces.go @jpmcb
api/services/workspaces/workspaces_test.go @jpmcb
api/utils/validators.go @jpmcb
cmd/auth/auth.go @jpmcb
cmd/auth/constants.go @jpmcb
cmd/auth/schema.go @jpmcb
cmd/auth/success.html @jpmcb
cmd/auth/success.html @jpmcb
cmd/bake/bake.go @jpmcb
cmd/bake/bake_test.go @jpmcb
cmd/generate/codeowners/codeowners.go @jpmcb
cmd/generate/codeowners/output.go @jpmcb @brandonroberts
cmd/generate/codeowners/output_test.go @brandonroberts
cmd/docs/docs.go @nickytonline @jpmcb
cmd/docs/docs_test.go @nickytonline @jpmcb
cmd/generate/codeowners/codeowners.go @jpmcb @nickytonline @zeucapua
cmd/generate/codeowners/output.go @jpmcb @zeucapua @brandonroberts
cmd/generate/codeowners/output_test.go @jpmcb @brandonroberts
cmd/generate/codeowners/spec.go @jpmcb
cmd/generate/codeowners/traversal.go @jpmcb
cmd/generate/generate.go @jpmcb
cmd/insights/contributors.go @jpmcb
cmd/insights/insights.go @jpmcb
cmd/insights/insights.go @jpmcb @brandonroberts
cmd/insights/repositories.go @jpmcb
cmd/insights/user-contributions.go @jpmcb
cmd/insights/utils.go @jpmcb
cmd/repo-query/repo-query.go @jpmcb
cmd/root/root.go @jpmcb
cmd/root/root.go @jpmcb @brandonroberts @nickytonline
cmd/show/constants.go @jpmcb
cmd/show/contributors.go @jpmcb
cmd/show/dashboard.go @jpmcb
cmd/show/show.go @jpmcb
cmd/show/tui.go @jpmcb
cmd/version/version.go @jpmcb @nickytonline
go.mod @jpmcb
go.sum @jpmcb
docs/pizza.md @nickytonline @jpmcb
docs/pizza_completion.md @nickytonline @jpmcb
docs/pizza_completion_bash.md @nickytonline @jpmcb
docs/pizza_completion_fish.md @nickytonline @jpmcb
docs/pizza_completion_powershell.md @nickytonline @jpmcb
docs/pizza_completion_zsh.md @nickytonline @jpmcb
docs/pizza_generate.md @nickytonline @jpmcb
docs/pizza_generate_codeowners.md @nickytonline @jpmcb
docs/pizza_insights.md @nickytonline @jpmcb
docs/pizza_insights_contributors.md @nickytonline @jpmcb
docs/pizza_insights_repositories.md @nickytonline @jpmcb
docs/pizza_insights_user-contributions.md @nickytonline @jpmcb
docs/pizza_login.md @nickytonline @jpmcb
docs/pizza_version.md @nickytonline @jpmcb
go.mod @jpmcb @nickytonline
go.sum @jpmcb @nickytonline
justfile @jpmcb @nickytonline
npm/package.json @jpmcb @brandonroberts @nickytonline
pkg/config/config.go @jpmcb
pkg/config/spec.go @jpmcb
npm/.gitignore @jpmcb
npm/package-lock.json @jpmcb @nickytonline @brandonroberts
npm/package.json @jpmcb @nickytonline @brandonroberts
pkg/api/client.go @jpmcb
pkg/api/validation.go @jpmcb
pkg/config/config.go @jpmcb @nickytonline @brandonroberts
pkg/config/config_test.go @nickytonline @jpmcb @brandonroberts
pkg/config/file.go @jpmcb
pkg/config/spec.go @jpmcb @brandonroberts
pkg/constants/flags.go @jpmcb
pkg/logging/constants.go @jpmcb
pkg/utils/posthog.go @jpmcb
pkg/utils/root.go @jpmcb
pkg/utils/version.go @nickytonline
pkg/utils/telemetry.go @jpmcb
pkg/utils/version.go @nickytonline @jpmcb
scripts/generate-docs.sh @nickytonline
telemetry.go @jpmcb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Flags:
Global Flags:
--beta Shorthand for using the beta OpenSauced API endpoint ("https://beta.api.opensauced.pizza").
Supersedes the '--endpoint' flag
-c, --config string The saucectl config (default "~/.sauced.yaml")
-c, --config string The codeowners config (default ".sauced.yaml")
--disable-telemetry Disable sending telemetry data to OpenSauced
-e, --endpoint string The API endpoint to send requests to (default "https://api.opensauced.pizza")
-l, --log-level string The logging level. Options: error, warn, info, debug (default "info")
Expand Down
7 changes: 4 additions & 3 deletions cmd/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ func NewLoginCommand() *cobra.Command {
disableTelem, _ := cmd.Flags().GetBool(constants.FlagNameTelemetry)

opts.telemetry = utils.NewPosthogCliClient(!disableTelem)
defer opts.telemetry.Done()

username, err := run()

if err != nil {
opts.telemetry.CaptureFailedLogin()
_ = opts.telemetry.CaptureFailedLogin()
} else {
opts.telemetry.CaptureLogin(username)
_ = opts.telemetry.CaptureLogin(username)
}

_ = opts.telemetry.Done()

return err
},
}
Expand Down
Loading

0 comments on commit bcec9b7

Please sign in to comment.