From 1929d97848fd6a62fe2916dec21d6c3de99cd0a2 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Thu, 1 Jun 2023 17:41:19 +0300 Subject: [PATCH] Finish cruft PRs (#201) --- scripts/src/scverse_template_scripts/cruft_prs.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/src/scverse_template_scripts/cruft_prs.py b/scripts/src/scverse_template_scripts/cruft_prs.py index 7f007e8c..901f7b4b 100644 --- a/scripts/src/scverse_template_scripts/cruft_prs.py +++ b/scripts/src/scverse_template_scripts/cruft_prs.py @@ -27,14 +27,14 @@ log = getLogger(__name__) PR_BODY_TEMPLATE = """\ -`cookiecutter-scverse` released [{release.title}]({release.html_url}). +`cookiecutter-scverse` released [{release.tag_name}]({release.html_url}). ## Changes {release.body} ## Additional remarks -* unsubscribe: If you don`t want to receive these PRs in the future, +* unsubscribe: If you don’t want to receive these PRs in the future, add `skip: true` to [`template-repos.yml`][] using a PR or, if you never want to sync from the template again, delete your `.cruft` file. * If there are **merge conflicts**, @@ -43,7 +43,7 @@ * The scverse template works best when the [pre-commit.ci][], [readthedocs][] and [codecov][] services are enabled. Make sure to activate those apps if you haven't already. -[template-repos.yml]: https://github.com/scverse/ecosystem-packages/blob/main/template-repos.yml +[`template-repos.yml`]: https://github.com/scverse/ecosystem-packages/blob/main/template-repos.yml [pre-commit.ci]: {template_usage}#pre-commit-ci [readthedocs]: {template_usage}#documentation-on-readthedocs [codecov]: {template_usage}#coverage-tests-with-codecov @@ -123,9 +123,7 @@ def get_template_release(gh: Github, tag_name: str) -> GHRelease: def parse_repos(f: IO[str] | str) -> list[RepoInfo]: repos = cast(list[RepoInfo], safe_load(f)) log.info(f"Found {len(repos)} known repos") - # TODO: return real repos - fake_repos = [RepoInfo(url="https://github.com/flying-sheep/cruft-pr-test")] - return fake_repos + return repos def get_repo_urls(gh: Github) -> Generator[str]: