Skip to content

Commit 0ad1184

Browse files
fixed linter warnings
1 parent 6b81cfc commit 0ad1184

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ deployment records to GitHub's artifact metadata API.
3939
Two modes of authentication are supported:
4040

4141
1. 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

pkg/deploymentrecord/client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)