[Webkit-unassigned] [Bug 203359] export-w3c-test-changes should add the "webkit-exports" label in GitHub
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 4 04:30:16 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=203359
--- Comment #3 from Pablo Saavedra <psaavedra at igalia.com> ---
the script uses `add_label` from webkitpy/w3c/wpt_github.py to set the label for the PR:
```
def add_label(self, number, label):
"""Adds a label to a GitHub issue (or PR).
API doc: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
"""
path = '/repos/%s/%s/issues/%d/labels' % (
WPT_GH_ORG,
WPT_GH_REPO_NAME,
number
)
body = [label]
response = self.request(path, method='POST', body=body)
```
the function is sending the labels as a list of one single string but note that this Github API is expecting a JSON document (https://developer.github.com/v3/issues/labels/#example-2):
{
"labels": ["bug", "enhancement"]
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191104/eb0790da/attachment-0001.htm>
More information about the webkit-unassigned
mailing list