File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ import (
1414
1515// Info represents a tag with optional release metadata.
1616type 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
You can’t perform that action at this time.
0 commit comments