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

chore: release 1.2.0 #122

Merged
merged 43 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
5326875
fix: use repository fullname to fetch contributors (#77)
k1nho Mar 4, 2024
3683f6d
chore(patch): release 1.1.1-beta.4 on beta channel [skip ci]
k1nho Mar 4, 2024
247c431
fix: update supabase keys for auth (#80)
k1nho Mar 15, 2024
c884baa
chore(patch): release 1.1.1-beta.5 on beta channel [skip ci]
k1nho Mar 15, 2024
39823cd
chore: create auto-add-to-project.yml (#81)
isabensusan Mar 19, 2024
8f38eaf
feat: Use justfile vs. makefile (#84)
jpmcb Aug 26, 2024
8cb6e46
chore(minor): release 1.2.0-beta.1 on beta channel [skip ci]
jpmcb Aug 26, 2024
d782974
feat: Skip semantic-release docker build in favor of buildx building
jpmcb Aug 26, 2024
aa2999f
chore(minor): release 1.2.0-beta.1 on beta channel [skip ci]
jpmcb Aug 26, 2024
87d560e
chore: Fix broken binary name for build artifacts
jpmcb Aug 26, 2024
7ddd4b9
feat: Trim down CLI - remove unused, defunct commands (#93)
jpmcb Aug 26, 2024
e55cd08
chore: Include pizza cli specific issue templates (#88)
jpmcb Aug 26, 2024
a74db44
chore(minor): release 1.2.0-beta.2 on beta channel [skip ci]
jpmcb Aug 26, 2024
79cf8a2
feat: Codeowners generation (#95)
jpmcb Aug 27, 2024
3ebeadc
chore(minor): release 1.2.0-beta.3 on beta channel [skip ci]
jpmcb Aug 27, 2024
690b6e9
feat: Upgrade Go module to use Go 1.22 (#96)
jpmcb Aug 27, 2024
02b5925
chore(minor): release 1.2.0-beta.4 on beta channel [skip ci]
jpmcb Aug 27, 2024
9960fc0
feat: added built at to version command (#94)
nickytonline Aug 27, 2024
7a1b3bb
chore(minor): release 1.2.0-beta.5 on beta channel [skip ci]
nickytonline Aug 27, 2024
418951f
fix: escape non-standard characters in the filename path (#106)
brandonroberts Aug 28, 2024
4de06e1
chore(patch): release 1.2.0-beta.6 on beta channel [skip ci]
brandonroberts Aug 28, 2024
d851499
feat: Refactors Auth code into api/ directory (#105)
jpmcb Aug 28, 2024
b73f8c9
chore(minor): release 1.2.0-beta.7 on beta channel [skip ci]
jpmcb Aug 28, 2024
dfc56cb
feat: added .sauced.yaml and updated CODEOWNERS file (#109)
nickytonline Aug 28, 2024
88333ab
chore(minor): release 1.2.0-beta.8 on beta channel [skip ci]
nickytonline Aug 28, 2024
a0298b1
feat: now generate codeowners checks in user root but also repository…
nickytonline Aug 28, 2024
2a5f85d
test: added tests for LoadConfig
nickytonline Aug 28, 2024
efff52a
Update cmd/generate/codeowners/codeowners.go
nickytonline Aug 28, 2024
6786496
Update pkg/config/config_test.go
nickytonline Aug 28, 2024
9dc0e10
Update pkg/config/config.go
nickytonline Aug 28, 2024
aba6310
test: added setup and teardown
nickytonline Aug 29, 2024
ab5206b
docs: updated comment for LoadConfig
nickytonline Aug 29, 2024
eb6946f
chore: Remove the show command (#110)
jpmcb Aug 29, 2024
2b3d8ca
test: made tests parallel
nickytonline Aug 29, 2024
2959d12
Merge pull request #107 from open-sauced/nickytonline/autodetect-sauc…
nickytonline Aug 29, 2024
74b2fc5
chore(minor): release 1.2.0-beta.9 on beta channel [skip ci]
nickytonline Aug 29, 2024
9357dac
feat: pizza login success page style refresh (#112)
nickytonline Aug 29, 2024
be6f35d
chore(minor): release 1.2.0-beta.10 on beta channel [skip ci]
nickytonline Aug 29, 2024
6aa250f
fix: mark endpoint and beta flags as hidden (#113)
brandonroberts Aug 29, 2024
2814486
chore(patch): release 1.2.0-beta.11 on beta channel [skip ci]
brandonroberts Aug 29, 2024
be7f8cd
fix: move output flag to insights command (#115)
brandonroberts Aug 30, 2024
63a6b56
chore(patch): release 1.2.0-beta.12 on beta channel [skip ci]
brandonroberts Aug 30, 2024
2bb8e4b
Merge branch 'main' into beta
jpmcb Aug 30, 2024
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
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 🐛 Bug report
description: Create a bug report to help us improve the OpenSauced CLI 🍕
title: "Bug: "
labels: [👀 needs triage, 🐛 bug, pizza-cli]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: Describe how to reproduce the behavior.
validations:
required: true
- type: markdown
attributes:
value: |
Please include the following

1. System settings
2. Operating system version and special configurations
3. Shell environment (`echo $SHELL`) and version
4. `pizza version` output
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: ❓ Ask a question
url: https://github.com/orgs/open-sauced/discussions
about: Ask questions about OpenSauced
- name: 🪿 Security
url: mailto:security@opensauced.pizza
about: Contact us about security concerns
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 🚀 Feature request
description: Suggest an idea for the Pizza CLI 💡
title: "Feature: "
labels: [👀 needs triage, 💡 feature, pizza-cli]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
attributes:
label: Suggested solution
description: Describe the solution you'd like.
24 changes: 24 additions & 0 deletions .github/workflows/auto-add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Adds issues to Team Dashboard"

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: add issue to team dashboard
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/open-sauced/projects/25
github-token: ${{ steps.generate_token.outputs.token }}
79 changes: 58 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Semantic release
name: "Semantic release"

on:
push:
Expand All @@ -7,27 +7,37 @@ on:
- beta
workflow_dispatch:

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test, lint, & build
uses: ./.github/workflows/test.yaml

release:
outputs:
release-tag: ${{ steps.semantic-release.outputs.release-tag }}
name: Semantic release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
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@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: "🔧 setup node"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -36,47 +46,74 @@ jobs:

- name: "🚀 release"
id: semantic-release
uses: open-sauced/release@v2
env:
# This ensures that publishing happens on every single trigger which then
# forces the go binaries to be built in the next step and attached to the GitHub release
FORCE_PUBLISH: "patch"

GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_PACKAGE_ROOT: "npm"
uses: open-sauced/release@v2.2.1

outputs:
release-tag: ${{ steps.semantic-release.outputs.release-tag }}
SKIP_DOCKER_PUBLISH: true

build:
name: Build and publish artifacts
needs:
- release
if: needs.release.outputs.release-tag != ''
runs-on: ubuntu-latest
permissions:
contents: write # release changes require contents write
# release changes require contents write so that it can push Go binaries
contents: write
strategy:
matrix:
goos: [darwin, linux, windows]
goarch: [amd64, arm64]

steps:
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
- name: "☁️ checkout repository"
uses: actions/checkout@v4

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

- name: Check out code
uses: actions/checkout@v3
- name: "🤲 Setup Just"
uses: extractions/setup-just@v2

- name: Build and upload Go binaries
- name: "🔧 Build all and upload artifacts to release"
env:
GH_TOKEN: ${{ github.token }}
run: |
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
-ldflags="-s -w" \
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.writeOnlyPublicPosthogKey=${{ vars.POSTHOG_WRITE_PUBLIC_KEY }}'" \
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Version=${{ needs.release.outputs.release-tag }}'" \
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Sha=$(git rev-parse HEAD)'" \
-o build/pizza-${{ matrix.goos }}-${{ matrix.goarch }}
export RELEASE_TAG_VERSION=${{ needs.release.outputs.release-tag }}
just build-${{ matrix.goos }}-${{ matrix.goarch }}

gh release upload ${{ needs.release.outputs.release-tag }} build/pizza-${{ matrix.goos }}-${{ matrix.goarch }}

docker:
name: Build and push container
needs:
- release
if: needs.release.outputs.release-tag != ''
runs-on: ubuntu-latest
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v4

- name: "🔧 setup buildx"
uses: docker/setup-buildx-action@v3

- name: "🐳 Login to ghcr"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "📦 docker build and push"
uses: docker/build-push-action@v6
with:
tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ needs.release.outputs.release-tag }}
push: true
37 changes: 19 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Lint, test, and build
name: "Lint, test, and build"

on:
workflow_call:
push:
branches:
- main
Expand All @@ -12,41 +13,41 @@ on:
- reopened

permissions:

# So golangci-lint can read the contents of the lint yaml file
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.2
version: v1.59.1

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: '1.22'
- uses: extractions/setup-just@v2
- name: Test
run: make test
run: just test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Build go binary
run: make build
go-version: '1.22'
- uses: extractions/setup-just@v2
- name: Build Go binary
run: just build
12 changes: 11 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@ linters:
- staticcheck
- unconvert
- unused
- vet
- govet
- gci

linters-settings:
gci:
sections:
# include the default standard section, default section, and the "local"
# section which can be configured with
# 'goimports -local github.com/open-sauced/saucectl'
- standard
- default
- localmodule

run:
timeout: 5m
15 changes: 15 additions & 0 deletions .sauced.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Configuration for attributing commits with emails to GitHub user profiles
# Used during codeowners generation.

# List the emails associated with the given username.
# The commits associated with these emails will be attributed to
# the username in this yaml map. Any number of emails may be listed.
attribution:
brandonroberts:
- robertsbt@gmail.com
jpmcb:
- john@opensauced.pizza
nickytonline:
- nick@nickyt.co
- nick@opensauced.pizza

Loading
Loading