Skip to content

Commit

Permalink
Merge af63c57 into 97d6e8e
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 30, 2018
2 parents 97d6e8e + af63c57 commit 3c28147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/owners/owners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mutable struct Owner <: GitHubType
end

Owner(data::Dict) = json2github(Owner, data)
Owner(login::AbstractString, isorg = false) = Owner(Dict("login" => login, "typ" => isorg ? "User" : "Organization"))
Owner(login::AbstractString, isorg = false) = Owner(Dict("login" => login, "type" => isorg ? "Organization" : "User"))

namefield(owner::Owner) = owner.login

Expand Down
3 changes: 3 additions & 0 deletions test/read_only_api_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ auth = authenticate(string(circshift(["bcc", "3fc", "03a", "33e",
# test membership queries
@test GitHub.check_membership(julweb, testuser; auth = auth)
@test !GitHub.check_membership("JuliaLang", testuser; auth = auth, public_only=true)

@test GitHub.isorg(julweb)
@test !GitHub.isorg(testuser)
end

@testset "Repositories" begin
Expand Down

0 comments on commit 3c28147

Please sign in to comment.