Skip to content

chore: 出现全局公告时会额外出一个滚动条问题优化 --story=131115507 #61

chore: 出现全局公告时会额外出一个滚动条问题优化 --story=131115507

chore: 出现全局公告时会额外出一个滚动条问题优化 --story=131115507 #61

Workflow file for this run

name: "Label PR based on title"
on:
- pull_request_target
jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Label PR
run: |
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ "$PR_TITLE" == "fix:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label bugfix
elif [[ "$PR_TITLE" == "feat:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label feature
elif [[ "$PR_TITLE" == "docs:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label optimization
elif [[ "$PR_TITLE" == "refactor:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label feature
elif [[ "$PR_TITLE" == "perf:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label optimization
else
echo "No label with this title: $PR_TITLE"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}