newWebhook POST method missing git_ref_pattern argument

Bug #2037304 reported by Giuseppe Barbieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Ines Almeida

Bug Description

Recently webhooks introduced the git_ref_pattern field, a pattern to match against git-ref/branch name of an event, to filter webhook triggers.
The field is available in the webhook object and marked as writable, however it appears to not be exposed in the addWebhook method available for git_repositories.
When calling:
repo.newWebhook(delivery_url="https://my_url", event_types=["git:push:0.1", "merge-proposal:0.1"], git_ref_pattern="*foo*")

it returns:

ValueError: Unrecognized parameter(s): 'git_ref_pattern'

Should this field be made optionally available?

Tags: api
Changed in launchpad:
assignee: nobody → Ines Almeida (ines-almeida)
tags: added: api
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.