Skip to content

Commit

Permalink
Improve git commit message sample
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah committed Dec 21, 2023
1 parent 34d05b2 commit 9cf45bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/read-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "📚 ${{ env.BookTitle }}” (${{ env.BookStatus }})"
git add -A && git commit -m "📚 ${{ inputs['book-status'] }} book “${{ env.BookTitle }}"
git push
# Create pull request instead of directly committing if book is missing metadata
Expand All @@ -88,7 +88,7 @@ jobs:
git config --local user.name "GitHub Action"
git checkout -b review-book-${{env.BookIsbn}}
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add -A && git commit -m "📚 ${{ env.BookTitle }}” (${{ env.BookStatus }})" -m "“${{ env.BookTitle }}” is missing the following properties: ${{env.BookMissingMetadata}}. Edit this pull request to add them or merge it in."
git add -A && git commit -m "📚 ${{ inputs['book-status'] }} book “${{ env.BookTitle }}" -m "“${{ env.BookTitle }}” is missing the following properties: ${{env.BookMissingMetadata}}. Edit this pull request to add them or merge it in."
git push --set-upstream origin review-book-${{env.BookIsbn}}
gh pr create -B main -H "review-book-${{env.BookIsbn}}" --fill
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/read-thumbnail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ jobs:
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "📚 ${{ env.BookTitle }}” (${{ env.BookStatus }})"
git add -A && git commit -m "📚 ${{ inputs['book-status'] }} book “${{ env.BookTitle }}"
git push
2 changes: 1 addition & 1 deletion .github/workflows/read.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ jobs:
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "📚 ${{ env.BookTitle }}” (${{ env.BookStatus }})"
git add -A && git commit -m "📚 ${{ inputs['book-status'] }} book “${{ env.BookTitle }}"
git push

0 comments on commit 9cf45bd

Please sign in to comment.