Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.92
Choose a base ref
...
head repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.93
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 14, 2024

  1. Copy the full SHA
    39d7000 View commit details

Commits on Feb 15, 2024

  1. Merge pull request #19 from pluralsh/feat-get-job-of-gate

    need job info in pipelinegate response
    rauerhans authored Feb 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cbd5bc2 View commit details
Showing with 588 additions and 1 deletion.
  1. +488 −0 client.go
  2. +15 −0 graph/gates.graphql
  3. +53 −0 models_gen.go
  4. +32 −1 schema/schema.graphql
488 changes: 488 additions & 0 deletions client.go
15 changes: 15 additions & 0 deletions graph/gates.graphql
Original file line number Diff line number Diff line change
@@ -24,6 +24,21 @@ fragment PipelineGateFragment on PipelineGate {
state
updatedAt
spec { ...GateSpecFragment }
job { ...JobFragment }
}

fragment JobFragment on Job {
metadata {
name
namespace
}
status {
active
completionTime
startTime
succeeded
failed
}
}

fragment GateSpecFragment on GateSpec {
53 changes: 53 additions & 0 deletions models_gen.go
33 changes: 32 additions & 1 deletion schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -400,14 +400,26 @@ type RootMutationType {

deleteScmConnection(id: ID!): ScmConnection

createScmWebhook(connectionId: ID!, owner: String!): ScmWebhook

createPrAutomation(attributes: PrAutomationAttributes!): PrAutomation

updatePrAutomation(id: ID!, attributes: PrAutomationAttributes!): PrAutomation

deletePrAutomation(id: ID!): PrAutomation

"creates the service to enable self-hosted renovate in one pass"
setupRenovate(connectionId: ID!, repos: [String]): ServiceDeployment
setupRenovate(
connectionId: ID!

repos: [String]

"the name of the owning service"
name: String

"the namespace of the owning service"
namespace: String
): ServiceDeployment

createPullRequest(
"the id of the PR automation instance to use"
@@ -952,6 +964,8 @@ type Pipeline {
"the stages of this pipeline"
stages: [PipelineStage]

status: PipelineStatus

"edges linking two stages w\/in the pipeline in a full DAG"
edges: [PipelineStageEdge]

@@ -1135,6 +1149,15 @@ type PromotionService {
updatedAt: DateTime
}

"a report of gate statuses within a pipeline to gauge its health"
type PipelineStatus {
"if > 0, consider the pipeline running"
pending: Int

"if > 0, consider the pipeline stopped"
closed: Int
}

type PipelineConnection {
pageInfo: PageInfo!
edges: [PipelineEdge]
@@ -2283,6 +2306,12 @@ enum PrRole {
UPGRADE
}

enum PrStatus {
OPEN
MERGED
CLOSED
}

enum ConfigurationType {
STRING
INT
@@ -2691,6 +2720,8 @@ type PrConfigurationCondition {
type PullRequest {
id: ID!

status: PrStatus!

url: String!

title: String