forked from mozilla-bteam/bmo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1825961: set
approval-mozilla-{repo}
flags on uplift revision a…
…ttachments (mozilla-bteam#2054) When a new Phabricator revision attachment is being added to a bug, check if the repo associated with the revision is an uplift repo and set the appropriate `approval-mozilla-{repo}` flag if necessary. To determine if a repo is an uplift repository, we add the `projects` attachment from Phabricator to the Conudit API query which returns repository data. We add a `projects_raw` and `projects` field which is the raw API response and an array of built `Project` objects in Bugzilla, respectively. Then we add an `is_uplift_repo` function which iterates over the `project` attribute and checks for a project with the name matching `uplift`.
- Loading branch information
Showing
2 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters