Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
paescuj opened this issue Sep 21, 2022 · 3 comments
Open

Comments

@paescuj
Copy link

paescuj commented Sep 21, 2022

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'
@timrogers
Copy link
Contributor

👋 Would you be willing to share the JSON responses you're seeing? That will help with debugging on our side. If so, you can send them to my username @github.com 😊

@paescuj
Copy link
Author

paescuj commented Sep 22, 2022

Thank you very much for your quick response! 😃 Sure, I've just sent you the JSON response in an email.

@timrogers
Copy link
Contributor

@paescuj Thank you! I've flagged this with the relevant team at GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants