Skip to content

Commit 3cf5d8f

Browse files
committed
Add OSS credit usage setting
1 parent da0b257 commit 3cf5d8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/travis/api/v3/models/organization_preferences.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module Travis::API::V3
44
class Models::OrganizationPreferences < Models::JsonSlice
55
child Models::Preference
66

7+
attribute :consume_oss_credits, Boolean, default: true
8+
79
# whether to show insights about the organization's private repositories to
810
# only admins, all members of the organization, or everybody (public) (note:
911
# insights about public repositories are always public)

lib/travis/api/v3/models/user_preferences.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ class Models::UserPreferences < Models::JsonSlice
66

77
attribute :build_emails, Boolean, default: true
88

9+
attribute :consume_oss_credits, Boolean, default: true
10+
911
# whether to show insights about the user's private repositories to
1012
# everybody or keep them only for the user (note: insights about public
1113
# repositories are always public)

0 commit comments

Comments
 (0)