mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[failedTestReporter] don't search for existing issues unless we're writing to GH (#120820) (#120830)
Co-authored-by: Spencer <email@spalger.com>
This commit is contained in:
parent
c46b52e9c2
commit
0e7dccef43
1 changed files with 7 additions and 5 deletions
|
@ -124,11 +124,13 @@ export function runFailedTestsReporterCli() {
|
|||
continue;
|
||||
}
|
||||
|
||||
let existingIssue: GithubIssueMini | undefined = await githubApi.findFailedTestIssue(
|
||||
(i) =>
|
||||
getIssueMetadata(i.body, 'test.class') === failure.classname &&
|
||||
getIssueMetadata(i.body, 'test.name') === failure.name
|
||||
);
|
||||
let existingIssue: GithubIssueMini | undefined = updateGithub
|
||||
? await githubApi.findFailedTestIssue(
|
||||
(i) =>
|
||||
getIssueMetadata(i.body, 'test.class') === failure.classname &&
|
||||
getIssueMetadata(i.body, 'test.name') === failure.name
|
||||
)
|
||||
: undefined;
|
||||
|
||||
if (!existingIssue) {
|
||||
const newlyCreated = newlyCreatedIssues.find(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue