aboutsummaryrefslogtreecommitdiff
path: root/docs/usage/delegation.rst
blob: b9e620bb9ea535e6f51e947dcc32fd640502034f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Autodelegation
==============

Autodelegation allows patches to be automatically delegated to a user based on
the files modified by the patch. To do this, a number of rules can be
configured in the project administration page. This can usually be found at:

    /admin/patchwork/project/<project_id>/change

.. note::

   Autodelegation can only be configured by Patchwork administrators, i.e.
   those that can access the 'admin' panel. If you require configuration of
   autodelegation rules on a local instance, contact your Patchwork
   administrator.

In this section there are the following fields:

User
  The patchwork user that should be autodelegated to the patch

Priority
  The priority of the rule relative to other patches. Higher values indicate
  higher priority. If two rules have the same priority, ordering will be based
  on the path.

Path
  A path in `fnmatch`__ format. The fnmatch library allows for limited, Unix
  shell-style wildcarding. Filenames are extracted from patch lines beginning
  with ``---`` or ``+++``.

  You can simply use a bare path::

      patchwork/views/about.py

  Or it is also possible to use relative paths, such as::

      */manage.py


Rules are configured by setting the above fields and saving the rules. These
rules will be applied at patch parse time.

__ https://docs.python.org/2/library/fnmatch.html