Skip to content

Commit 0024ebf

Browse files
authored
[CI] Check contributor user ID (#6578)
* [CI] Check contributor user ID * Remove space from Contribution Agreement filename Check if a user ID of the submitter is in the Contributor Agreement file.
1 parent 1d2efd0 commit 0024ebf

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/agreement.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Contribution Agreement"
2+
on:
3+
pull_request
4+
5+
jobs:
6+
AgreementCheck:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- run: |
14+
echo Looking up contributor
15+
tail -n +36 ContributionAgreement.md | awk -F\| '{print $3}' | grep -w $USER
16+
env:
17+
USER: ${{ github.actor }}

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you find a security issue in the Master branch of ChakraCore but not in 1.11
1616

1717
You will need to complete a Contribution Agreement before your pull request can be accepted. This agreement testifies that you are granting us permission to use the source code you are submitting, and that this work is being submitted under appropriate license that we can use it.
1818

19-
You can read the agreement here: [Contribution Agreement](Contribution%20Agreement.md)
19+
You can read the agreement here: [Contribution Agreement](ContributionAgreement.md)
2020

2121
## Housekeeping
2222

File renamed without changes.

0 commit comments

Comments
 (0)