Skip to content

Commit a33c5d6

Browse files
bokelleyclaude
andauthored
feat: add IPR agreement workflow using centralized AdCP signatures (#101)
Adds GitHub workflow to enforce IPR Policy agreement before PRs can be merged. Uses contributor-assistant/github-action to check/store signatures in the central adcontextprotocol/adcp repository's ipr-signatures branch. Contributors only need to sign once across all AdCP repositories. Closes #98 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 934f437 commit a33c5d6

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: IPR Agreement
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened, closed, synchronize]
8+
9+
permissions:
10+
actions: write
11+
contents: read
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
ipr-check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: CLA Assistant
20+
if: (github.event.comment.body == 'I have read the IPR Policy' || github.event_name == 'pull_request_target')
21+
uses: contributor-assistant/github-action@v2.6.1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
PERSONAL_ACCESS_TOKEN: ${{ secrets.IPR_PAT }}
25+
with:
26+
path-to-signatures: 'signatures/ipr-signatures.json'
27+
path-to-document: 'https://github.com/adcontextprotocol/adcp/blob/main/IPR_POLICY.md'
28+
branch: 'ipr-signatures'
29+
remote-organization-name: 'adcontextprotocol'
30+
remote-repository-name: 'adcp'
31+
allowlist: 'bot*,dependabot*,renovate*,github-actions*'
32+
33+
custom-notsigned-prcomment: |
34+
## IPR Policy Agreement Required
35+
36+
Thank you for your contribution! Before we can accept your pull request, you must agree to our [Intellectual Property Rights Policy](https://github.com/adcontextprotocol/adcp/blob/main/IPR_POLICY.md).
37+
38+
By making a Contribution, you agree that:
39+
- You grant the Foundation a perpetual, irrevocable, worldwide, non-exclusive, royalty-free copyright license to your Contribution
40+
- You grant a patent license under any Necessary Claims
41+
- You represent that you own or have sufficient rights to grant these licenses
42+
43+
**To agree, please comment below with the exact phrase:**
44+
45+
```
46+
I have read the IPR Policy
47+
```
48+
49+
You can read the full [IPR Policy here](https://github.com/adcontextprotocol/adcp/blob/main/IPR_POLICY.md).
50+
51+
custom-pr-sign-comment: 'I have read the IPR Policy'
52+
53+
custom-allsigned-prcomment: |
54+
All contributors have agreed to the [IPR Policy](https://github.com/adcontextprotocol/adcp/blob/main/IPR_POLICY.md). Thank you!
55+
56+
lock-pullrequest-aftermerge: false
57+
use-dco-flag: false

0 commit comments

Comments
 (0)