mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Fix target's name in GitHub schema:check (#957)
This commit is contained in:
parent
3924c7199b
commit
80ccca590f
1 changed files with 8 additions and 3 deletions
|
|
@ -83,7 +83,12 @@ export class SchemaPublisher {
|
|||
scope: TargetAccessScope.REGISTRY_READ,
|
||||
});
|
||||
|
||||
const [project, latest] = await Promise.all([
|
||||
const [target, project, latest] = await Promise.all([
|
||||
this.targetManager.getTarget({
|
||||
organization: input.organization,
|
||||
project: input.project,
|
||||
target: input.target,
|
||||
}),
|
||||
this.projectManager.getProject({
|
||||
organization: input.organization,
|
||||
project: input.project,
|
||||
|
|
@ -117,7 +122,7 @@ export class SchemaPublisher {
|
|||
|
||||
try {
|
||||
await this.gitHubIntegrationManager.createCheckRun({
|
||||
name: 'GraphQL Hive - schema:check',
|
||||
name: buildGitHubActionCheckName(target.name, null),
|
||||
conclusion: 'failure',
|
||||
sha: input.github.commit,
|
||||
organization: input.organization,
|
||||
|
|
@ -225,7 +230,7 @@ export class SchemaPublisher {
|
|||
}
|
||||
|
||||
await this.gitHubIntegrationManager.createCheckRun({
|
||||
name: buildGitHubActionCheckName(input.target, input.service ?? null),
|
||||
name: buildGitHubActionCheckName(target.name, input.service ?? null),
|
||||
conclusion: validationResult.valid ? 'success' : 'failure',
|
||||
sha: input.github.commit,
|
||||
organization: input.organization,
|
||||
|
|
|
|||
Loading…
Reference in a new issue