Repository navigation
docs: remove phantom parameters from two public docstrings (#2392) #768
Workflow file for this run
This file contains hidden or 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: Sync GitHub to Yunxiao | ||
|
Check warning on line 1 in .github/workflows/yunxiao-github-sync.yml
|
||
| on: | ||
| issues: | ||
| types: [opened, closed, reopened] | ||
| pull_request_target: | ||
| types: [opened, closed, reopened] | ||
| workflow_dispatch: | ||
| inputs: | ||
| mode: | ||
| description: "运行模式" | ||
| required: true | ||
| type: choice | ||
| default: "preflight" | ||
| options: | ||
| - preflight | ||
| - backfill | ||
| apply: | ||
| description: "回填时是否实际写入(选 false 则仅 dry-run)" | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| permissions: | ||
| contents: read | ||
| issues: read | ||
| pull-requests: read | ||
| concurrency: | ||
| group: yunxiao-github-sync-${{ github.repository }} | ||
| cancel-in-progress: false | ||
| jobs: | ||
| sync: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.repository.default_branch }} | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Run sync | ||
| env: | ||
| YUNXIAO_TOKEN: ${{ secrets.YUNXIAO_TOKEN }} | ||
| YUNXIAO_PROJECT_ID: ${{ vars.YUNXIAO_PROJECT_ID }} | ||
| YUNXIAO_PROJECT_NAME: ${{ vars.YUNXIAO_PROJECT_NAME }} | ||
| YUNXIAO_DEFAULT_ASSIGNEE_NAME: ${{ vars.YUNXIAO_DEFAULT_ASSIGNEE_NAME }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | ||
| ARGS="--mode ${{ inputs.mode }}" | ||
| if [ "${{ inputs.mode }}" = "backfill" ] && [ "${{ inputs.apply }}" != "true" ]; then | ||
| ARGS="$ARGS --dry-run" | ||
| fi | ||
| elif [ "${{ github.event_name }}" = "issues" ] || [ "${{ github.event_name }}" = "pull_request_target" ]; then | ||
| ARGS="--mode event --apply" | ||
| else | ||
| ARGS="--mode preflight" | ||
| fi | ||
| python scripts/yunxiao_github_sync.py $ARGS | ||