summaryrefslogtreecommitdiff
path: root/.triage-policies.yml
blob: ce97ffd57abe67378f53afa712494d265446ef41 (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
# This is a set of bugbot commands for issues and merge requests - setting any of the
# bugbot::foo labels will trigger gitlab-triage to run with this ruleset (well, the
# one we have on the main branch at the time)
#
# Note that for adding labels, the label must first created in the project.

# Re-used in issues and mrs
.close_needinfo: &close_needinfo
  name: "Close stale needinfo bugs"
  conditions:
    labels:
      - "bugbot::needinfo-timeout"
  actions:
    remove_labels:
      - "bugbot::needinfo-timeout"
    comment: |
      I'm closing this bug because some information we requested a while ago was never supplied and
      we're not able to continue without this information.
      Please feel free to re-open.
    status: "close"

resource_rules:
  issues:
    rules:
      - name: "Close kernel bugs"
        conditions:
          labels:
            - "bugbot::kernel"
        actions:
          labels:
            - "kernel"
          remove_labels:
            - "bugbot::kernel"
          comment: |
            This bug looks like a kernel issue and it cannot be fixed
            in libinput directly. I'm closing this bug but do feel free
            to continue discussing the issue here.

            Kernel bugs are usually best sent to the [`linux-input` list](https://lore.kernel.org/linux-input/).
          status: "close"
      - name: "Request hid-recorder output"
        conditions:
          labels:
            - "bugbot::hid-recorder"
        actions:
          remove_labels:
            - "bugbot::hid-recorder"
          comment: |
            Looks like we may need some extra information that isn't yet available in this issue.
            Please **attach** (do not paste) the output of `hid-recorder` from [hid-tools](https://gitlab.freedesktop.org/libevdev/hid-tools/)
            for this device (run `sudo hid-recorder` without argument and it will let you pick the device).
            This should show the data the kernel receives from the device and may provide a hint on what's going on here.
      - name: "Request libinput record output"
        conditions:
          labels:
            - "bugbot::libinput-record"
        actions:
          remove_labels:
            - "bugbot::libinput-record"
          comment: |
            Looks like we may need some extra information. Please **attach** (do not paste) the full output
            of `libinput record` and `libinput debug-events --verbose` (if you haven't yet).
            The [documentation](https://wayland.freedesktop.org/libinput/doc/latest/tools.html#libinput-record-and-libinput-replay)
            has some information on what we're looking for to be able to triage bugs.
      - name: "Expect a merge request"
        conditions:
          labels:
            - "bugbot::expect-mr"
        actions:
          remove_labels:
            - "bugbot::expect-mr"
          comment: |
            I'm closing this bug in anticipation of a merge request that fixes this issue.

            If you are a new contributor, please see
            [the freedesktop.org wiki](https://gitlab.freedesktop.org/freedesktop/freedesktop/-/wikis/home)
            on how to get permissions to fork a project and file a merge request.

            The [libinput documentation](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html)
            also has more details on how to get started.
          status: "close"
      - *close_needinfo
  merge_requests:
    rules:
      - name: "Remind contributor of commit rules"
        conditions:
          labels:
            - "bugbot::commit-rules"
        actions:
          remove_labels:
            - "bugbot::commit-rules"
          comment: |
            Hi. Looks like the pipeline failed because one or more of the commits in this MR do not meet our requirements.
            Most commonly this the format of the commit message itself. The "Test summary" above has the details.

            Please see [our docs for commit messages](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#commit-messages)
            and [our docs for submitting code](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#submitting-code)
            that explain how to amend and force-push to this repo.
      - *close_needinfo