Skip to content

Commit

Permalink
Add Slug field to AppConfig (#2029)
Browse files Browse the repository at this point in the history
Fixes #2028.
  • Loading branch information
rpelliard authored Aug 4, 2021
1 parent 0d84fe1 commit d8a66d0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions github/apps_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
// AppConfig describes the configuration of a GitHub App.
type AppConfig struct {
ID *int64 `json:"id,omitempty"`
Slug *string `json:"slug,omitempty"`
NodeID *string `json:"node_id,omitempty"`
Owner *User `json:"owner,omitempty"`
Name *string `json:"name,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions github/apps_manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func TestAppConfig_Marshal(t *testing.T) {

u := &AppConfig{
ID: Int64(1),
Slug: String("s"),
NodeID: String("nid"),
Owner: &User{
Login: String("l"),
Expand Down Expand Up @@ -107,6 +108,7 @@ func TestAppConfig_Marshal(t *testing.T) {

want := `{
"id": 1,
"slug": "s",
"node_id": "nid",
"owner": {
"login": "l",
Expand Down
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8a66d0

Please sign in to comment.