Merge ~ines-almeida/launchpad:webhook-patterns/add-db-patch into launchpad:db-devel
Proposed by
Ines Almeida
Status: | Merged |
---|---|
Approved by: | Ines Almeida |
Approved revision: | 95d647b3a4478bd91309385b3ed23d48dc2bf2ba |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~ines-almeida/launchpad:webhook-patterns/add-db-patch |
Merge into: | launchpad:db-devel |
Diff against target: |
22 lines (+16/-0) 1 file modified
database/schema/patch-2211-20-0.sql (+16/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | db | Approve | |
Colin Watson (community) | db | Approve | |
Review via email: mp+446950@code.launchpad.net |
Commit message
Add DB patch for git ref pattern filters for webhooks
Add 'git_refs' column to CIBuilds and 'ref_pattern' to Webhooks table
Description of the change
Two columns added here:
- The `ref_pattern` will be used by webhooks targeted at git repositories for filtering webhook triggers according to their corresponding git_refs. Webhooks with other targets shouldn't have this field.
- The `git_refs` will be a new read-only field of CI Builds that will store which git_refs originated a build, which will in turn be used to filter webhook triggers according to `ref_pattern`
To post a comment you must log in.
Adding William for a second DB review.