Skip to content

Commit 0f12384

Browse files
nodeselectorCopilot
andcommitted
style: gofmt resolve, pin, and tag files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bfbf020 commit 0f12384

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

internal/pin/plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import (
77
"strings"
88
"time"
99

10+
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1011
"github.com/github/gh-actions-pin/internal/dep"
1112
"github.com/github/gh-actions-pin/internal/lockfile"
1213
"github.com/github/gh-actions-pin/internal/pinpool"
1314
"github.com/github/gh-actions-pin/internal/pipeline/checks"
1415
"github.com/github/gh-actions-pin/internal/resolve"
1516
"github.com/github/gh-actions-pin/internal/tag"
1617
"github.com/github/gh-actions-pin/internal/workflowfile"
17-
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1818
)
1919

2020
// PlanOptions configures the Plan pass.

internal/resolve/discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"strings"
77
"sync/atomic"
88

9+
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
910
"github.com/github/gh-actions-pin/internal/dep"
1011
"github.com/github/gh-actions-pin/internal/ghapi"
1112
"github.com/github/gh-actions-pin/internal/pinpool"
12-
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1313
)
1414

1515
// LatestRef returns the highest stable tag for an action repository.

internal/resolve/resolver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"testing"
88
"time"
99

10+
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1011
"github.com/github/gh-actions-pin/internal/dep"
1112
"github.com/github/gh-actions-pin/internal/ghapi"
1213
"github.com/github/gh-actions-pin/internal/ghapi/httpmock"
1314
"github.com/github/gh-actions-pin/internal/pinpool"
14-
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1515
)
1616

1717
// seedCache populates r.cache with the supplied entries and returns r so it can

internal/resolve/reverse_lookup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"fmt"
77
"strings"
88

9+
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
910
"github.com/github/gh-actions-pin/internal/dep"
1011
"github.com/github/gh-actions-pin/internal/ghapi"
11-
parserlock "github.com/github/actions-lockfile/go/pkg/lockfile"
1212
)
1313

1414
// DiscoverContaining returns (tag, branch) for sha in owner/repo, using

internal/tag/tags.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414

1515
// Info represents a tag with optional release metadata.
1616
type Info struct {
17-
Name string // e.g. "v4.2.2"
18-
SHA string // commit SHA the tag points to (dereferenced for annotated tags)
19-
IsRelease bool // true if a GitHub Release exists for this tag
20-
IsImmutable bool // true if the release is marked immutable (tag can't be moved/deleted)
21-
IsMajor bool // true if this looks like a major-only tag (e.g. "v4")
17+
Name string // e.g. "v4.2.2"
18+
SHA string // commit SHA the tag points to (dereferenced for annotated tags)
19+
IsRelease bool // true if a GitHub Release exists for this tag
20+
IsImmutable bool // true if the release is marked immutable (tag can't be moved/deleted)
21+
IsMajor bool // true if this looks like a major-only tag (e.g. "v4")
2222
}
2323

2424
// MatchesSHA reports whether sha names this tag's commit. Resolution peels

0 commit comments

Comments
 (0)