Releases: octokit/octokit.rb
Releases · octokit/octokit.rb
v4.6.0
Library Changes
#829 Sawyer dependency loosened to support new release 'sawyer', '>= 0.5.3', '~> 0.8.0'
Thank you @andrew
Updated Methods
- #protect_branch
required_status_check
parameter is no longer required, which makes the method call signature changed.required_status_check
can be passed in the options hash. - #unprotect_branch returns a boolean value now
New Methods
#820 Projects APIs https://developer.github.com/v3/projects/
- #projects List projects for a repository
- #create_project Create a Project
- #org_projects List Organization Projects
- #create_org_project Create Organization Project
- #project Get a Repository Project
- #update_project Update a Project
- #delete_project Delete a Project
- #project_columns List a Project's Columns
- #create_project_column Create a Project Column
- #project_column Get a Project Column
- #update_project_column Update a Project Column
- #delete_project_column Delete a Project Column
- #move_project_column Move a Project Column
- #column_cards List Column Cards
- #create_project_card Create a Project Card
- #project_card Get a Project Card
- #update_project_card Update a Project Card
- #move_project_card Move a Project Card
- #delete_project_card Delete a Project Card
#824 Traffic APIs https://developer.github.com/v3/repos/traffic/
- #top_referrers Get the top 10 referrers over the last 14 days.
- #top_paths Get the top 10 popular contents over the last 14 days.
- #views Get the total number of views and breakdown per day or week for the last 14 days.
- #clones Get the total number of clones and breakdown per day or week for the last 14 days.
v4.4.1
v4.4.0
Regression notice
#815 #pages method was incorrectly updated to require the new preview header. Fix released in v4.4.1
Library changes
- #777 This impacts all methods that pass a repository parameter. Change Repository.validate_owner_and_name! to use URI::ABS_URI instead the deprecated URI.regexp
- #752 Use octokit_warn instead of warn in Preview.warn_preview
- #761 Octokit::AccountSuspended for 403 responses @koglinjg
New methods
- #748 Add support for Source Import APIs @LizzHale
https://developer.github.com/v3/migration/source_imports/ - #814 #799 New method Repositories.branch_protection to get a branch's protection status
https://developer.github.com/v3/repos/branches/#get-branch-protection - #770 Add Issues#lock and Issues#unlock @davidcelis
https://developer.github.com/v3/issues/#lock-an-issue
https://developer.github.com/v3/issues/#unlock-an-issue - #816 Add Pages.pages_build to get specific page build by ID https://developer.github.com/v3/repos/pages/#list-a-specific-pages-build
Updated Methods
- #733 Support getting Milestones by repository id @stmllr
- #739 Escape options values in authorize_url @shvaikalesh
- #705 #704 Support API urls in Repository#from_url
- #780 Dup options in #create_repo method before mutating the hash @davidcpell
- #815 Change Pages.pages to use preview media type to gain additional data. Add Pages.request_page_build for https://developer.github.com/v3/repos/pages/#request-a-page-build
- #797 Change #upload_assets to read files in read only mode @trevorrowe
- #743 Add deprecation warning for when :permission parameter is passed to Organizations.create_team. Assign team repository permissions with Organizations.add_team_repository instead.
- #805 *_stats methods return nil on timeout when : retry_wait is used. Previously returned empty Sawyer::Resource. @etiennebarrie
- #819 #protect_branch Enable branch protection without enforcing required_status_checks. @mgreensmith
Documentation Edits
- #750 Fix typo in README.md @blunderdome
- #804 @kei-s #create_pull_request_comment_reply
- #817 Fix .decline_repository_invitation API doc url
- #742 Fix Default.middleware documentation comment @v-kolesnikov
- #754 Add Table of contents to README.md
Octokit Development Changes
v4.3.0
- #667 Fix org creation to include login and admin. @nmaki
- #668 Allow org hooks to be used by org login or ID @tarebyte
- #677 Fix Migration API bug @gjtorikian
- #678 Fix Managment console bug @gjtorikian
- #680 Add Hooks#ping_hook method @joeyw
- #682 Add Gists#gist_commits method @joeyw
- #683 Add Gists#gist_forks method @joeyw
- #692 Fetch stats with retry
- #722 Add Source Imports preview to Octokit @tarebyte
- #725 Loosen sawyer dependency @nlopes
v4.2.0
- #649 - Creating Authorization with fingerprint - @jessicayang15
- #652 - Add
Client#license_contents
method - @benbalter - #653 - Delete user Enterprise Admin API - @gjtorikian
- #655 - Fix labels docs - @byroot
- #658 - Custom error class for unverified emails - @johnpaulashenfelter
- #660 - Fix user teams path to be Enterprise-friendly - @nBerg
- #661 - Fix preview warnings - @pvdb
- #662 - Add warning for protected branches preview - @pvdb
- #664 - Add
Client#protect_branch
,Client#unprotect_branch
- @tarebyte
v4.1.1
v4.1.0
- #627 Migrator API support - @gjtorikian
- #628 Admin APIs for GitHub Enterprise 2.3 - @gjtorikian
v4.0.1
v4.0.0
- #567 New hook payload parser @zqzas
- #568 Fix tests on JRuby, Rubinius @bjfish
- #572 Licenses API support @zqzas
- #582 Support for Enterprise-only APIs @gjtorikian @joeyw
- #588 Remove defaults for Client#edit_hook @byroot
- #593 Stop passing convenience headers in query string @krainboltgreene
- #596 Support auto-pagination for listing user orgs
- #618 Paginate all orgs