mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
22 lines
567 B
YAML
22 lines
567 B
YAML
name: 'Auto Assign'
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
auto_assign:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Auto-assign PR to author
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
pr_number=${{ github.event.pull_request.number }}
|
|
pr_author=${{ github.event.pull_request.user.login }}
|
|
gh api -X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
"/repos/${{ github.repository }}/issues/${pr_number}/assignees" \
|
|
-f assignees='["'${pr_author}'"]'
|