octokit 4.24.0 → 4.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +5 -3
  3. data/lib/ext/sawyer/relation.rb +4 -2
  4. data/lib/octokit/arguments.rb +2 -2
  5. data/lib/octokit/authentication.rb +4 -5
  6. data/lib/octokit/client/actions_secrets.rb +2 -3
  7. data/lib/octokit/client/actions_workflow_runs.rb +2 -0
  8. data/lib/octokit/client/actions_workflows.rb +2 -1
  9. data/lib/octokit/client/apps.rb +26 -26
  10. data/lib/octokit/client/authorizations.rb +20 -17
  11. data/lib/octokit/client/checks.rb +5 -5
  12. data/lib/octokit/client/commit_branches.rb +2 -2
  13. data/lib/octokit/client/commit_comments.rb +8 -8
  14. data/lib/octokit/client/commit_pulls.rb +2 -2
  15. data/lib/octokit/client/commits.rb +25 -33
  16. data/lib/octokit/client/community_profile.rb +2 -2
  17. data/lib/octokit/client/contents.rb +20 -21
  18. data/lib/octokit/client/deployments.rb +6 -6
  19. data/lib/octokit/client/downloads.rb +5 -6
  20. data/lib/octokit/client/emojis.rb +3 -3
  21. data/lib/octokit/client/events.rb +4 -4
  22. data/lib/octokit/client/feeds.rb +4 -5
  23. data/lib/octokit/client/gists.rb +6 -6
  24. data/lib/octokit/client/gitignore.rb +3 -3
  25. data/lib/octokit/client/hooks.rb +10 -10
  26. data/lib/octokit/client/issues.rb +14 -14
  27. data/lib/octokit/client/labels.rb +6 -6
  28. data/lib/octokit/client/legacy_search.rb +3 -3
  29. data/lib/octokit/client/licenses.rb +3 -3
  30. data/lib/octokit/client/markdown.rb +3 -3
  31. data/lib/octokit/client/marketplace.rb +4 -4
  32. data/lib/octokit/client/meta.rb +4 -5
  33. data/lib/octokit/client/milestones.rb +5 -5
  34. data/lib/octokit/client/notifications.rb +6 -6
  35. data/lib/octokit/client/oauth_applications.rb +0 -2
  36. data/lib/octokit/client/objects.rb +14 -14
  37. data/lib/octokit/client/organizations.rb +42 -42
  38. data/lib/octokit/client/pages.rb +3 -3
  39. data/lib/octokit/client/projects.rb +18 -19
  40. data/lib/octokit/client/pub_sub_hubbub.rb +14 -14
  41. data/lib/octokit/client/pull_requests.rb +41 -42
  42. data/lib/octokit/client/rate_limit.rb +9 -11
  43. data/lib/octokit/client/reactions.rb +6 -6
  44. data/lib/octokit/client/refs.rb +13 -14
  45. data/lib/octokit/client/releases.rb +13 -13
  46. data/lib/octokit/client/repositories.rb +36 -36
  47. data/lib/octokit/client/repository_invitations.rb +3 -3
  48. data/lib/octokit/client/reviews.rb +7 -7
  49. data/lib/octokit/client/say.rb +4 -5
  50. data/lib/octokit/client/search.rb +9 -9
  51. data/lib/octokit/client/service_status.rb +2 -2
  52. data/lib/octokit/client/source_import.rb +6 -6
  53. data/lib/octokit/client/stats.rb +10 -9
  54. data/lib/octokit/client/statuses.rb +5 -5
  55. data/lib/octokit/client/traffic.rb +2 -3
  56. data/lib/octokit/client/users.rb +27 -26
  57. data/lib/octokit/client.rb +24 -10
  58. data/lib/octokit/configurable.rb +33 -27
  59. data/lib/octokit/connection.rb +17 -18
  60. data/lib/octokit/default.rb +17 -15
  61. data/lib/octokit/enterprise_admin_client/admin_stats.rb +13 -14
  62. data/lib/octokit/enterprise_admin_client/license.rb +3 -4
  63. data/lib/octokit/enterprise_admin_client/orgs.rb +3 -4
  64. data/lib/octokit/enterprise_admin_client/search_indexing.rb +7 -8
  65. data/lib/octokit/enterprise_admin_client/users.rb +5 -4
  66. data/lib/octokit/enterprise_admin_client.rb +9 -3
  67. data/lib/octokit/enterprise_management_console_client/management_console.rb +30 -30
  68. data/lib/octokit/enterprise_management_console_client.rb +8 -2
  69. data/lib/octokit/error.rb +23 -21
  70. data/lib/octokit/gist.rb +2 -3
  71. data/lib/octokit/middleware/follow_redirects.rb +12 -11
  72. data/lib/octokit/organization.rb +3 -1
  73. data/lib/octokit/preview.rb +29 -29
  74. data/lib/octokit/rate_limit.rb +3 -3
  75. data/lib/octokit/repo_arguments.rb +2 -3
  76. data/lib/octokit/repository.rb +23 -24
  77. data/lib/octokit/response/base_middleware.rb +2 -0
  78. data/lib/octokit/response/feed_parser.rb +3 -5
  79. data/lib/octokit/response/raise_error.rb +2 -2
  80. data/lib/octokit/user.rb +4 -2
  81. data/lib/octokit/version.rb +3 -1
  82. data/lib/octokit/warnable.rb +3 -6
  83. data/lib/octokit.rb +14 -6
  84. data/octokit.gemspec +10 -8
  85. metadata +22 -21
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Marketplace Listing API
5
6
  #
6
7
  # @see https://developer.github.com/v3/apps/marketplace/
7
8
  module Marketplace
8
-
9
9
  # List all plans for an app's marketplace listing
10
10
  #
11
11
  # @param options [Hash] A customizable set of options
@@ -14,7 +14,7 @@ module Octokit
14
14
  #
15
15
  # @return [Array<Sawyer::Resource>] A list of plans
16
16
  def list_plans(options = {})
17
- paginate "/marketplace_listing/plans", options
17
+ paginate '/marketplace_listing/plans', options
18
18
  end
19
19
 
20
20
  # List all GitHub accounts on a specific plan
@@ -49,7 +49,7 @@ module Octokit
49
49
  #
50
50
  # @return [Array<Sawyer::Resource>] A list of Marketplace purchases
51
51
  def marketplace_purchases(options = {})
52
- get "/user/marketplace_purchases", options
52
+ get '/user/marketplace_purchases', options
53
53
  end
54
54
  end
55
55
  end
@@ -1,21 +1,20 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Meta API
5
6
  #
6
7
  # @see https://developer.github.com/v3/meta/
7
8
  module Meta
8
-
9
9
  # Get meta information about GitHub.com, the service.
10
10
  # @see https://developer.github.com/v3/meta/#meta
11
11
  # @return [Sawyer::Resource] Hash with meta information.
12
12
  # @example Get GitHub meta information
13
13
  # @client.github_meta
14
14
  def meta(options = {})
15
- get "meta", options
15
+ get 'meta', options
16
16
  end
17
- alias :github_meta :meta
18
-
17
+ alias github_meta meta
19
18
  end
20
19
  end
21
20
  end
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Issues Milestones API
5
6
  #
6
7
  # @see https://developer.github.com/v3/issues/milestones/
7
8
  module Milestones
8
-
9
9
  # List milestones for a repository
10
10
  #
11
11
  # @param repository [Integer, String, Repository, Hash] A GitHub repository
@@ -21,7 +21,7 @@ module Octokit
21
21
  def list_milestones(repository, options = {})
22
22
  paginate "#{Repository.path repository}/milestones", options
23
23
  end
24
- alias :milestones :list_milestones
24
+ alias milestones list_milestones
25
25
 
26
26
  # Get a single milestone for a repository
27
27
  #
@@ -49,7 +49,7 @@ module Octokit
49
49
  # @example Create a milestone for a repository
50
50
  # Octokit.create_milestone("octokit/octokit.rb", "0.7.0", {:description => 'Add support for v3 of Github API'})
51
51
  def create_milestone(repository, title, options = {})
52
- post "#{Repository.path repository}/milestones", options.merge({:title => title})
52
+ post "#{Repository.path repository}/milestones", options.merge({ title: title })
53
53
  end
54
54
 
55
55
  # Update a milestone for a repository
@@ -68,7 +68,7 @@ module Octokit
68
68
  def update_milestone(repository, number, options = {})
69
69
  patch "#{Repository.path repository}/milestones/#{number}", options
70
70
  end
71
- alias :edit_milestone :update_milestone
71
+ alias edit_milestone update_milestone
72
72
 
73
73
  # Delete a single milestone for a repository
74
74
  #
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Notifications API
5
6
  #
6
7
  # @see https://developer.github.com/v3/activity/notifications/
7
8
  module Notifications
8
-
9
9
  # List your notifications
10
10
  #
11
11
  # @param options [Hash] Optional parameters
@@ -24,7 +24,7 @@ module Octokit
24
24
  # @example Get all notifications since a certain time.
25
25
  # @client.notifications({all: true, since: '2012-10-09T23:39:01Z'})
26
26
  def notifications(options = {})
27
- paginate "notifications", options
27
+ paginate 'notifications', options
28
28
  end
29
29
 
30
30
  # List your notifications in a repository
@@ -48,7 +48,7 @@ module Octokit
48
48
  def repository_notifications(repo, options = {})
49
49
  paginate "#{Repository.path repo}/notifications", options
50
50
  end
51
- alias :repo_notifications :repository_notifications
51
+ alias repo_notifications repository_notifications
52
52
 
53
53
  # Mark notifications as read
54
54
  #
@@ -66,7 +66,7 @@ module Octokit
66
66
  # @example
67
67
  # @client.mark_notifications_as_read
68
68
  def mark_notifications_as_read(options = {})
69
- request :put, "notifications", options
69
+ request :put, 'notifications', options
70
70
 
71
71
  last_response.status == 205
72
72
  end
@@ -91,7 +91,7 @@ module Octokit
91
91
 
92
92
  last_response.status == 205
93
93
  end
94
- alias :mark_repo_notifications_as_read :mark_repository_notifications_as_read
94
+ alias mark_repo_notifications_as_read mark_repository_notifications_as_read
95
95
 
96
96
  # List notifications for a specific thread
97
97
  #
@@ -2,12 +2,10 @@
2
2
 
3
3
  module Octokit
4
4
  class Client
5
-
6
5
  # Methods for the OauthApplications API
7
6
  #
8
7
  # @see https://developer.github.com/v3/apps/oauth_applications
9
8
  module OauthApplications
10
-
11
9
  # Check if a token is valid.
12
10
  #
13
11
  # Applications can check if a token is valid without rate limits.
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Git Data API
5
6
  #
6
7
  # @see https://developer.github.com/v3/git/
7
8
  module Objects
8
-
9
9
  # Get a single tree, fetching information about its root-level objects
10
10
  #
11
11
  # Pass <tt>:recursive => true</tt> in <tt>options</tt> to fetch information about all of the tree's objects, including those in subdirectories.
@@ -38,7 +38,7 @@ module Octokit
38
38
  # tree.sha # => "cd8274d15fa3ae2ab983129fb037999f264ba9a7"
39
39
  # tree.tree.first.path # => "file.rb"
40
40
  def create_tree(repo, tree, options = {})
41
- parameters = { :tree => tree }
41
+ parameters = { tree: tree }
42
42
  post "#{Repository.path repo}/git/trees", options.merge(parameters)
43
43
  end
44
44
 
@@ -74,10 +74,10 @@ module Octokit
74
74
  # @example Create a blob containing <tt>foo bar baz</tt>, encoded using base64
75
75
  # require "base64"
76
76
  # Octokit.create_blob("octocat/Hello-World", Base64.encode64("foo bar baz"), "base64")
77
- def create_blob(repo, content, encoding="utf-8", options = {})
77
+ def create_blob(repo, content, encoding = 'utf-8', options = {})
78
78
  parameters = {
79
- :content => content,
80
- :encoding => encoding
79
+ content: content,
80
+ encoding: encoding
81
81
  }
82
82
  blob = post "#{Repository.path repo}/git/blobs", options.merge(parameters)
83
83
 
@@ -124,14 +124,14 @@ module Octokit
124
124
  # )
125
125
  def create_tag(repo, tag, message, object_sha, type, tagger_name, tagger_email, tagger_date, options = {})
126
126
  options.merge!(
127
- :tag => tag,
128
- :message => message,
129
- :object => object_sha,
130
- :type => type,
131
- :tagger => {
132
- :name => tagger_name,
133
- :email => tagger_email,
134
- :date => tagger_date
127
+ tag: tag,
128
+ message: message,
129
+ object: object_sha,
130
+ type: type,
131
+ tagger: {
132
+ name: tagger_name,
133
+ email: tagger_email,
134
+ date: tagger_date
135
135
  }
136
136
  )
137
137
  post "#{Repository.path repo}/git/tags", options
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Organizations API
5
6
  #
6
7
  # @see https://developer.github.com/v3/orgs/
7
8
  module Organizations
8
-
9
9
  # Get an organization
10
10
  #
11
11
  # @param org [String, Integer] Organization GitHub login or id.
@@ -18,7 +18,7 @@ module Octokit
18
18
  def organization(org, options = {})
19
19
  get Organization.path(org), options
20
20
  end
21
- alias :org :organization
21
+ alias org organization
22
22
 
23
23
  # Update an organization.
24
24
  #
@@ -48,7 +48,7 @@ module Octokit
48
48
  def update_organization(org, values, options = {})
49
49
  patch Organization.path(org), options.merge(values)
50
50
  end
51
- alias :update_org :update_organization
51
+ alias update_org update_organization
52
52
 
53
53
  # Get organizations for a user.
54
54
  #
@@ -78,12 +78,12 @@ module Octokit
78
78
  # Octokit.list_orgs('pengwynn')
79
79
  # @example
80
80
  # @client.organizations
81
- def organizations(user=nil, options = {})
81
+ def organizations(user = nil, options = {})
82
82
  paginate "#{User.path user}/orgs", options
83
83
  end
84
- alias :list_organizations :organizations
85
- alias :list_orgs :organizations
86
- alias :orgs :organizations
84
+ alias list_organizations organizations
85
+ alias list_orgs organizations
86
+ alias orgs organizations
87
87
 
88
88
  # List all GitHub organizations
89
89
  #
@@ -98,9 +98,9 @@ module Octokit
98
98
  #
99
99
  # @return [Array<Sawyer::Resource>] List of GitHub organizations.
100
100
  def all_organizations(options = {})
101
- paginate "organizations", options
101
+ paginate 'organizations', options
102
102
  end
103
- alias :all_orgs :all_organizations
103
+ alias all_orgs all_organizations
104
104
 
105
105
  # List organization repositories
106
106
  #
@@ -125,8 +125,8 @@ module Octokit
125
125
  def organization_repositories(org, options = {})
126
126
  paginate "#{Organization.path org}/repos", options
127
127
  end
128
- alias :org_repositories :organization_repositories
129
- alias :org_repos :organization_repositories
128
+ alias org_repositories organization_repositories
129
+ alias org_repos organization_repositories
130
130
 
131
131
  # Get organization members
132
132
  #
@@ -143,10 +143,10 @@ module Octokit
143
143
  # Octokit.org_members('github')
144
144
  def organization_members(org, options = {})
145
145
  options = options.dup
146
- path = "public_" if options.delete(:public)
146
+ path = 'public_' if options.delete(:public)
147
147
  paginate "#{Organization.path org}/#{path}members", options
148
148
  end
149
- alias :org_members :organization_members
149
+ alias org_members organization_members
150
150
 
151
151
  # Get organization public members
152
152
  #
@@ -160,9 +160,9 @@ module Octokit
160
160
  # @example
161
161
  # Octokit.org_public_members('github')
162
162
  def organization_public_members(org, options = {})
163
- organization_members org, options.merge(:public => true)
163
+ organization_members org, options.merge(public: true)
164
164
  end
165
- alias :org_public_members :organization_public_members
165
+ alias org_public_members organization_public_members
166
166
 
167
167
  # Check if a user is a member of an organization.
168
168
  #
@@ -188,7 +188,7 @@ module Octokit
188
188
  result
189
189
  end
190
190
  end
191
- alias :org_member? :organization_member?
191
+ alias org_member? organization_member?
192
192
 
193
193
  # Check if a user is a public member of an organization.
194
194
  #
@@ -208,7 +208,7 @@ module Octokit
208
208
  def organization_public_member?(org, user, options = {})
209
209
  boolean_from_response :get, "#{Organization.path org}/public_members/#{user}", options
210
210
  end
211
- alias :org_public_member? :organization_public_member?
211
+ alias org_public_member? organization_public_member?
212
212
 
213
213
  # List pending organization invitations
214
214
  #
@@ -223,7 +223,7 @@ module Octokit
223
223
  def organization_invitations(org, options = {})
224
224
  get "#{Organization.path org}/invitations", options
225
225
  end
226
- alias :org_invitations :organization_invitations
226
+ alias org_invitations organization_invitations
227
227
 
228
228
  # List outside collaborators for an organization
229
229
  #
@@ -235,7 +235,7 @@ module Octokit
235
235
  #
236
236
  # @example
237
237
  # @client.outside_collaborators('github')
238
- def outside_collaborators(org, options={})
238
+ def outside_collaborators(org, options = {})
239
239
  paginate "#{Organization.path org}/outside_collaborators", options
240
240
  end
241
241
 
@@ -250,7 +250,7 @@ module Octokit
250
250
  #
251
251
  # @example
252
252
  # @client.remove_outside_collaborator('github', 'lizzhale')
253
- def remove_outside_collaborator(org, user, options={})
253
+ def remove_outside_collaborator(org, user, options = {})
254
254
  boolean_from_response :delete, "#{Organization.path org}/outside_collaborators/#{user}", options
255
255
  end
256
256
 
@@ -265,7 +265,7 @@ module Octokit
265
265
  #
266
266
  # @example
267
267
  # @client.convert_to_outside_collaborator('github', 'lizzhale')
268
- def convert_to_outside_collaborator(org, user, options={})
268
+ def convert_to_outside_collaborator(org, user, options = {})
269
269
  boolean_from_response :put, "#{Organization.path org}/outside_collaborators/#{user}", options
270
270
  end
271
271
 
@@ -283,7 +283,7 @@ module Octokit
283
283
  def organization_teams(org, options = {})
284
284
  paginate "#{Organization.path org}/teams", options
285
285
  end
286
- alias :org_teams :organization_teams
286
+ alias org_teams organization_teams
287
287
 
288
288
  # Create team
289
289
  #
@@ -303,7 +303,7 @@ module Octokit
303
303
  # })
304
304
  def create_team(org, options = {})
305
305
  if options.key?(:permission)
306
- octokit_warn "Deprecated: Passing :permission option to #create_team. Assign team repository permission by passing :permission to #add_team_repository instead."
306
+ octokit_warn 'Deprecated: Passing :permission option to #create_team. Assign team repository permission by passing :permission to #add_team_repository instead.'
307
307
  end
308
308
  if options.key?(:parent_team_id)
309
309
  options = ensure_api_media_type(:nested_teams, options)
@@ -429,7 +429,7 @@ module Octokit
429
429
  # There's a bug in this API call. The docs say to leave the body blank,
430
430
  # but it fails if the body is both blank and the content-length header
431
431
  # is not 0.
432
- boolean_from_response :put, "teams/#{team_id}/members/#{user}", options.merge({:name => user})
432
+ boolean_from_response :put, "teams/#{team_id}/members/#{user}", options.merge({ name: user })
433
433
  end
434
434
 
435
435
  # Remove team member
@@ -494,7 +494,7 @@ module Octokit
494
494
  def team_repositories(team_id, options = {})
495
495
  paginate "teams/#{team_id}/repos", options
496
496
  end
497
- alias :team_repos :team_repositories
497
+ alias team_repos team_repositories
498
498
 
499
499
  # Check if a repo is managed by a specific team
500
500
  #
@@ -508,10 +508,10 @@ module Octokit
508
508
  # @client.team_repository?(8675309, 'octokit/octokit.rb')
509
509
  # @example
510
510
  # @client.team_repo?(8675309, 'octokit/octokit.rb')
511
- def team_repository?(team_id, repo, options = {})
511
+ def team_repository?(team_id, repo, _options = {})
512
512
  boolean_from_response :get, "teams/#{team_id}/repos/#{Repository.new(repo)}"
513
513
  end
514
- alias :team_repo? :team_repository?
514
+ alias team_repo? team_repository?
515
515
 
516
516
  # Add team repository
517
517
  #
@@ -540,7 +540,7 @@ module Octokit
540
540
  def add_team_repository(team_id, repo, options = {})
541
541
  boolean_from_response :put, "teams/#{team_id}/repos/#{Repository.new(repo)}", options
542
542
  end
543
- alias :add_team_repo :add_team_repository
543
+ alias add_team_repo add_team_repository
544
544
 
545
545
  # Remove team repository
546
546
  #
@@ -557,10 +557,10 @@ module Octokit
557
557
  # @client.remove_team_repository(100000, 'github/developer.github.com')
558
558
  # @example
559
559
  # @client.remove_team_repo(100000, 'github/developer.github.com')
560
- def remove_team_repository(team_id, repo, options = {})
560
+ def remove_team_repository(team_id, repo, _options = {})
561
561
  boolean_from_response :delete, "teams/#{team_id}/repos/#{Repository.new(repo)}"
562
562
  end
563
- alias :remove_team_repo :remove_team_repository
563
+ alias remove_team_repo remove_team_repository
564
564
 
565
565
  # Remove organization member
566
566
  #
@@ -579,7 +579,7 @@ module Octokit
579
579
  # provided in the GH API v3
580
580
  boolean_from_response :delete, "#{Organization.path org}/members/#{user}", options
581
581
  end
582
- alias :remove_org_member :remove_organization_member
582
+ alias remove_org_member remove_organization_member
583
583
 
584
584
  # Publicize a user's membership of an organization
585
585
  #
@@ -610,14 +610,14 @@ module Octokit
610
610
  def unpublicize_membership(org, user, options = {})
611
611
  boolean_from_response :delete, "#{Organization.path org}/public_members/#{user}", options
612
612
  end
613
- alias :conceal_membership :unpublicize_membership
613
+ alias conceal_membership unpublicize_membership
614
614
 
615
615
  # List all teams for the authenticated user across all their orgs
616
616
  #
617
617
  # @return [Array<Sawyer::Resource>] Array of team resources.
618
618
  # @see https://developer.github.com/v3/orgs/teams/#list-user-teams
619
619
  def user_teams(options = {})
620
- paginate "user/teams", options
620
+ paginate 'user/teams', options
621
621
  end
622
622
 
623
623
  # Check if a user has a team membership.
@@ -667,9 +667,9 @@ module Octokit
667
667
  # @return [Array<Sawyer::Resource>] Array of organizations memberships.
668
668
  # @see https://developer.github.com/v3/orgs/members/#list-your-organization-memberships
669
669
  def organization_memberships(options = {})
670
- paginate "user/memberships/orgs", options
670
+ paginate 'user/memberships/orgs', options
671
671
  end
672
- alias :org_memberships :organization_memberships
672
+ alias org_memberships organization_memberships
673
673
 
674
674
  # Get an organization membership
675
675
  #
@@ -686,7 +686,7 @@ module Octokit
686
686
  get "user/memberships/orgs/#{org}", options
687
687
  end
688
688
  end
689
- alias :org_membership :organization_membership
689
+ alias org_membership organization_membership
690
690
 
691
691
  # Edit an organization membership
692
692
  #
@@ -707,7 +707,7 @@ module Octokit
707
707
  patch "user/memberships/orgs/#{org}", options
708
708
  end
709
709
  end
710
- alias :update_org_membership :update_organization_membership
710
+ alias update_org_membership update_organization_membership
711
711
 
712
712
  # Remove an organization membership
713
713
  #
@@ -719,7 +719,7 @@ module Octokit
719
719
  user = options.delete(:user)
720
720
  user && boolean_from_response(:delete, "#{Organization.path(org)}/memberships/#{user}", options)
721
721
  end
722
- alias :remove_org_membership :remove_organization_membership
722
+ alias remove_org_membership remove_organization_membership
723
723
 
724
724
  # Initiates the generation of a migration archive.
725
725
  #
@@ -803,13 +803,13 @@ module Octokit
803
803
  end
804
804
 
805
805
  # Get GitHub Actions billing for an organization
806
- #
806
+ #
807
807
  # Requires authenticated organization owner.
808
- #
808
+ #
809
809
  # @param org [String, Integer] Organization GitHub login or id.
810
810
  # @return [Sawyer::Resource] Hash representing GitHub Actions billing for an organization.
811
811
  # @see https://docs.github.com/en/rest/reference/billing#get-github-actions-billing-for-an-organization
812
- #
812
+ #
813
813
  # @example
814
814
  # @client.billing_actions('github')
815
815
  def billing_actions(org)
@@ -1,11 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  class Client
3
-
4
5
  # Methods for the Pages API
5
6
  #
6
7
  # @see https://developer.github.com/v3/repos/pages/
7
8
  module Pages
8
-
9
9
  # List Pages information for a repository
10
10
  #
11
11
  # @param repo [Integer, String, Repository, Hash] A GitHub repository
@@ -36,7 +36,7 @@ module Octokit
36
36
  def pages_builds(repo, options = {})
37
37
  get "#{Repository.path repo}/pages/builds", options
38
38
  end
39
- alias :list_pages_builds :pages_builds
39
+ alias list_pages_builds pages_builds
40
40
 
41
41
  # List the latest Pages build information for a repository
42
42
  #