Skip to content

feat(github): support usage of gh-token for deployment from external env - #3121

Merged
hansl merged 1 commit into
angular:masterfrom
davinkevin:push-to-github-with-token
Jan 12, 2017
Merged

feat(github): support usage of gh-token for deployment from external env#3121
hansl merged 1 commit into
angular:masterfrom
davinkevin:push-to-github-with-token

Conversation

@davinkevin

Copy link
Copy Markdown
Contributor

In order to being able to push to github from CI (Travis for example), we should be able to provide a token to the cli, as --gh-token=XYZ. This modification allow to use this token in the destination url. This also allow user to push to another github repository if it uses a different --gh-username from the one used for the checkout.

@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch 5 times, most recently from ec73994 to 223d343CompareNovember 18, 2016 13:29
@davinkevin

Copy link
Copy Markdown
ContributorAuthor

I maintain the branch up-to-date since the PR, could you say me if you are interested by this PR or not ?

Thanks you

@filipesilva

Copy link
Copy Markdown
Contributor

@davinkevin can you add some tests for this? The appropriate file is https://github.com/angular/angular-cli/blob/master/tests/acceptance/github-pages-deploy.spec.js

@davinkevin

Copy link
Copy Markdown
ContributorAuthor

I've already made it : https://github.com/angular/angular-cli/pull/3121/files#diff-86b4ebf8ce530235f5d984c72660361e

I will sync the branch with the current head

@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch 2 times, most recently from 87e72d7 to b29126dCompareDecember 9, 2016 04:32
@davinkevin

Copy link
Copy Markdown
ContributorAuthor

Synced with master and test updated

You can, @filipesilva review it when you want 😄

Thanks

@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch from b29126d to 3f5ea9cCompareDecember 18, 2016 19:14
@davinkevin

Copy link
Copy Markdown
ContributorAuthor

The branch is synced with the master... if you want to integrate it ;)

@filipesilvafilipesilva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heya, sorry I took so long to get back to this PR again. There's just the tests/runner.js change that I'd like to revert, and other than that it LGTM.

Comment threadtests/runner.js Outdated

var root = 'tests/{acceptance,models}';
var specFiles = glob.sync(root + '/**/*.spec.*');
var specFiles = glob.sync(root + '/**/github-pages-deploy.spec.*');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this? I know why you added it, I do it myself while testing, but for merging it can't be there :D

@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch from 3f5ea9c to bb81d64CompareDecember 21, 2016 12:51
@davinkevin

davinkevin commented Dec 21, 2016

Copy link
Copy Markdown
ContributorAuthor

@filipesilva Sorry, I totally forgot to remove it during the last sync with master... 😞

It has been removed and synced again with master ;)

@filipesilva

Copy link
Copy Markdown
Contributor

@davinkevin you sure you removed it? I still see it in the PR.

@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch from bb81d64 to d94042cCompareDecember 21, 2016 16:19
@davinkevin

Copy link
Copy Markdown
ContributorAuthor

@filipesilva Sorry (again), I try to do too many things at the same time...

I've checked, now, my working tree is now clean and the modification aren't in the "File changed" tab.

Thanks for your time ;)

In order to being able to push to github from CI (Travis for example), we should be able to provide a token to the cli, as `--gh-token=XYZ`. This modification allow to use this token in the destination url. This also allow user to push to another github repository if it uses a different `--gh-username` from the one used for the checkout.
@davinkevin
davinkevinforce-pushed the push-to-github-with-token branch from 392ce31 to c94eebaCompareJanuary 5, 2017 04:44
@davinkevin

Copy link
Copy Markdown
ContributorAuthor

Synced with head to solve conflicts 😉

@hansl
hansl merged commit 3c82b77 into angular:masterJan 12, 2017
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
…rom external env (angular#3121)
In order to being able to push to github from CI (Travis for example), we should be able to provide a token to the cli, as `--gh-token=XYZ`. This modification allow to use this token in the destination url. This also allow user to push to another github repository if it uses a different `--gh-username` from the one used for the checkout.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 11, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@davinkevin@filipesilva@hansl@googlebot