This is an automated email from the ASF dual-hosted git repository.

hectorespert pushed a commit to branch commit_validation
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit 1c9ebd40435083e79375ed580c4425b5f2b50a9d
Author: Hector Espert <[email protected]>
AuthorDate: Sat May 2 17:05:38 2020 +0200

    Commit author validation
    
    Proposal of commit author validation using a GitHub action
---
 .github/workflows/commits.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml
new file mode 100644
index 0000000..890afda
--- /dev/null
+++ b/.github/workflows/commits.yml
@@ -0,0 +1,19 @@
+name: Check commits
+on:
+  push:
+  pull_request:
+
+jobs:
+  check:
+    name: Verify commits
+    runs-on: ubuntu-latest
+    steps:
+    - name: Check author name and email
+      uses: hectorespert/[email protected]
+      with:
+        # The GITHUB_TOKEN secret
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        # Fails on commits using Github private email address, like 
[email protected]
+        allow_private_email: false
+        # Author name should be match this regex
+        allow_name_regex: '^[A-Z]' # TODO: Improve regex


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to