Rename not_found_repo_nwos to not_found_repos

The `not_found_repo_nwos` field doesn't actually exist (anymore?) on the
GitHub API. The correct name is `not_found_repos`, so this renames the
field on the type and in the scenarios.
This commit is contained in:
Koen Vlaswinkel
2022-11-02 12:49:05 +01:00
parent 78f091729f
commit 25fec684e2
44 changed files with 47 additions and 47 deletions

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -760,7 +760,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -762,7 +762,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -762,7 +762,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -762,7 +762,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -762,7 +762,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -762,7 +762,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -763,7 +763,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -752,7 +752,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -756,7 +756,7 @@
}
]
},
"not_found_repo_nwos": {
"not_found_repos": {
"repository_count": 110,
"repository_full_names": [
"evanw/node-source-map-support",

View File

@@ -79,7 +79,7 @@ export interface VariantAnalysisRepoTask {
export interface VariantAnalysisSkippedRepositories {
access_mismatch_repos?: VariantAnalysisSkippedRepositoryGroup,
not_found_repo_nwos?: VariantAnalysisNotFoundRepositoryGroup,
not_found_repos?: VariantAnalysisNotFoundRepositoryGroup,
no_codeql_db_repos?: VariantAnalysisSkippedRepositoryGroup,
over_limit_repos?: VariantAnalysisSkippedRepositoryGroup
}

View File

@@ -100,7 +100,7 @@ function processSkippedRepositories(
return {
accessMismatchRepos: processRepoGroup(skippedRepos.access_mismatch_repos),
notFoundRepos: processNotFoundRepoGroup(skippedRepos.not_found_repo_nwos),
notFoundRepos: processNotFoundRepoGroup(skippedRepos.not_found_repos),
noCodeqlDbRepos: processRepoGroup(skippedRepos.no_codeql_db_repos),
overLimitRepos: processRepoGroup(skippedRepos.over_limit_repos)
};

View File

@@ -22,7 +22,7 @@ describe('Variant Analysis processor', function() {
it('should process an API response and return a variant analysis', () => {
const result = processVariantAnalysis(mockSubmission, mockApiResponse);
const { access_mismatch_repos, no_codeql_db_repos, not_found_repo_nwos, over_limit_repos } = skippedRepos;
const { access_mismatch_repos, no_codeql_db_repos, not_found_repos, over_limit_repos } = skippedRepos;
expect(result).to.eql({
'id': mockApiResponse.id,
@@ -81,13 +81,13 @@ describe('Variant Analysis processor', function() {
'notFoundRepos': {
'repositories': [
{
'fullName': not_found_repo_nwos?.repository_full_names[0]
'fullName': not_found_repos?.repository_full_names[0]
},
{
'fullName': not_found_repo_nwos?.repository_full_names[1]
'fullName': not_found_repos?.repository_full_names[1]
}
],
'repositoryCount': not_found_repo_nwos?.repository_count
'repositoryCount': not_found_repos?.repository_count
},
'overLimitRepos': {
'repositories': [

View File

@@ -9,7 +9,7 @@ export function createMockSkippedRepos(): VariantAnalysisSkippedRepositories {
return {
access_mismatch_repos: createMockSkippedRepoGroup(),
no_codeql_db_repos: createMockSkippedRepoGroup(),
not_found_repo_nwos: createMockNotFoundSkippedRepoGroup(),
not_found_repos: createMockNotFoundSkippedRepoGroup(),
over_limit_repos: createMockSkippedRepoGroup()
};
}