Page MenuHomePhabricator

Build a widget to display GitLab changes on related Phabricator tasks
Closed, ResolvedPublic

Description

Splitting this off from T265617: Experiment with GitLab-Phabricator integration.

There's a custom widget on our Phabricator instance that displays Gerrit patches associated to a Phab task with a Bug: trailer.

Here's an example:

2022-11-30-13:46:28.png (242×1 px, 28 KB)

@hashar discusses some of the implementation at T265617#7914463.

On the Phabricator side, this is handled by code in libext/misc/src/customfields/GerritPatchesCustomField.php.

I stubbed out a GitLabPatchesCustomField.php stubbed out, will push that somewhere.

Details

TitleReferenceAuthorSource BranchDest Branch
GitLabPatchesCustomField: limit searching to only the Tnnn formrepos/phabricator/extensions!3brennensearch-only-t-formatwmf/stable
config template: add gitlab_api_keyrepos/phabricator/deployment!2brennenwork/gitlab-api-keywmf/stable
add GitLabPatchesCustomField to display merge requests that mention a taskrepos/phabricator/extensions!1brennenreview/brennen/mr-widgetwmf/stable
Customize query in GitLab

Event Timeline

brennen changed the task status from Open to In Progress.Feb 14 2023, 12:28 AM

Change 889248 had a related patch set uploaded (by Brennen Bearnes; author: Brennen Bearnes):

[operations/puppet@production] phabricator config: add gitlab_api_key

https://gerrit.wikimedia.org/r/889248

Change 889248 merged by Dzahn:

[operations/puppet@production] phabricator config: add gitlab_api_key

https://gerrit.wikimedia.org/r/889248

brennen merged https://gitlab.wikimedia.org/repos/phabricator/extensions/-/merge_requests/1

add GitLabPatchesCustomField to display merge requests that mention a task