Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Added ArtifactProviderInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
minuscorp committed Apr 16, 2018
1 parent a3468f1 commit 1035660
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/features-json/graph_ql/types/artifact_provider_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module FastlaneCI
# Definition of the different GraphQL types.
module Types
# Define ArtifactProvider as a common interface from which other
# providers can inherit from.
ArtifactProviderInterface = GraphQL::InterfaceType.define do
name "ArtifactProvider"
description "fastlane.ci Artifact Provider"
field :type, !types.String, property: :class_name
end
end
end
2 changes: 2 additions & 0 deletions app/features-json/graph_ql/types/project_type.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require_relative "./job_trigger_type"
require_relative "./repo_config_type"
require_relative "./artifact_provider_type"

require "graphql"

Expand All @@ -16,6 +17,7 @@ module Types
field :lane, types.String
field :job_triggers, types[Types::JobTriggerType]
field :repo_config, Types::RepoConfigInterface
field :artifact_provider, Types::ArtifactProviderInterface
end
end
end

0 comments on commit 1035660

Please sign in to comment.