Implement rules system v2 with markdown format #174
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: "CLA Assistant" | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_target: | |
| types: [opened, synchronize] | |
| branches: [main] | |
| # Run in merge queue but skip the step (shows as passing check) | |
| merge_group: | |
| types: [checks_requested] | |
| branches: [main] | |
| workflow_dispatch: | |
| # Explicitly set permissions for the workflow | |
| permissions: | |
| actions: write | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| # Job for merge queue - always passes since CLA is checked at PR time | |
| merge-queue-pass: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| steps: | |
| - name: CLA already verified at PR time | |
| run: echo "CLA check is performed on PRs, not in merge queue. Passing." | |
| cla-check: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'merge_group' && github.event_name != 'workflow_dispatch' | |
| steps: | |
| - name: "CLA Assistant" | |
| if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' | |
| uses: contributor-assistant/github-action@v2.6.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # This should be a Personal Access Token with repo scope | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_PAT }} | |
| with: | |
| path-to-signatures: 'CLA/version_1/CLA_SIGNATORIES.md' | |
| path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA/version_1/CLA.md' | |
| # Branch where CLA signatures will be stored | |
| branch: 'IMPT_cla_signatures' | |
| allowlist: 'dependabot[bot],github-actions[bot],claude,copilot,copilot-swe-agent[bot]' | |
| # Custom text for the CLA comment | |
| custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' | |
| custom-allsigned-prcomment: 'All contributors have signed the CLA. ✅' | |
| lock-pullrequest-aftermerge: false | |
| use-dco-flag: true |