mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
feat: include service name within the schema check (#751)
This commit is contained in:
parent
c7386d6561
commit
fe0a21ab7e
1 changed files with 5 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ export class SchemaPublisher {
|
|||
}
|
||||
|
||||
await this.gitHubIntegrationManager.createCheckRun({
|
||||
name: 'GraphQL Hive - schema:check',
|
||||
name: buildGitHubActionCheckName(input.target, input.service ?? null),
|
||||
conclusion: validationResult.valid ? 'success' : 'failure',
|
||||
sha: input.github.commit,
|
||||
organization: input.organization,
|
||||
|
|
@ -1061,3 +1061,7 @@ function writeChanges(type: string, changes: readonly Types.SchemaChange[], line
|
|||
...['', `### ${type} changes`].concat(changes.map(change => ` - ${bolderize(change.message)}`)),
|
||||
);
|
||||
}
|
||||
|
||||
function buildGitHubActionCheckName(target: string, service: string | null) {
|
||||
return `GraphQL Hive > schema:check > ${target}` + (service ? ` > ${service}` : '');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue