Added example config
authorAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 23:10:15 +0000 (02:10 +0300)
committerAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 23:10:15 +0000 (02:10 +0300)
packaging/add_reviewers.conf [new file with mode: 0644]
packaging/gerrithooks-plugins.spec

diff --git a/packaging/add_reviewers.conf b/packaging/add_reviewers.conf
new file mode 100644 (file)
index 0000000..6d06da9
--- /dev/null
@@ -0,0 +1,29 @@
+; Don't forget to define information about your Gerrit server
+; [gerrit]
+; url = https://review.example.org/gerrit/
+; username = 
+; password =
+
+[add_reviewers]
+; set to True if you want to try things, without really adding 
+dry_run = True
+
+[add_reviewers_rule_example]
+; Warning: if multiple criteria specified in one rule, all must match
+; Match project name
+project_regexp=^platform
+; Match change's branch name
+branch_regexp=^master$
+; Match if some files are changed
+file_regexp=^packaging/.+
+; Match author email or real name (Warning: case insensitive!)
+author_regexp=^john.doe@
+;
+; if all above criteria match, let's add following reviewers:
+;
+; List of people (email, username or real name)
+reviewer=user1, user2
+; List of groups
+reviewer_group=Release Engineers, SDK - Architects
+; Groups from project permissions
+project_groups_regexp=.+- (Maintainers|Integrators|Reviewers)
index d572361464936e273e30cfc96472e171279a26a1..8dbad275d07d65724f854e8e5c9dfe56b44f2869 100644 (file)
@@ -10,6 +10,7 @@ License:        GPL-2
 Group:          Development/Languages/Python
 Url:            http://download.tizen.org/tools
 Source:         %{name}-%{version}.tar.gz
+Source1:        add_reviewers.conf
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -25,6 +26,7 @@ Framework to plug several extentions into Gerrit Hooks
 
 %prep
 %setup -q -n %{name}-%{version}
+cp %{SOURCE1} .
 
 %build
 python setup.py build
@@ -34,7 +36,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc README.rst
+%doc README.rst add_reviewers.conf
 %{python_sitelib}/*
 
 %changelog