add: add ssh config #35
This file contains 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: PR Label Check | |
on: | |
pull_request: | |
types: [labeled,unlabeled, opened, reopened, edited] | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR Labels | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const requiredLabel = 'gate_check_pass'; // 替换为你的标签名称 | |
const labels = context.payload.pull_request.labels.map(label => label.name); | |
if (!labels.includes(requiredLabel)) { | |
throw new Error(`PR 必须包含标签: ${requiredLabel}`); | |
} |