Onboarding improved, various other improvements and fixes #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update PR Description | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
update_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Fetch commit messages and update PR description | |
run: | | |
# Fetch commit messages | |
messages=$(git log --pretty=format:"- %s" origin/${{ github.event.pull_request.base.ref }}..origin/${{ github.event.pull_request.head.ref }}) | |
# Update PR description | |
gh pr edit ${{ github.event.pull_request.number }} \ | |
--add-label "auto-updated" \ | |
--body "$messages" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |