Skip to content

Commit 1e87a3c

Browse files
authored
Merge pull request #29 from github/bug/ignore_not_found
Bug: Support cases where `ignore_not_found` is not provided
2 parents 94f8e48 + 2484924 commit 1e87a3c

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
entitlements-github-plugin (0.5.0)
4+
entitlements-github-plugin (0.5.1)
55
contracts (~> 0.17.0)
66
faraday (~> 2.0)
77
faraday-retry (~> 2.0)

lib/entitlements/backend/github_team/service.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ class TeamNotFound < RuntimeError; end
1818

1919
# Constructor.
2020
#
21-
# addr - Base URL a GitHub Enterprise API (leave undefined to use dotcom)
22-
# org - String with organization name
23-
# token - Access token for GitHub API
24-
# ou - Base OU for fudged DNs
21+
# addr - Base URL a GitHub Enterprise API (leave undefined to use dotcom)
22+
# org - String with organization name
23+
# token - Access token for GitHub API
24+
# ou - Base OU for fudged DNs
25+
# ignore_not_found - Boolean to ignore not found errors
2526
#
2627
# Returns nothing.
2728
Contract C::KeywordArgs[
2829
addr: C::Maybe[String],
2930
org: String,
3031
token: String,
3132
ou: String,
32-
ignore_not_found: C::Bool,
33+
ignore_not_found: C::Maybe[C::Bool],
3334
] => C::Any
3435
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
3536
super

lib/entitlements/service/github.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ class GitHub
2121

2222
# Constructor.
2323
#
24-
# addr - Base URL a GitHub Enterprise API (leave undefined to use dotcom)
25-
# org - String with organization name
26-
# token - Access token for GitHub API
27-
# ou - Base OU for fudged DNs
24+
# addr - Base URL a GitHub Enterprise API (leave undefined to use dotcom)
25+
# org - String with organization name
26+
# token - Access token for GitHub API
27+
# ou - Base OU for fudged DNs
28+
# ignore_not_found - Boolean to ignore not found errors
2829
#
2930
# Returns nothing.
3031
Contract C::KeywordArgs[
3132
addr: C::Maybe[String],
3233
org: String,
3334
token: String,
3435
ou: String,
35-
ignore_not_found: C::Bool,
36+
ignore_not_found: C::Maybe[C::Bool],
3637
] => C::Any
3738
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
3839
# Save some parameters for the connection but don't actually connect yet.

lib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Entitlements
44
module Version
5-
VERSION = "0.5.0"
5+
VERSION = "0.5.1"
66
end
77
end

0 commit comments

Comments
 (0)