Skip to content

Commit

Permalink
Merge pull request #79 from hookdeck/chore/master-to-main
Browse files Browse the repository at this point in the history
chore: update default branch to main
  • Loading branch information
leggetter authored May 8, 2024
2 parents 09388f2 + 94225bf commit 10c52ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: test
on:
pull_request:
branches:
- master
- main

jobs:
build-mac:
Expand Down
8 changes: 4 additions & 4 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ import (
// Version of the CLI.
// This is set to the actual version by GoReleaser, identify by the
// git tag assigned to the release. Versions built from source will
// always show master.
var Version = "master"
// always show main.
var Version = "main"

// Template for the version string.
var Template = fmt.Sprintf("hookdeck version %s\n", Version)

// CheckLatestVersion makes a request to the GitHub API to pull the latest
// release of the CLI
func CheckLatestVersion() {
// master is the dev version, we don't want to check against that every time
if Version != "master" {
// main is the dev version, we don't want to check against that every time
if Version != "main" {
s := ansi.StartNewSpinner("Checking for new versions...", os.Stdout)
latest := getLatestVersion()

Expand Down

0 comments on commit 10c52ba

Please sign in to comment.