Verified Commit 845bafb7 authored by anarcat's avatar anarcat
Browse files

convert ~Roadmap:: workflows to work item status (#24)

parent bf71009e
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
---
resource_rules:
  issues:
    rules:
      - name: Warn about issues without a label for 5 days
      - name: Warn about untriaged issues for 5 days
        conditions:
          date:
            attribute: updated_at
@@ -9,8 +10,8 @@ resource_rules:
            interval_type: days
            interval: 5
          state: opened
          labels:
            - None
          ruby: |
            status == "Needs Triage"
          forbidden_labels:
            - bot-ignore
        limits:
@@ -22,10 +23,10 @@ resource_rules:
            This issue is unlabelled after 5 days. It needs
            attention. Please take care of this before the end of
            #{2.days.from_now.strftime('%Y-%m-%d')}, otherwise it will
            be moved to the ~"Roadmap::Icebox".
            be marked "Not Scheduled".

            To make the bot ignore this ticket, add the ~bot-ignore label.
      - name: Move unlabeled, stale issues to the icebox after 7 days
      - name: Move untriaged stale issues to the icebox after 7 days
        conditions:
          date:
            attribute: updated_at
@@ -33,18 +34,20 @@ resource_rules:
            interval_type: days
            interval: 2
          state: opened
          ruby: |
            status == "Needs Triage"
          labels:
            - Stale
          forbidden_labels:
            - bot-ignore
          no_additional_labels: true
        limits:
          most_recent: 5
        actions:
          labels:
            - "Roadmap::Icebox"
          comment: |
            This issue is unlabelled after 7 days and has been moved
            to the ~"Roadmap::Icebox".
            to the "Not Scheduled" status.

            To make the bot ignore this ticket, add the ~bot-ignore label.
            To make the bot ignore this ticket, add the ~bot-ignore
            label.

            /status "Not Scheduled"
+12 −15
Original line number Diff line number Diff line
---
resource_rules:
  issues:
    rules:
@@ -9,8 +10,8 @@ resource_rules:
            interval_type: days
            interval: 14
          state: opened
          labels:
            - '{Needs Review, Needs Information, Roadmap::Next, Roadmap::Doing}'
          ruby: |
            ["Next", "Doing"].include?(status)
          forbidden_labels:
            - bot-ignore
            - Stale
@@ -18,13 +19,11 @@ resource_rules:
          most_recent: 5
        actions:
          comment: |
            This issue has been waiting for information two
            This issue has been waiting for updates two
            weeks or more. It needs attention. Please take care of
            this before the end of
            #{14.days.from_now.strftime('%Y-%m-%d')}. ~"Needs Information"
            tickets will be moved to the ~"Roadmap::Icebox" after that point.
            this before the end of #{14.days.from_now.strftime('%Y-%m-%d')}.

            (Any ticket left in ~"Needs Review", ~"Needs Information", ~"Roadmap::Next", or ~"Roadmap::Doing"
            (Any ticket left with status "Next" or "doing"
            without activity for 14 days gets such
            notifications. Make a comment describing the current state
            of this ticket and remove the ~Stale label to fix this.)
@@ -45,23 +44,21 @@ resource_rules:
            - Stale
          forbidden_labels:
            - bot-ignore
          ruby: |
            status != "Not Scheduled"
        limits:
          most_recent: 5
        actions:
          labels:
            - "Roadmap::Icebox"
          remove_labels:
            - Needs Information
          comment: |
            {{author}}, {{assignee}} This issue has been waiting for information for
            a month. It has been moved to the ~"Roadmap::Icebox" and may
            a month. It has been moved to the status "Not Scheduled" and may
            eventually be closed.

            This bot will not comment or handle this ticket any
            further.

            To recover the previous state, re-add the ~"Needs Information"
            label. You can also close this ticket.
            To make the bot ignore this ticket, add the ~bot-ignore
            label.

            To make the bot ignore this ticket, add the ~bot-ignore label.
            /status "Not Scheduled"
+2 −3
Original line number Diff line number Diff line
---
resource_rules:
  issues:
    rules:
      - name: Automatically assign issues
        conditions:
          state: opened
          labels:
            - '{Roadmap::Next, Roadmap::Doing}'
          forbidden_labels:
            - bot-ignore
          ruby: |
            !has_assignee?
            !has_assignee? && ["Next", "Doing"].include?(status)
        limits:
          most_recent: 5
        actions: