Skip to content

Commit

Permalink
Merge #22
Browse files Browse the repository at this point in the history
22: Update import path r=abhinav a=abhinav

Changes the import path of the repository
to match its new home at github.com/pulumi/go-change.


Co-authored-by: Abhinav Gupta <[email protected]>
  • Loading branch information
bors[bot] and abhinav authored Aug 29, 2023
2 parents ad2359d + 2f941e5 commit 88be1f8
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/get-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ fi

>&2 echo "::debug::Merge base ${MERGE_BASE}"

go run github.com/aaronfriel/go-change render --filter-since-commit "${MERGE_BASE}" "${@}"
go run github.com/pulumi/go-change render --filter-since-commit "${MERGE_BASE}" "${@}"
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# Update go module dependencies
pushd ./pkg/test
go get -u "github.com/aaronfriel/go-change@v${VERSION}"
go get -u "github.com/pulumi/go-change@v${VERSION}"
go mod tidy
git add go.mod go.sum
popd
Expand Down
3 changes: 3 additions & 0 deletions changelog/pending/20230811--change-import-path.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changes:
- type: chore
description: Change import path to github.com/pulumi/go-change.
2 changes: 1 addition & 1 deletion cmd/cli_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"strings"

"github.com/aaronfriel/go-change/internal/changelog"
"github.com/erikgeiser/promptkit/selection"
"github.com/erikgeiser/promptkit/textinput"
"github.com/muesli/termenv"
"github.com/pulumi/go-change/internal/changelog"
)

func textPrompt(textPrompt string, textPlaceholder string, textValue string) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"sort"
"time"

"github.com/aaronfriel/go-change/internal/changelog"
"github.com/goccy/go-yaml"
"github.com/gosimple/slug"
"github.com/pulumi/go-change/internal/changelog"
"github.com/spf13/cobra"

"github.com/erikgeiser/promptkit/selection"
Expand Down
2 changes: 1 addition & 1 deletion cmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"strings"
"time"

"github.com/aaronfriel/go-change/internal/changelog"
"github.com/goccy/go-yaml"
"github.com/google/go-github/v47/github"
"github.com/pulumi/go-change/internal/changelog"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aaronfriel/go-change
module github.com/pulumi/go-change

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/changelog/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Config struct {
// Scopes is a map of valid scopes to subscopes
Scopes ConfigScopes `yaml:"scopes"`

// GitHubRepository, e.g.: aaronfriel/go-change
// GitHubRepository, e.g.: pulumi/go-change
GitHubRepository GitHubRepository `yaml:"github,omitempty"`

// Template is the template to use for rendering the changelog.
Expand Down
4 changes: 2 additions & 2 deletions internal/changelog/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ types:
scopes:
foo: [bar, baz, thwomp]
quux: []
github: aaronfriel/go-change
github: pulumi/go-change
`
config := MustParseConfig(t, []byte(strings.TrimSpace(testConfigText)))
assert.ElementsMatch(t, config.Types.Keys(), []string{"feat", "fix", "chore"})
Expand All @@ -42,7 +42,7 @@ scopes:
- baz
- thwomp
quux: []
github: aaronfriel/go-change
github: pulumi/go-change
template:
template: null
`)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import cmd "github.com/aaronfriel/go-change/cmd"
import cmd "github.com/pulumi/go-change/cmd"

func main() {
cmd.Execute()
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/aaronfriel/go-change/pkg/test
module github.com/pulumi/go-change/pkg/test

go 1.19

require github.com/aaronfriel/go-change v0.1.2
require github.com/pulumi/go-change v0.1.2

require (
github.com/atotto/clipboard v0.1.4 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import cmd "github.com/aaronfriel/go-change/cmd"
import cmd "github.com/pulumi/go-change/cmd"

func main() {
cmd.Execute()
Expand Down

0 comments on commit 88be1f8

Please sign in to comment.