Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

davinkevin
Copy link
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 davinkevin force-pushed the push-to-github-with-token branch 5 times, most recently from ec73994 to 223d343 Compare November 18, 2016 13:29
@davinkevin
Copy link
Contributor Author

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
Contributor

@davinkevin
Copy link
Contributor Author

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 davinkevin force-pushed the push-to-github-with-token branch 2 times, most recently from 87e72d7 to b29126d Compare December 9, 2016 04:32
@davinkevin
Copy link
Contributor Author

Synced with master and test updated

You can, @filipesilva review it when you want 😄

Thanks

@davinkevin davinkevin force-pushed the push-to-github-with-token branch from b29126d to 3f5ea9c Compare December 18, 2016 19:14
@davinkevin
Copy link
Contributor Author

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

Copy link
Contributor

@filipesilva filipesilva left a comment

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.

@@ -8,7 +8,7 @@ var glob = require('glob');
var path = require('path');

var root = 'tests/{acceptance,models}';
var specFiles = glob.sync(root + '/**/*.spec.*');
var specFiles = glob.sync(root + '/**/github-pages-deploy.spec.*');
Copy link
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 davinkevin force-pushed the push-to-github-with-token branch from 3f5ea9c to bb81d64 Compare December 21, 2016 12:51
@davinkevin
Copy link
Contributor Author

davinkevin commented Dec 21, 2016

@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
Contributor

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

@davinkevin davinkevin force-pushed the push-to-github-with-token branch from bb81d64 to d94042c Compare December 21, 2016 16:19
@davinkevin
Copy link
Contributor Author

@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 davinkevin force-pushed the push-to-github-with-token branch from 392ce31 to c94eeba Compare January 5, 2017 04:44
@davinkevin
Copy link
Contributor Author

Synced with head to solve conflicts 😉

@hansl hansl merged commit 3c82b77 into angular:master Jan 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

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-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to 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