nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: danvergara/dblab
Pull request #2 (2021-04-02 04:50:50)

test(version): add a test function to test the result of the version …
…command


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index af01b6e..8784a65 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -1,3 +1,5 @@
+package cmd
+
 /*
 Copyright © 2021 NAME HERE <EMAIL ADDRESS>
 
@@ -13,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */
-package cmd
 
 import (
 	"fmt"
@@ -21,20 +22,26 @@ import (
 	"github.com/spf13/cobra"
 )
 
-// versionCmd represents the version command
-var versionCmd = &cobra.Command{
-	Use:   "version",
-	Short: "The version of the project",
-	Long: `The current version of the project.
-
-	This projects follows the semantic versioning standard.`,
-	Run: func(cmd *cobra.Command, args []string) {
-		fmt.Println("v0.1.0")
-	},
+// NewVersionCmd return a versionCmd instance
+func NewVersionCmd() *cobra.Command {
+
+	// versionCmd represents the version command
+	versionCmd := &cobra.Command{
+		Use:   "version",
+		Short: "The version of the project",
+		Long: `The current version of the project.
+		This projects follows the semantic versioning standard.`,
+		RunE: func(cmd *cobra.Command, args []string) error {
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.1.0")
+			return nil
+		},
+	}
+
+	return versionCmd
 }
 
 func init() {
-	rootCmd.AddCommand(versionCmd)
+	rootCmd.AddCommand(NewVersionCmd())
 
 	// Here you will define your flags and configuration settings.
 


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
new file mode 100644
index 0000000..b4e8b5b
--- /dev/null
+++ b/cmd/version_test.go
@@ -0,0 +1,23 @@
+package cmd
+
+import (
+	"bytes"
+	"io/ioutil"
+	"strings"
+	"testing"
+)
+
+func TestVersionCmd(t *testing.T) {
+	cmd := NewVersionCmd()
+	b := bytes.NewBufferString("")
+	cmd.SetOut(b)
+	cmd.Execute()
+	out, err := ioutil.ReadAll(b)
+	if err != nil {
+		t.Fatal(err)
+	}
+
+	if !strings.Contains(string(out), "v0.1.0") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.1.0", string(out))
+	}
+}
Repository: danvergara/dblab
Pull request #57 (2021-07-14 19:20:32)

Bump v0.9.2


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index e271771..88b7b79 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.1.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.9.2")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index c4804aa..6df4ab4 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.1.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.1.0", string(out))
+	if !strings.Contains(string(out), "v0.9.2") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.9.2", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #63 (2021-07-28 21:36:55)

build(version): bump version to 0.10.1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 88b7b79..a7cbce9 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.9.2")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.10.1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 6df4ab4..a57217d 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.9.2") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.9.2", string(out))
+	if !strings.Contains(string(out), "v0.10.1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.10.1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #69 (2021-08-11 22:37:28)

fix(version): fix the current version
version


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index a7cbce9..7639d00 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.10.1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.11.1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index a57217d..e3510b7 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.10.1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.10.1", string(out))
+	if !strings.Contains(string(out), "v0.11.1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.11.1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #73 (2021-08-30 16:58:18)

build(version): bump to version 0.12.0
v0.12.0


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 7639d00..838f030 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.11.1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.12.0")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index e3510b7..807fc7c 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.11.1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.11.1", string(out))
+	if !strings.Contains(string(out), "v0.12.0") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.12.0", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #98 (2022-09-07 02:25:06)

build(version): bump version to v0.15.1
## Description

Bump version to v0.15.1



Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 838f030..223b873 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.12.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.15.1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 807fc7c..a86da4f 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.12.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.12.0", string(out))
+	if !strings.Contains(string(out), "v0.15.1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.15.1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #103 (2022-09-08 21:35:49)

build(version): bump version to v0.16.0


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 223b873..44239ed 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.15.1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index a86da4f..aebab21 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.15.1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.15.1", string(out))
+	if !strings.Contains(string(out), "v0.16.0") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #104 (2022-09-08 21:46:24)

build(version): bump to version v0.16.0-rc


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 44239ed..b400690 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0-rc")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index aebab21..66033a2 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0", string(out))
+	if !strings.Contains(string(out), "v0.16.0-rc") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0-rc", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #107 (2022-09-09 03:36:19)

Fix release file 0 16 rc1


Patch:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fbbb143..5934652 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -23,15 +23,18 @@ jobs:
           go-version: 1.18
       - name: Set release tag env variable
         run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-      - name: Test release tag env variable
-        run: |
-          echo $RELEASE_VERSION
-          echo ${{ env.RELEASE_VERSION }}
-      - name: Check current binary version
+      - name: Set the current version as env variable
         run: |
           make build
+          echo "CURRENT_VERSION=$(./dblab --version)" >> $GITHUB_ENV
+      - name: Test the env variables
+        run: |
+          echo RELEASE_VERSION
+          echo ${{ env.RELEASE_VERSION }}
+          echo CURRENT_VERSION
+          echo ${{ env.CURRENT_VERSION }}
       - name: Run GoReleaser
-        if: ./dblab version == ${{ env.RELEASE_VERSION }}
+        if: env.RELEASE_VERSION == env.CURRENT_VERSION
         uses: goreleaser/goreleaser-action@v3
         with:
           version: latest
diff --git a/cmd/version.go b/cmd/version.go
index b400690..f473c81 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0-rc")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 66033a2..54cdfb6 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.0-rc") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0-rc", string(out))
+	if !strings.Contains(string(out), "v0.16.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #118 (2022-09-29 19:08:58)

bump to version v0.16.1-rc1
bump to version v0.16.1-rc1


Patch:
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index b15fe6a..5e51162 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -20,7 +20,6 @@ changelog:
       - '^test:'
 
 release:
-  draft: true
   mode: append
   extra_files:
     - glob: ./dblab-build/**/*
diff --git a/cmd/version.go b/cmd/version.go
index 44239ed..bf28dd1 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.1-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index aebab21..384bd2a 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.0", string(out))
+	if !strings.Contains(string(out), "v0.16.1-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.1-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #129 (2022-10-12 17:20:02)

build(version): bump version to v0.16.2-rc1
bump version to v0.16.2-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 0015f09..ebd4e58 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.2-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index dc183f1..24ecbb6 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.1", string(out))
+	if !strings.Contains(string(out), "v0.16.2-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.2-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #131 (2022-10-13 21:31:14)

bump version to v0.16.2-rc2
bump version to v0.16.2-rc2


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index ebd4e58..89ef58b 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.2-rc1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.2-rc2")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 24ecbb6..15b2ece 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.2-rc1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.2-rc1", string(out))
+	if !strings.Contains(string(out), "v0.16.2-rc2") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.2-rc2", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #133 (2022-10-17 20:05:10)

bump version to v0.17.0
bump version to v0.17.0



Patch:
diff --git a/cmd/version.go b/cmd/version.go
index f981564..b2562b7 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.16.2")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.17.0")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 82434fb..c700bdc 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.16.2") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.16.2", string(out))
+	if !strings.Contains(string(out), "v0.17.0") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.17.0", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #134 (2022-10-17 21:41:06)

bump version to v0.17.0-rc1
 bump version to v0.17.0-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index b2562b7..3f88766 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.17.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.17.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index c700bdc..89b6000 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.17.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.17.0", string(out))
+	if !strings.Contains(string(out), "v0.17.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.17.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #139 (2022-12-06 02:19:28)

build(version): bump version to v0.18.0-rc1
bump version v0.18.0-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index b2562b7..34e63fe 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.17.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.18.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index c700bdc..c8a0943 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.17.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.17.0", string(out))
+	if !strings.Contains(string(out), "v0.18.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.18.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #146 (2023-02-13 16:58:02)

build(version): bump to version v0.18.1-rc1
bump to version v0.18.1-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 9db056f..52a9796 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.18.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.18.1-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 9103454..eb61858 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.18.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.18.0", string(out))
+	if !strings.Contains(string(out), "v0.18.1-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.18.1-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #151 (2023-03-15 03:16:43)

bump to version v0.19.0-rc1
bump to version v0.19.0-rc1



Patch:
diff --git a/cmd/version.go b/cmd/version.go
index daf3ab4..accf7f2 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.18.1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.19.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index d855d64..7a3ec28 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.18.1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.18.1", string(out))
+	if !strings.Contains(string(out), "v0.19.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.19.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #159 (2023-05-12 17:20:30)

bump to version v0.20.0-rc1
bump to version v0.20.0-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 9671a12..8d4283a 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.19.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.20.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 1cd9f13..2d42268 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.19.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.19.0", string(out))
+	if !strings.Contains(string(out), "v0.20.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.20.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #178 (2023-07-21 04:22:47)

bump to version v0.21.0-rc1
Bump to version v0.21.0-rc1


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index 8175700..e8dfe7b 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.20.0")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.21.0-rc1")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 3aabf0f..3ae7899 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.20.0") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.20.0", string(out))
+	if !strings.Contains(string(out), "v0.21.0-rc1") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.21.0-rc1", string(out))
 	}
 }
Repository: danvergara/dblab
Pull request #180 (2023-07-31 18:51:37)

bump to version v0.21.0-rc2
bump to version v0.21.0-rc2


Patch:
diff --git a/cmd/version.go b/cmd/version.go
index e8dfe7b..28924ab 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -32,7 +32,7 @@ func NewVersionCmd() *cobra.Command {
 		Long: `The current version of the project.
 		This projects follows the semantic versioning standard.`,
 		RunE: func(cmd *cobra.Command, args []string) error {
-			fmt.Fprintln(cmd.OutOrStdout(), "v0.21.0-rc1")
+			fmt.Fprintln(cmd.OutOrStdout(), "v0.21.0-rc2")
 			return nil
 		},
 	}


Test patch:
diff --git a/cmd/version_test.go b/cmd/version_test.go
index 3ae7899..bde08da 100644
--- a/cmd/version_test.go
+++ b/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if !strings.Contains(string(out), "v0.21.0-rc1") {
-		t.Fatalf("expected \"%s\" got \"%s\"", "v0.21.0-rc1", string(out))
+	if !strings.Contains(string(out), "v0.21.0-rc2") {
+		t.Fatalf("expected \"%s\" got \"%s\"", "v0.21.0-rc2", string(out))
 	}
 }