mirror of
https://github.com/wandb/skills.git
synced 2026-09-19 09:00:04 +08:00
b7c5d6a24c
Set up contributor-assistant GitHub Action to require CLA signatures on pull requests, matching the wandb/weave CLA setup. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
name: "cla"
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
pull_request_target:
|
|
types: [opened, closed, synchronize]
|
|
|
|
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
|
|
permissions:
|
|
actions: write
|
|
contents: write
|
|
pull-requests: write
|
|
statuses: write
|
|
|
|
jobs:
|
|
CLAAssistant:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "check-signature"
|
|
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.3.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
path-to-signatures: "cla/signatures/version1/cla.json"
|
|
path-to-document: "https://github.com/wandb/skills/blob/main/cla.md"
|
|
# branch should not be protected
|
|
branch: "cla"
|
|
allowlist: actions-user, dependabot[bot], wandbmachine, jlzhao27, zaysola
|