fix: fan class-module entity args over scope descendants (#629) #60
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: auto-allow-ci | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| label: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check author permission | |
| id: check | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| perm=$(gh api repos/${{ github.repository }}/collaborators/${{ github.event.pull_request.user.login }}/permission --jq '.permission') | |
| if [[ "$perm" == "admin" || "$perm" == "write" ]]; then | |
| echo "allowed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Add allow-ci label | |
| if: steps.check.outputs.allowed == 'true' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh issue edit ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --add-label allow-ci |