Skip to content
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

notify_status() Raises NotFoundOnGithub Error #113

Open
yibudak opened this issue Dec 18, 2024 · 2 comments
Open

notify_status() Raises NotFoundOnGithub Error #113

yibudak opened this issue Dec 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@yibudak
Copy link

yibudak commented Dec 18, 2024

Hello,

When attempting to use the runboat on private repositories, I encounter an error in the notify_status() function. However, other GitHub functions, such as get_pull_info() and get_branch_info(), work as expected.

Which token type should be utilized in the github_token parameter? The documentation provides an example of a fine-grained token, but when I employ this token, the functions above also fail.

Create a commit status (docs):
https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#create-a-commit-status

@yibudak
Copy link
Author

yibudak commented Dec 18, 2024

I may have found a solution. First, I tried allowing tokens (classic and fine-grained) in the organization, but it didn't change anything. Making the bot an owner of the organization solved the problem. Also I have to mention that I made it work with classic token, maybe we can add more information about it in the code.

@sbidoul sbidoul added the question Further information is requested label Mar 1, 2025
@sbidoul
Copy link
Owner

sbidoul commented Mar 1, 2025

The token must be for a user with push permissions to the repos. I don't think it is necessary for it to be a org owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants