MeterSphere/.github/workflows/add-labels-for-pr.yml

21 lines
471 B
YAML
Raw Normal View History

on: pull_request
2021-04-01 09:29:58 +08:00
name: MeterSphere 通用 PR 处理
2021-04-01 09:29:58 +08:00
2022-04-28 16:31:00 +08:00
permissions:
2022-04-28 16:32:26 +08:00
pull-requests: write
2022-04-28 16:31:00 +08:00
2021-04-01 09:29:58 +08:00
jobs:
generic_handler:
name: 为 PR 添加标签
2021-04-01 09:29:58 +08:00
runs-on: ubuntu-latest
steps:
- name: Add labels
uses: jumpserver/action-generic-handler@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-04-13 16:54:47 +08:00
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
2022-04-28 16:31:00 +08:00
labels: ${{ github.base_ref }}