File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ deployment records to GitHub's artifact metadata API.
3939Two modes of authentication are supported:
4040
41411 . Using PAT
42- 1 . Using a [ GtHub
42+ 1 . Using a [ GitHub
4343 App] ( https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps#building-a-github-app ) .
4444
4545> [ !NOTE] The provisioned API token or GitHub App must have
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import (
1616 "strings"
1717 "time"
1818
19- "github.com/github/deployment-tracker/pkg/metrics"
2019 "github.com/bradleyfalzon/ghinstallation/v2"
20+ "github.com/github/deployment-tracker/pkg/metrics"
2121 "golang.org/x/time/rate"
2222)
2323
@@ -102,16 +102,16 @@ func WithAPIToken(token string) ClientOption {
102102 }
103103}
104104
105- // WithGHApp configres an GitHub app to use for authentication.
105+ // WithGHApp configures a GitHub app to use for authentication.
106106// If provided values are invalid, this will panic.
107107// If an API token is also set, the GitHub App will take precedence.
108- func WithGHApp (id , installId , pk string ) ClientOption {
108+ func WithGHApp (id , installID , pk string ) ClientOption {
109109 return func (c * Client ) {
110110 pid , err := strconv .Atoi (id )
111111 if err != nil {
112112 panic (err )
113113 }
114- piid , err := strconv .Atoi (installId )
114+ piid , err := strconv .Atoi (installID )
115115 if err != nil {
116116 panic (err )
117117 }
You can’t perform that action at this time.
0 commit comments