Skip to content

Commit

Permalink
feat(github): populate pull request template
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Jun 29, 2023
1 parent 73b3b4c commit 4ccb759
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a
Fix #<gh-issue-id>

Test URLs:
- Before: https://main--<repo>--<owner>.hlx.page/
- After: https://<branch>--<repo>--<owner>.hlx.page/
- Before: https://main--{repo}--{owner}.hlx.page/
- After: https://<branch>--{repo}--{owner}.hlx.page/
10 changes: 5 additions & 5 deletions .github/workflows/cleanup-on-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ jobs:
node-version: 18
- name: Uninstall dependencies
run: |
npm uninstall --save-dev \
semantic-release \
@semantic-release/git \
@semantic-release/changelog \
@semantic-release/exec
npm uninstall --save-dev semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec
- name: Remove Helper Files
run: |
rm -rf \
Expand All @@ -36,6 +32,10 @@ jobs:
run: |
sed -i 's/{repo}/$(basename ${{ github.repository }})/g' README.md
sed -i 's/{owner}/$(dirname ${{ github.repository }})/g' README.md
- name: Initialize Pull Request Template
run: |
sed -i 's/{repo}/$(basename ${{ github.repository }})/g' .github/pull_request_template.md
sed -i 's/{owner}/$(dirname ${{ github.repository }})/g' .github/pull_request_template.md
# commit back to the repository
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Generate a changelog with semantic-release
# Skip if the commit message is "Initial commit"
on:
push:
branches:
- main
jobs:
semantic-release:
if: "!contains(github.event.head_commit.message, 'Initial commit')"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 4ccb759

Please sign in to comment.