From: Alexander Kanevskiy Date: Thu, 15 Aug 2013 23:10:15 +0000 (+0300) Subject: Added example config X-Git-Tag: submit/devel/20190730.075359~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6d37d5e49c1ef81310d727a210dde5e3682d907;p=services%2Fgerrithooks-plugins.git Added example config --- diff --git a/packaging/add_reviewers.conf b/packaging/add_reviewers.conf new file mode 100644 index 0000000..6d06da9 --- /dev/null +++ b/packaging/add_reviewers.conf @@ -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) diff --git a/packaging/gerrithooks-plugins.spec b/packaging/gerrithooks-plugins.spec index d572361..8dbad27 100644 --- a/packaging/gerrithooks-plugins.spec +++ b/packaging/gerrithooks-plugins.spec @@ -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