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

enhancement: Check if archived before checking labels and dates for performance #117

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

zkoppert
Copy link
Member

@zkoppert zkoppert commented Apr 19, 2024

Pull Request

Proposed Changes

This pull request includes changes to the get_inactive_repos function in the stale_repos.py file. The changes focus on improving the handling of archived repositories when checking for inactive repositories. Let's not waste time getting info on archived repos just to later bail since its archived. Fail fast.

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run make lint and fix any issues that you have introduced
  • run make test and ensure you have test coverage for the lines you are introducing

Reviewer

  • Label as either bug, documentation, enhancement, infrastructure, or breaking

Let's not waste time getting info on archived repos just to later bail since its archived. Fail fast.
@zkoppert zkoppert requested a review from jmeridth as a code owner April 19, 2024 00:03
@zkoppert zkoppert added the enhancement New feature or request label Apr 19, 2024
Copy link
Member

@jmeridth jmeridth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fail fast ftw. :shipit:

@zkoppert zkoppert merged commit 1755607 into main Apr 19, 2024
22 checks passed
@zkoppert zkoppert deleted the zkoppert-patch-1 branch April 19, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants