Skip to content

Commit

Permalink
Create add-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shimoranla authored Jan 18, 2025
1 parent 1b6f880 commit 4438fe0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/add-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Auto Label and Reviewer

on:
pull_request:
types: [opened]

permissions:
pull-requests: write
contents: read

jobs:
add-label-and-reviewer:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check Label
- name: Authenticate GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

- name: Add Label
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "新提交"

- name: Add Reviewer
run: gh pr edit ${{ github.event.pull_request.number }} --add-reviewer LTCatt

0 comments on commit 4438fe0

Please sign in to comment.