Explorar o código

[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.
Petr Penzin %!s(int64=5) %!d(string=hai) anos
pai
achega
0024ebf989
Modificáronse 3 ficheiros con 18 adicións e 1 borrados
  1. 17 0
      .github/workflows/agreement.yml
  2. 1 1
      CONTRIBUTING.md
  3. 0 0
      ContributionAgreement.md

+ 17 - 0
.github/workflows/agreement.yml

@@ -0,0 +1,17 @@
+name: "Contribution Agreement"
+on:
+  pull_request
+
+jobs:
+  AgreementCheck:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - run: |
+          echo Looking up contributor
+          tail -n +36 ContributionAgreement.md | awk -F\| '{print $3}' | grep -w $USER
+        env:
+          USER: ${{ github.actor }}

+ 1 - 1
CONTRIBUTING.md

@@ -16,7 +16,7 @@ If you find a security issue in the Master branch of ChakraCore but not in 1.11
 
 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.
 
-You can read the agreement here: [Contribution Agreement](Contribution%20Agreement.md)
+You can read the agreement here: [Contribution Agreement](ContributionAgreement.md)
 
 ## Housekeeping
 

+ 0 - 0
Contribution Agreement.md → ContributionAgreement.md