aboutsummaryrefslogtreecommitdiffstats
path: root/git-patchwork-bot.example.yaml
blob: 6a5539c34ff48ae7970582dc0778749c1e539bfd (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
patchworks:
  # Entries are full URLs to the patchwork server toplevel
  'https://patchwork.kernel.org':
    # You can comment 'apitoken' out and pass a --tokens-file option, which is a separate yaml file
    # containing just the api tokens. The format is the same as this file, but everything other
    # than patchworks->[url]->apitoken is ignored. This allows splitting secrets from logic
    # in order to share configuration with others.
    apitoken: 'your-api-token'
    projects:
      # URL subpath name of the project
      'linux-amlogic':
        # Email will go out from this address
        from: 'patchwork-bot+linux-amlogic@kernel.org'
        # Any summaries will be sent to these addresses
        summaryto:
          - 'developer@example.com'
          - 'developer@example.org'
        # If this is set, all emails from the bot will be
        # cc'd to the list
        cclist: true
        # When run with -k
        housekeeping:
          # Automatically supersede new series coming in from the same
          # author and with the exact same subject (sans prefixes). This
          # setting tells us how many days back we should look to find a
          # matching series.
          autosupersede: 30
          # Archive any patches older than this number of days.
          autoarchive: 90

      'git':
        from: 'patchwork-bot+git@kernel.org'
        summaryto:
          - 'developer@example.com'
          - 'developer@example.org'
        housekeeping:
          autosupersede: 90
          autoarchive: 180

  'https://lore.kernel.org/patchwork':
    apitoken: 'another-api-token'
    projects:
      'lkml':
        from: 'notify+lkml@kernel.org'
        summaryto:
          - 'developer@example.net'
        housekeeping:
          autosupersede: 30
          autoarchive: 180

repos:
  # Each entry is a subpath to a repo from the --reposdir toplevel
  'pub/scm/linux/kernel/git/khilman/linux-amlogic.git':
    # For the notification emails
    treename: 'khilman/linux-amlogic.git'
    # Optional: limit checking to a single branch (instead of --heads)
    # This becomes a required setting if the repo path is a worktree.
    #branch: 'origin/master'
    # For the notification emails, must include %s
    commitlink: 'https://git.kernel.org/khilman/linux-amlogic/c/%.12s'
    # Only notify for commits where committer email exactly matches one
    # of the emails listed below
    committers:
      - 'khilman@example.org'
    # Which projects should be consulted on all new commits
    projects:
      # The project name MUST match one of the projects defined in patchworks:
      # This necessarily means that the project name must be unique across all
      # defined patchwork servers.
      'linux-amlogic':
        # entries are head names in the repository
        # e.g. this one is for refs/heads/example
        # They are matched with 'endswith' against the full refname
        'example':
          # Default "fromstate" is "new" or "in-review"
          # This is the state we will set on all matching patches
          tostate: 'Queued'
          # Send summary about changes to the people defined in "summaryto"
          send_summary: true
        'for-next':
          # If you add a new fromstate, you have to specify the default ones
          fromstate:
            - 'new'
            - 'in-review'
            - 'queued'
          tostate: 'Accepted'
          send_summary: true
          # Notify submitters when their patches change state.
          # The bot will send a single email per series.
          notify_submitter: true
          # CC the list on submitter notifications.
          # Note, that summaries will be sent to the list as well, if 
          # send_summary is true.
          cclist: true
        'fixes':
          fromstate:
            - 'new'
            - 'in-review'
            - 'queued'
          tostate: 'Accepted'
          send_summary: true
          notify_submitter: true
          cclist: true

  'pub/scm/linux/kernel/git/torvalds/linux.git':
    treename: 'torvalds/linux.git'
    commitlink: 'https://git.kernel.org/torvalds/c/%.12s'
    projects:
      'lkml':
        'master':
          fromstate:
            - 'new'
            - 'in-next'
          tostate: 'Accepted'
          notify_submitter: true
          # We only notify if the below address is in the cc list
          onlyifcc:
            - 'notify@kernel.org'

  'pub/scm/linux/kernel/git/next/linux-next.git':
    treename: 'next/linux-next.git'
    commitlink: 'https://git.kernel.org/next/linux-next/c/%.12s'
    projects:
      'lkml':
        'master':
          tostate: 'In Next'
          notify_submitter: true
          # Single-value arrays can be defined as strings as well
          onlyifcc: 'notify@kernel.org'

# The below templates are self-explanatory
# yamllint disable rule:line-length
templates:
  summary: |
           Hello:

           The following patches were marked "${newstate}", because they were applied to
           ${treename} (${refname}):

           ${summary}

           Total patches: ${total}

           --
           ${signature}
  submitter: |
             Hello:

             This ${reqtype} was applied to ${treename} (${refname})
             by ${committer}:

             On ${sentdate} you wrote:
             ${trimquote}

             Here is the summary with links:
             ${summary}

             You are awesome, thank you!
             --
             ${signature}
  signature: |
             Deet-doot-dot, I am a bot.
             https://korg.docs.kernel.org/patchwork/pwbot.html
# yamllint enable