1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/applications/repository
Aviv Eyal dcf909ba56 Land to GitHub + support stuff
Summary:
A usable, Land to GitHub flow.

Still to do:
- Refactor all git/hg stratagies to a sane structure.
- Make the dialogs Workflow + explain why it's disabled.
- Show button and request Link Account if GH is enabled, but user is not linked.
- After refreshing token, user ends up in the settings stage.

Hacked something in LandController to be able to show an arbitrary dialog from a strategy.
It's not very nice, but I want to make some more refactoring to the controller/strategy/ies anyway.

Also made PhabricatorRepository::getRemoteURIObject() public, because it was very useful in getting
the domain and path for the repo.

Test Plan:
Went through these flows:
- load revision in hosted, github-backed, non-github backed repos to see button as needed.
- hit land with weak token - sent to refresh it with the extra scope.
- Land to repo I'm not allowed - got proper error message.
- Successfully landed; Failed to apply patch.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T182

Differential Revision: https://secure.phabricator.com/D7555
2013-11-13 17:25:24 -08:00
..
application Ship "Repositories" create button to new Diffusion workflow 2013-10-29 15:32:39 -07:00
conduit Tighten a regular expression in repository.create 2013-11-08 11:09:09 -08:00
constants Build an early multi-step repository create form 2013-07-14 07:37:17 -07:00
controller Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
daemon Move Mercurial discovery to PhabricatorRepositoryDiscoveryEngine 2013-11-06 17:20:22 -08:00
editor Add hosting, serving, and push policy options to repository edit 2013-10-29 15:32:40 -07:00
engine Move Mercurial discovery to PhabricatorRepositoryDiscoveryEngine 2013-11-06 17:20:22 -08:00
management Add bin/repository edit for CLI repository editing 2013-11-13 11:26:05 -08:00
phid Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
query Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Make most repository reads policy-aware 2013-09-25 16:54:48 -07:00
storage Land to GitHub + support stuff 2013-11-13 17:25:24 -08:00
worker Use herald to trigger builds of revisions and commits. 2013-11-08 16:58:39 -08:00
PhabricatorRepositoryConfigOptions.php Raise a setup warning for missing or invalid local repository directory 2013-10-30 13:07:09 -07:00