Skip to content

Commit d8a66d0

Browse files
authored
Add Slug field to AppConfig (#2029)
Fixes #2028.
1 parent 0d84fe1 commit d8a66d0

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

github/apps_manifest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
// AppConfig describes the configuration of a GitHub App.
1414
type AppConfig struct {
1515
ID *int64 `json:"id,omitempty"`
16+
Slug *string `json:"slug,omitempty"`
1617
NodeID *string `json:"node_id,omitempty"`
1718
Owner *User `json:"owner,omitempty"`
1819
Name *string `json:"name,omitempty"`

github/apps_manifest_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func TestAppConfig_Marshal(t *testing.T) {
7272

7373
u := &AppConfig{
7474
ID: Int64(1),
75+
Slug: String("s"),
7576
NodeID: String("nid"),
7677
Owner: &User{
7778
Login: String("l"),
@@ -107,6 +108,7 @@ func TestAppConfig_Marshal(t *testing.T) {
107108

108109
want := `{
109110
"id": 1,
111+
"slug": "s",
110112
"node_id": "nid",
111113
"owner": {
112114
"login": "l",

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)