ci: Add autofix CI workflow configuration #50
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 | |
| - reopened | |
| permissions: | |
| actions: write | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| cla-assistant: | |
| if: > | |
| github.event_name == 'pull_request_target' || | |
| ( | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| ( | |
| github.event.comment.body == 'recheck' || | |
| github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA' | |
| ) | |
| ) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: CLA Assistant | |
| uses: contributor-assistant/github-action@v2.6.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| path-to-signatures: "signatures/version1/cla.json" | |
| path-to-document: "https://github.com/${{ github.repository }}/blob/${{ github.event.repository.default_branch }}/CLA.md" | |
| # This branch must be created ahead of time and remain writable to the workflow. | |
| # Keep it separate from the protected default branch used for normal development. | |
| branch: "cla-signatures" | |
| allowlist: "dependabot[bot],github-actions[bot]" | |
| create-file-commit-message: "chore(cla): create CLA signatures storage" | |
| signed-commit-message: "chore(cla): $contributorName signed the CLA for #$pullRequestNo" | |
| custom-notsigned-prcomment: > | |
| Thanks for the contribution. Before we can review or merge this pull request, please read | |
| [our CLA](https://github.com/${{ github.repository }}/blob/${{ github.event.repository.default_branch }}/CLA.md) and add this exact | |
| comment once: `I have read the CLA Document and I hereby sign the CLA` | |
| custom-allsigned-prcomment: > | |
| All contributors on this pull request have signed the CLA. | |
| lock-pullrequest-aftermerge: false |