github / stale-repos

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

feat: support github enterprise api #225

Open ricardojdsilva87 opened 3 weeks ago

ricardojdsilva87 commented 3 weeks ago

Pull Request

Proposed Changes

This Pull request is based on the already merged https://github.com/github/evergreen/pull/256 to give support to GitHub Enterprise login using a GitHub App also created on GitHub Enterprise

Code coverage

---------- coverage: platform darwin, python 3.13.0-final-0 ----------
Name             Stmts   Miss  Cover   Missing
----------------------------------------------
auth.py             16      1    94%   47
stale_repos.py     151     16    89%   142-143, 184-185, 200-201, 224, 326, 328, 335-336, 394-395, 402-403, 413
----------------------------------------------
TOTAL              167     17    90%

Required test coverage of 80% reached. Total coverage: 89.82%

Readiness Checklist

Author/Contributor

Reviewer