Skip to content

[Schema Inaccuracy] 'head_repository' on workflow run might also be null #1586

Open
@paescuj

Description

@paescuj

Schema Inaccuracy

Apparently, the head_repository property can also be null in the Get a workflow run response. I assume this happens when the repository has been removed in the meantime.

Expected

The head_repository property should also list null as a possible variant.

Reproduction Steps

# Run with empty 'head_repository'
curl --silent https://api.github.com/repos/fkirc/skip-duplicate-actions/actions/runs/2379220866 | jq '.head_repository'

# "Normal" run
curl --silent https://api.github.com/repos/fkirc/skip-duplicate-actions/actions/runs/2419547490 | jq '.head_repository'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions