Skip to content

Commit bb00707

Browse files
committed
feat: added actions_macos field to APIMeta struct and adjusted the appropriate tests
1 parent 41298d1 commit bb00707

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

github/meta.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ type APIMeta struct {
5252
// GitHub Actions will originate from.
5353
Actions []string `json:"actions,omitempty"`
5454

55-
// an array of IP addresses in CIDR format specifying the IP addresses
56-
// Github Action macOS runner will originate from.
57-
ActionsMacOs []string `json:"actions_macos,omitempty"`
55+
// An array of IP addresses in CIDR format specifying the IP addresses
56+
// GitHub Action macOS runner will originate from.
57+
ActionsMacos []string `json:"actions_macos,omitempty"`
5858

5959
// An array of IP addresses in CIDR format specifying the IP addresses
6060
// Dependabot will originate from.

github/meta_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestAPIMeta_Marshal(t *testing.T) {
2626
Importer: []string{"i"},
2727
GithubEnterpriseImporter: []string{"gei"},
2828
Actions: []string{"a"},
29-
ActionsMacOs: []string{"192.0.2.1/32", "198.51.100.0/24"},
29+
ActionsMacos: []string{"192.0.2.1/32", "198.51.100.0/24"},
3030
Dependabot: []string{"d"},
3131
SSHKeyFingerprints: map[string]string{"a": "f"},
3232
SSHKeys: []string{"k"},
@@ -93,7 +93,7 @@ func TestMetaService_Get(t *testing.T) {
9393
Importer: []string{"i"},
9494
GithubEnterpriseImporter: []string{"gei"},
9595
Actions: []string{"a"},
96-
ActionsMacOs: []string{"192.0.2.1/32", "198.51.100.0/24"},
96+
ActionsMacos: []string{"192.0.2.1/32", "198.51.100.0/24"},
9797
Dependabot: []string{"d"},
9898
API: []string{"a"},
9999
Web: []string{"w"},

0 commit comments

Comments
 (0)