[sysadmin-bin] Emit commit notifications against protected branches only
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Emit commit notifications against protected branches only
- Date: Tue, 16 Jan 2018 13:31:54 +0000 (UTC)
commit cc1ac177153ca6560a4f13d7bc554930fa656c59
Author: Andrea Veri <averi redhat com>
Date: Tue Jan 16 14:31:06 2018 +0100
Emit commit notifications against protected branches only
git/post-receive-notify-kgb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/post-receive-notify-kgb b/git/post-receive-notify-kgb
index e51fdcb..38b8ac1 100755
--- a/git/post-receive-notify-kgb
+++ b/git/post-receive-notify-kgb
@@ -1,6 +1,6 @@
# Kgb-Bot's hook, get the repository name and feed --repo-id with it, make sure that repo-id do
# actually match the repository-name you are going to configure on kgb.conf and kgb-client.conf. More
-# details at https://wiki.gnome.org/Sysadmin/CommitsBot. KGB will only notify commits made to the master
branch.
+# details at https://wiki.gnome.org/Sysadmin/IRC#Other_details:_Commits_Bot.
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
ABSDIR=$(cd $GIT_DIR && pwd)
@@ -9,5 +9,5 @@ REPOSITORY_ID=$(basename "$PWD")
REPOSITORY_ID=${REPOSITORY_ID%.git}
if [[ $BASEDIR = '/var/opt/gitlab/git-data/repositories/GNOME' || $BASEDIR =
'/var/opt/gitlab/git-data/repositories/GNOMEInfrastructure' || $BASEDIR = '/git' ]]; then
- grep -v refs/heads/wip | kgb-client --conf /home/admin/KGB/kgb-client-$REPOSITORY_ID.conf --repository
git --git-reflog - > /dev/null 2>&1
+ egrep 'refs/heads/(master|gtk\-|glib\-|gnome\-)' | kgb-client --conf
/home/admin/KGB/kgb-client-$REPOSITORY_ID.conf --repository git --git-reflog - > /dev/null 2>&1
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]