Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Nov 30, 2023
1 parent 5129389 commit 6a71b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/check_authors.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#!/bin/bash

git log $1 --pretty=format:"%ae" | sort | uniq | head -n 10

git log origin/main..origin/author-action --pretty=format:"%ae" | sort | uniq | head -n 10

# Only check the first 10 email addresses found in the PR
EMAILS=$(git log $1 --pretty=format:"%ae" | sort | uniq | head -n 10)

echo "Emails: $EMAILS"

for EMAIL in $EMAILS ; do
# Check if the email exists in the AUTHORS file
if grep -Fxq "$EMAIL" AUTHORS; then
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-author-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
check-author:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 6a71b72

Please sign in to comment.