Skip to content

Open repositories by path, take 2 - #1924

Merged
niik merged 36 commits into
masterfrom
command-those-lines
Jun 22, 2017
Merged

niik merged 36 commits into
masterfrom
command-those-lines

Conversation

@joshaber

@joshaber joshaber commented Jun 7, 2017

Copy link
Copy Markdown
Contributor

Part one of addressing #696

Add the ability to handle URL protocol requests that open a repository by path, e.g., x-github-client://openLocalRepo/ENCODED_PATH.

@joshaber joshaber added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 7, 2017
@joshaber joshaber mentioned this pull request Jun 7, 2017
@iAmWillShepherd iAmWillShepherd self-assigned this Jun 7, 2017
Comment thread app/src/lib/app-state.ts Outdated
{ type: PopupType.MergeBranch, repository: Repository } |
{ type: PopupType.RepositorySettings, repository: Repository } |
{ type: PopupType.AddRepository } |
{ type: PopupType.AddRepository, initialPath: string | null } |

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd iAmWillShepherd removed their assignment Jun 7, 2017
Comment thread app/src/lib/dispatcher/dispatcher.ts Outdated
const state = this.appStore.getState()
const repositories = state.repositories
const existingRepository = repositories.find(r => (
Path.normalize(r.path) === Path.normalize(action.path)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/lib/parse-app-url.ts Outdated
interface IURLAction<T> {
name: string
readonly args: T
export interface IOpenRepositoryFromPathArgs {

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/test/unit/parse-app-url-test.ts Outdated
})

it('parses local paths', () => {
const path = '/Users/johnsmith/repo'

This comment was marked as spam.

expect(openRepo.filepath).to.equal('Octokit.Reactive/Octokit.Reactive.csproj')
})

it('parses local paths', () => {

This comment was marked as spam.

@niik niik self-assigned this Jun 8, 2017
@joshaber

joshaber commented Jun 8, 2017

Copy link
Copy Markdown
Contributor Author

📟

@joshaber

Copy link
Copy Markdown
Contributor Author

This is mergeable again 🙏

@joshaber

Copy link
Copy Markdown
Contributor Author

This is mergeable again 🙏 🙏

@niik
niik merged commit 1b32ff4 into master Jun 22, 2017
@iAmWillShepherd
iAmWillShepherd deleted the command-those-lines branch August 2, 2017 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants