github / stale-repos

Find stale repositories in a GitHub organization.
https://github.blog/2023-06-05-announcing-the-stale-repos-action/
MIT License
136 stars 24 forks source link

return None in case of a github exception for get_active_date #83

Closed anovadox closed 8 months ago

anovadox commented 8 months ago

Pull Request

Occasionally repo.get_branch can raise an exception: github3.exceptions.NotFoundError: 404 Branch not found Even when called on the repo's default branch!

This error handling is a bit overzealous, but I think we want the action to keep trucking along in the event of one repo having an issue.

Proposed Changes

Catch any exeption or error raised by the github3 while trying to get_active_date() and return None for that repo. It's not elegant, but it'll do.

Readiness Checklist

Author/Contributor

Reviewer