Skip to content

Commit

Permalink
Finish cruft PRs (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jun 1, 2023
1 parent f9a029b commit 1929d97
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/src/scverse_template_scripts/cruft_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 dont 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**,
Expand All @@ -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
Expand Down Expand Up @@ -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]:
Expand Down

0 comments on commit 1929d97

Please sign in to comment.