Skip to content

fix: output of printed repo url does not work #317

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

Merged
merged 6 commits into from
May 16, 2025

Conversation

chrheg
Copy link
Contributor

@chrheg chrheg commented May 9, 2025

Proposed Changes

  • Updated README: Updated references in the README file to reflect the latest version numbers.
  • Renamed default issue title: Changed the default issue name from "Stale repository report" to "Stale-repository-report". This reduces false positives when searching with the GitHub CLI, as the original name could match any of the individual words.
  • Fixed broken URL in action message: Removed an unintended colon at the end of a printed URL, which was preventing the link from working correctly.

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
  • If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from @jeffrey-luszcz

Reviewer

  • Label as either fix, documentation, enhancement, infrastructure, maintenance or breaking

@Copilot Copilot AI review requested due to automatic review settings May 9, 2025 07:12
@chrheg chrheg requested a review from a team as a code owner May 9, 2025 07:12
@github-actions github-actions bot added the fix label May 9, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the repository to improve URL formatting in log messages, update version references in the README, and rename the default issue title for better CLI search accuracy.

  • Fixed the output in stale_repos.py by removing an extra colon from the printed URL.
  • Upgraded GitHub Action versions and updated the default issue title format in the README.md file.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
stale_repos.py Removed an unintended colon from the printed URL in the repo data.
README.md Updated action versions and changed the default issue title format.

@@ -386,7 +386,7 @@ def set_repo_data(
Potentially caused by ghost user."
)

print(f"{repo.html_url}: {days_inactive} days inactive") # type: ignore
print(f"{repo.html_url} {days_inactive} days inactive") # type: ignore
Copy link
Preview

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] While removing the colon fixes the URL link issue, the new formatting could reduce clarity in separating the URL from the inactive days. Consider using a different delimiter (e.g., a comma or tab) to improve readability while keeping the URL valid.

Suggested change
print(f"{repo.html_url} {days_inactive} days inactive") # type: ignore
print(f"{repo.html_url},{days_inactive} days inactive") # type: ignore

Copilot uses AI. Check for mistakes.

@chrheg chrheg changed the title fix: update fix: output of printed repo url does not work May 9, 2025
@jmeridth
Copy link
Member

@chrheg thank you for the contribution. got some test failures. Thank you for updating the readme. The issue rename is a nice catch and the colon also. Will look again once tests fixed.

@zkoppert
Copy link
Member

Thanks for the changes!! I'm thinking that these might need to be considered breaking changes with the report name change. Any automation people might have to operate on the output file could break with a name update.

@jmeridth do you agree with rolling the major version here?

@jmeridth
Copy link
Member

Thanks for the changes!! I'm thinking that these might need to be considered breaking changes with the report name change. Any automation people might have to operate on the output file could break with a name update.

@jmeridth do you agree with rolling the major version here?

@zkoppert yes

@chrheg
Copy link
Contributor Author

chrheg commented May 14, 2025

@chrheg thank you for the contribution. got some test failures. Thank you for updating the readme. The issue rename is a nice catch and the colon also. Will look again once tests fixed.

Updated the test file now 👍 Hopefully it passes 🤞

Copy link
Member

@zkoppert zkoppert left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!!

@jmeridth jmeridth merged commit 17b5f39 into github:main May 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants