Skip to content

Commit

Permalink
rultor: Check maintainership pre-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
adtac committed Jul 28, 2017
1 parent eb01169 commit a99c643
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .misc/check_maintainership.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Do not use `set -x` here as then it displays the PYPIPW in logs
set -e

# Get environment variables, readily decrypted by rultor
source ../rultor_secrets.sh

# Make sure the user is a maintainer
if curl "https://api.github.com/teams/1238757/memberships/${author}?access_token=${GITHUB_TOKEN}" | grep -vq "active"; then
echo "@${author} is not in the maintainers group."
exit 1
fi
1 change: 1 addition & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ merge:
fast-forward: only
script:
- python3 .misc/adjust_version_number.py coalib/VERSION -b `date --utc +%Y%m%d%H%M%S`
- bash .misc/check_maintainership.sh
- bash .misc/deploy.pypi.sh

release:
Expand Down

0 comments on commit a99c643

Please sign in to comment.