-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add Npm with node-check-updates #286
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,6 +221,20 @@ def cocoapods | |
end | ||
end | ||
|
||
def ncu | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed a method name to |
||
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do | ||
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(ncu -u)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed execution for installation. |
||
sh(*['git', 'add', 'package.json']) if File.exist?('package.json') | ||
sh(*['git', 'commit', '-m', "Ncu update #{@readable_time}"]) do | ||
# ignore exitstatus | ||
end | ||
sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass array contents as separate arguments. |
||
end | ||
end | ||
|
||
def pull_request | ||
@client = Octokit::Client.new access_token: @github_token | ||
@client.create_pull_request( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to
npm-check-updates
fromNpm
.