feat: include service name within the schema check (#751)

This commit is contained in:
Laurin Quast 2023-01-05 18:39:43 +01:00 committed by GitHub
parent c7386d6561
commit fe0a21ab7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}` : '');
}