octokit 5.4.0 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb3c4ab224890bb19194fb2c7af88c0e89be709e12b9a7df13df4d3aa7cac1dc
4
- data.tar.gz: 79a40c2fea62d7898e7906a3119bf5049c51baeb128dfa88722301682b691204
3
+ metadata.gz: b6280e7e05d9920d645066464954aa69a1e377ebfb78b986ac52901bbff9e813
4
+ data.tar.gz: e522bd69cedcb36c8cedfb3c52255fe0b24c68f824c3a490f832928946d067ed
5
5
  SHA512:
6
- metadata.gz: 6b6a080f40b9c52cb1450d13f5d64d0dbc8f8e27e699b585d0e9e1a3e29eb1a0b19eec29ca6ef25726b1c113f0c088a530762eabc297eb2a47ca77dedc71444c
7
- data.tar.gz: ea44cdd3350cf3206dee44ca90f3fa3f3776d1be078fdaa77b64c99b3e3d1e9d7d7d6800f95cd4cfa076a0e171f8e7e7d689066ff551d2d8d5a63cb1efaff56c
6
+ metadata.gz: 774496ed5e239da2e09f1eb2f925f171d671797adcbee9cae53d886b0d8c9a5fa20428cfb81eccdfb04b54c2d3b48385008aa5eb00356b565ba7795114bd5e54
7
+ data.tar.gz: 467d57fe3f69686ae24d4bd3eca6e9e87d68c2b1854f44c950ec1b309020748577af2e8c4f368ba27606bed827ac114673835a209ae085b6257cd5ba782b8124
data/README.md CHANGED
@@ -664,7 +664,7 @@ Once configured, the middleware will store responses in cache based on ETag
664
664
  fingerprint and serve those back up for future `304` responses for the same
665
665
  resource. See the [project README][cache] for advanced usage.
666
666
 
667
- [cache]: https://github.com/plataformatec/faraday-http-cache
667
+ [cache]: https://github.com/sourcelevel/faraday-http-cache
668
668
  [faraday]: https://github.com/lostisland/faraday
669
669
 
670
670
  ## Hacking on Octokit.rb
@@ -823,6 +823,26 @@ module Octokit
823
823
  def billing_actions(org)
824
824
  get "#{Organization.path(org)}/settings/billing/actions"
825
825
  end
826
+
827
+ # Get organization audit log.
828
+ #
829
+ # Gets the audit log for an organization.
830
+ #
831
+ # @param org [String, Integer] Organization GitHub login or id for which
832
+ # to retrieve the audit log.
833
+ # @option options [String] :include ('all') Filter by event type.
834
+ # `all`, `git` or `web`.
835
+ # @option options [String] :phrase A search phrase.
836
+ # @option options [String] :order ('desc') The order of audit log events. To list newest events first, specify desc.
837
+ # To list oldest events first, specify asc.
838
+ #
839
+ # @return [Array<Sawyer::Resource>] List of events
840
+ # @see https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs#get-the-audit-log-for-an-organization
841
+ # @example
842
+ # Octokit.organization_audit_log('github', {include: 'all', phrase: 'action:org.add_member created:>2022-08-29 user:octocat'})
843
+ def organization_audit_log(org, options = {})
844
+ paginate "#{Organization.path org}/audit-log", options
845
+ end
826
846
  end
827
847
  end
828
848
  end
@@ -4,7 +4,7 @@ module Octokit
4
4
  class Client
5
5
  # Methods for Projects API
6
6
  #
7
- # @see https://developer.github.com/v3/repos/projects
7
+ # @see https://docs.github.com/en/rest/projects
8
8
  module Projects
9
9
  # List projects for a repository
10
10
  #
@@ -7,7 +7,7 @@ module Octokit
7
7
 
8
8
  # Current minor release.
9
9
  # @return [Integer]
10
- MINOR = 4
10
+ MINOR = 5
11
11
 
12
12
  # Current patch level.
13
13
  # @return [Integer]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-08-30 00:00:00.000000000 Z
13
+ date: 2022-09-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler