Skip to content

Commit

Permalink
Assign reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Dec 31, 2023
1 parent bddcfc5 commit baaf620
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/sync_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
required: true
type: string

reviewer:
description: |
Who to assign as PR reviewer (default: you)
required: false
type: string

jobs:
sync:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -92,7 +98,7 @@ jobs:
git push -u origin "automation/sync-${{ inputs.version }}"
working-directory: pantsbuild.org
- name: Make a PR
run: gh pr create --title "Update docs site for version ${{ inputs.version }}" --body "Docs from https://github.com/pantsbuild/pants/releases/tag/release_${{ inputs.version }}"
run: gh pr create --title "Update docs site for version ${{ inputs.version }}" --body "Docs from https://github.com/pantsbuild/pants/releases/tag/release_${{ inputs.version }}" --reviewer "${{ inputs.reviewer || github.actor }}"
env:
GH_TOKEN: ${{ github.token }}
working-directory: pantsbuild.org

0 comments on commit baaf620

Please sign in to comment.