mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-11 12:37:16 +00:00
github/memex#8949: Adds a testcase for spaces, PRs and mustGetOwnerTypeQuery()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user