aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--tmpl/repodef_repo.gl2
-rw-r--r--tmpl/soft_repo.gl6
3 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c01c81c..b94d543 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- add repodef_repo.gl template
- allow defining repos directly in main config file
+- set commits mailing lists
Version 0.1
diff --git a/tmpl/repodef_repo.gl b/tmpl/repodef_repo.gl
index 8d18b2b..bffb60b 100644
--- a/tmpl/repodef_repo.gl
+++ b/tmpl/repodef_repo.gl
@@ -2,3 +2,5 @@ repo [% repo %]
RW master = [% r.repos.$repo.maintainer %]
RW+ user/USER/ = @all
R = @all
+ config hooks.mailinglist = sysadmin-commits@ml.mageia.org
+ config hooks.emailprefix = [% repo %]
diff --git a/tmpl/soft_repo.gl b/tmpl/soft_repo.gl
index 1e12256..11a6482 100644
--- a/tmpl/soft_repo.gl
+++ b/tmpl/soft_repo.gl
@@ -3,3 +3,9 @@ repo [% repo %]
RW release/ = [% r.repos.$repo.maintainer %]
RW+ user/USER/ = @all
R = @all
+[% IF r.repos.$repo.mailinglist -%]
+ config hooks.mailinglist = [% r.repos.$repo.mailinglist %]
+[% ELSE -%]
+ config hooks.mailinglist = soft-commits@ml.mageia.org
+[% END -%]
+ config hooks.emailprefix = [% repo %]