Skip to content

Commit 8bead25

Browse files
committed
Merge pull request piotrmurach#24 from dieterdemeyer/master
Added attribute team_id for creating a repo + updated documentation
2 parents c8bf532 + 40c1488 commit 8bead25

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/github_api/repos.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Repos < API
4040
has_issues
4141
has_wiki
4242
has_downloads
43+
team_id
4344
].freeze
4445

4546
VALID_REPO_TYPES = %w[ all public private member ].freeze
@@ -80,6 +81,8 @@ def branches(user_name, repo_name, params={})
8081
# <tt>:has_issues</tt> - Optional boolean - <tt>true</tt> to enable issues for this repository, <tt>false</tt> to disable them
8182
# <tt>:has_wiki</tt> - Optional boolean - <tt>true</tt> to enable the wiki for this repository, <tt>false</tt> to disable it. Default is <tt>true</tt>
8283
# <tt>:has_downloads</tt> Optional boolean - <tt>true</tt> to enable downloads for this repository
84+
# <tt>:org</tt> Optional string - The organisation in which this repository will be created
85+
# <tt>:team_id</tt> Optional number - The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization
8386
#
8487
# = Examples
8588
# @github = Github.new

0 commit comments

Comments
 (0)