Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.5 KB
Raw Blame
# The worked example in SPEC section 9.
cases:
    - name: the worked example resolves as the specification states for people
      files:
          owners.yaml: |
              version: 1
              owners: team-platform
              status: active
              teams:
                team-billing:
                  notifications: '#billing-bots'
          billing/owners.yaml: |
              version: 1
              owners: [team-billing, '@alice']
              status: deprecated
              rules:
                - match: 'api/'
                  status: active
                - match: 'vendor/'
                  owners: null
          billing/legacy/owners.yaml: |
              version: 1
              owners: []
              inherit: false
      expect:
          billing/api/invoices.py:
              owners: [team-billing, '@alice']
              unowned_by_design: false
              status: active
              source: billing/owners.yaml
              slack: '#team-billing'
          billing/jobs/run.py:
              owners: [team-billing, '@alice']
              unowned_by_design: false
              status: deprecated
              source: billing/owners.yaml
              slack: '#team-billing'
          billing/vendor/lib.py:
              owners: []
              unowned_by_design: true
              status: deprecated
              source: billing/owners.yaml
              slack: null
          billing/legacy/old.py:
              owners: []
              unowned_by_design: false
              status: active
              source: null
              slack: null

    - name: the worked example resolves as the specification states for notifications
      files:
          owners.yaml: |
              version: 1
              owners: team-platform
              status: active
              teams:
                team-billing:
                  notifications: '#billing-bots'
          billing/owners.yaml: |
              version: 1
              owners: [team-billing, '@alice']
              status: deprecated
              rules:
                - match: 'api/'
                  status: active
                - match: 'vendor/'
                  owners: null
          billing/legacy/owners.yaml: |
              version: 1
              owners: []
              inherit: false
      purpose: notifications
      expect:
          billing/api/invoices.py:
              owners: [team-billing, '@alice']
              unowned_by_design: false
              status: active
              source: billing/owners.yaml
              slack: '#billing-bots'