Skip to content

Commit fd50d1d

Browse files
authored
Add docs link to PR comment (#478)
1 parent 391b744 commit fd50d1d

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/deploy-instance-repo.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,17 @@ jobs:
133133
uses: mshick/add-pr-comment@v2
134134
with:
135135
message: |
136-
A PR has been generated to the instance repo:
137-
https://github.com/${{ env.INSTANCE_REPO_GITHUB }}/pull/${{ env.SISTER_PR_ID }}
136+
A PR has been generated to the instance repo: ${{ env.INSTANCE_REPO_GITHUB }}#${{ env.SISTER_PR_ID }}
138137
138+
[![Checks Status][checks-badge]][checks] [![Documentation Preview][docs-badge]][docs]
139139
140-
You can check out the PR to preview your changes
141-
in an instance of the cookiecutter template. The PR will be kept in sync with
142-
this PR automatically.
140+
You can check out the PR to preview your changes in an instance of the cookiecutter template.
141+
It will be kept in sync with this PR automatically.
142+
143+
[checks-badge]: https://github.com/scverse/cookiecutter-scverse-instance/actions/workflows/test.yaml/badge.svg?branch=pr-${{ github.event.pull_request.number }}
144+
[checks]: https://github.com/scverse/cookiecutter-scverse-instance/pull/${{ env.SISTER_PR_ID }}/checks
145+
[docs-badge]: https://app.readthedocs.org/projects/cookiecutter-scverse-instance/badge/?version=${{ env.SISTER_PR_ID }}
146+
[docs]: https://cookiecutter-scverse-instance--${{ env.SISTER_PR_ID }}.org.readthedocs.build/
143147
repo-token: ${{ secrets.GITHUB_TOKEN }}
144148
allow-repeats: false
145149

0 commit comments

Comments
 (0)