Bump cookiecutter template to 7c3e75 #218
Workflow file for this run
This file contains hidden or 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: Reviewing | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| assignee: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Add assignee | |
| env: | |
| GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
| run: | | |
| user_name="${{ github.event.pull_request.user.login }}" | |
| user_type=$(gh api "users/${user_name}" --jq ".type") | |
| echo $user_name is a $user_type | |
| if [[ "$user_type" != "User" ]]; then | |
| user_name="${{ vars.MEX_BOT_USER }}" | |
| echo using $user_name instead | |
| fi | |
| if [[ -z "${{ github.event.pull_request.assignee.login }}" ]]; then | |
| gh pr edit ${{ github.event.pull_request.html_url }} --add-assignee "${user_name}" | |
| fi |