Skip to content

Commit 1929d97

Browse files
committed
Finish cruft PRs (#201)
1 parent f9a029b commit 1929d97

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/src/scverse_template_scripts/cruft_prs.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
log = getLogger(__name__)
2828

2929
PR_BODY_TEMPLATE = """\
30-
`cookiecutter-scverse` released [{release.title}]({release.html_url}).
30+
`cookiecutter-scverse` released [{release.tag_name}]({release.html_url}).
3131
3232
## Changes
3333
3434
{release.body}
3535
3636
## Additional remarks
37-
* unsubscribe: If you don`t want to receive these PRs in the future,
37+
* unsubscribe: If you dont want to receive these PRs in the future,
3838
add `skip: true` to [`template-repos.yml`][] using a PR or,
3939
if you never want to sync from the template again, delete your `.cruft` file.
4040
* If there are **merge conflicts**,
@@ -43,7 +43,7 @@
4343
* The scverse template works best when the [pre-commit.ci][], [readthedocs][] and [codecov][] services are enabled.
4444
Make sure to activate those apps if you haven't already.
4545
46-
[template-repos.yml]: https://github.com/scverse/ecosystem-packages/blob/main/template-repos.yml
46+
[`template-repos.yml`]: https://github.com/scverse/ecosystem-packages/blob/main/template-repos.yml
4747
[pre-commit.ci]: {template_usage}#pre-commit-ci
4848
[readthedocs]: {template_usage}#documentation-on-readthedocs
4949
[codecov]: {template_usage}#coverage-tests-with-codecov
@@ -123,9 +123,7 @@ def get_template_release(gh: Github, tag_name: str) -> GHRelease:
123123
def parse_repos(f: IO[str] | str) -> list[RepoInfo]:
124124
repos = cast(list[RepoInfo], safe_load(f))
125125
log.info(f"Found {len(repos)} known repos")
126-
# TODO: return real repos
127-
fake_repos = [RepoInfo(url="https://github.com/flying-sheep/cruft-pr-test")]
128-
return fake_repos
126+
return repos
129127

130128

131129
def get_repo_urls(gh: Github) -> Generator[str]:

0 commit comments

Comments
 (0)