Skip to content

Commit

Permalink
fix: Add new custom_properties field to Repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Dec 15, 2023
1 parent 07fcc85 commit 1f97f89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test")
load("//tools/project:build_defs.bzl", "project")

package(features = ["-layering_check"])

project()

haskell_library(
Expand Down
4 changes: 4 additions & 0 deletions src/GitHub/Types/Base/Repository.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ data Repository = Repository
, repositoryContentsUrl :: Text
, repositoryContributorsUrl :: Text
, repositoryCreatedAt :: DateTime
, repositoryCustomProperties :: Value -- TODO(iphydf): Figure out what this actually is.
, repositoryDefaultBranch :: Text
, repositoryDeleteBranchOnMerge :: Maybe Bool
, repositoryDeploymentsUrl :: Text
Expand Down Expand Up @@ -130,6 +131,7 @@ instance FromJSON Repository where
<*> x .: "contents_url"
<*> x .: "contributors_url"
<*> x .: "created_at"
<*> x .: "custom_properties"
<*> x .: "default_branch"
<*> x .:? "delete_branch_on_merge"
<*> x .: "deployments_url"
Expand Down Expand Up @@ -224,6 +226,7 @@ instance ToJSON Repository where
, "contents_url" .= repositoryContentsUrl
, "contributors_url" .= repositoryContributorsUrl
, "created_at" .= repositoryCreatedAt
, "custom_properties" .= repositoryCustomProperties
, "default_branch" .= repositoryDefaultBranch
, "delete_branch_on_merge" .= repositoryDeleteBranchOnMerge
, "deployments_url" .= repositoryDeploymentsUrl
Expand Down Expand Up @@ -388,3 +391,4 @@ instance Arbitrary Repository where
<*> arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
2 changes: 0 additions & 2 deletions web/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
load("@rules_haskell//haskell:defs.bzl", "haskell_binary")

package(features = ["-layering_check"])

haskell_binary(
name = "webservice",
srcs = glob(["**/*.hs"]),
Expand Down

0 comments on commit 1f97f89

Please sign in to comment.