github/memex#8949: Adds a testcase for spaces, PRs and mustGetOwnerTypeQuery()

This commit is contained in:
Shaun Kirk Wong
2022-03-29 00:23:33 +00:00
committed by GitHub
parent 959b0d462b
commit f4bd1b98a2
2 changed files with 113 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ export async function addToProject(): Promise<void> {
core.setOutput('itemId', addResp.addProjectNextItem.projectNextItem.id)
}
function mustGetOwnerTypeQuery(ownerType?: string): 'organization' | 'user' {
export function mustGetOwnerTypeQuery(ownerType?: string): 'organization' | 'user' {
const ownerTypeQuery = ownerType === 'orgs' ? 'organization' : ownerType === 'users' ? 'user' : null
if (!ownerTypeQuery) {