Skip to content

Conversation

@NEHAJAKATE
Copy link

@NEHAJAKATE NEHAJAKATE commented Jan 7, 2026

Fixes issue #82
Problem (before)
When challenge validation fails, the workflow tries to create a GitHub issue.
The current code uses client.get_user().get_repo(repo_name), which assumes the repo belongs to the authenticated user and that repo_name is only a short name.
In real runs, the repository is usually owner/repo (from GITHUB_REPOSITORY), so issue creation can fail with:

404 Not Found (repo lookup fails)

Change (what I did)

Resolve repo safely as owner/repo:

Use repo_name if it already contains owner/repo

Otherwise fall back to GITHUB_REPOSITORY

Use Github(token).get_repo("owner/repo") to create the issue in the correct repository.

Why this helps
Validation failures now reliably create an issue instead of failing during issue creation, so hosts get the error report where they expect it.

Testing

Local run with PAT + GITHUB_REPOSITORY=NEHAJAKATE/EvalAI-Starters

Verified issue creation succeeds (no more 404 Not Found)

Summary
Fixes issue creation failing with 404 Not Found by resolving the repository as owner/repo and using Github.get_repo().

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant