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

Add env var for github slug #86

Closed

Conversation

zauberstuhl
Copy link

Pronto fetches the first url from all available remote urls.
If it is a fork it will be the upstream url

To support forks you should be able to configure this part of the url, too!

@tansaku
Copy link

tansaku commented Aug 31, 2015

👍 for this!

@tansaku
Copy link

tansaku commented Sep 10, 2015

@mmozuras any idea when we might be able to pull this in? I'd switch our systems to using pronto, but this appears to be the key blocker for us ...

@zauberstuhl
Copy link
Author

@tansaku you could use a temporarily solution like me -> https://github.com/diaspora/vines/blob/develop/Gemfile#L5

Pronto fetches the first url from all available
remote urls. If it is a fork it will be the upstream url

Signed-off-by: Lukas Matt <[email protected]>
@tansaku
Copy link

tansaku commented Sep 10, 2015

Good call @zauberstuhl - I'm just checking that your code works for our situation - that would be a good plan if it does indeed work :-)

@tansaku
Copy link

tansaku commented Sep 10, 2015

I've pulled down your fork, and am just trying to work out how to get an executable pronto out of your code ...

[tansaku@Samuels-MacBook-Pro:~/Documents/Github/pronto ((a747341...))]$ 
→ git checkout zauberstuhl/master 
HEAD is now at a747341... Debug text
[tansaku@Samuels-MacBook-Pro:~/Documents/Github/pronto ((a747341...))]$ 
→ bin/pronto --help
dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings
  Referenced from: /Users/tansaku/.rvm/gems/ruby-2.2.2/gems/rugged-0.22.2/lib/rugged/rugged.bundle
  Expected in: flat namespace

dyld: Symbol not found: _SSL_load_error_strings
  Referenced from: /Users/tansaku/.rvm/gems/ruby-2.2.2/gems/rugged-0.22.2/lib/rugged/rugged.bundle
  Expected in: flat namespace

Trace/BPT trap: 5

@zauberstuhl
Copy link
Author

If you pulled the repository: bin/pronto help
If you installed it via bundler use: bundle exec pronto help

Check my travis config -> https://github.com/diaspora/vines/blob/develop/.travis.yml#L10

@tansaku
Copy link

tansaku commented Sep 10, 2015

thanks - I get

[tansaku@Samuels-MacBook-Pro:~/Documents/Github/pronto ((a747341...))]$ 
→ bin/pronto help
dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings
  Referenced from: /Users/tansaku/.rvm/gems/ruby-2.2.2/gems/rugged-0.22.2/lib/rugged/rugged.bundle
  Expected in: flat namespace

dyld: Symbol not found: _SSL_load_error_strings
  Referenced from: /Users/tansaku/.rvm/gems/ruby-2.2.2/gems/rugged-0.22.2/lib/rugged/rugged.bundle
  Expected in: flat namespace

Trace/BPT trap: 5

I'm on OSX. I was trying to run locally before starting to play with CI like travis - we have travis set up on the repos we're tracking, but was trying to slice off a simpler check first, since we already have hound running there ...

@zauberstuhl
Copy link
Author

@tansaku seams like an OSX problem checkout libgit2/rugged#475 and or update rugged-gem to the newest version using bundler

I would suggest installing pronto via bundler, cause it installs automatically required dependencies.
Could save you some trouble :)

@tansaku
Copy link

tansaku commented Sep 10, 2015

thanks @zauberstuhl - yeah, found that rugged thing too - just spent the last 10 trying alternatives - seems to be blocked for me on OSX at the moment whatever I do - newest rugged gem seems incompatible:

[tansaku@Samuels-MacBook-Pro:~/Documents/Github/pronto ((a747341...))]$ 
→ irb
Unable to activate pronto-0.4.2, because rugged-0.23.2 conflicts with rugged (~> 0.22.0), octokit-4.0.1 conflicts with octokit (~> 3.8.0)
2.2.2 :001 > require 'pronto'
Gem::ConflictError: Unable to activate pronto-0.4.2, because rugged-0.23.2 conflicts with rugged (~> 0.22.0), octokit-4.0.1 conflicts with octokit (~> 3.8.0)

I was assuming running pronto at the CLI will always hit my global gem, but I guess I can add gem 'pronto', :git => 'https://github.com/Zauberstuhl/pronto.git' to my local gemfile and then run bundle exec pronto ... giving it a go ...

@zauberstuhl
Copy link
Author

'pronto', :git => 'https://github.com/Zauberstuhl/pronto.git' to my local gemfile and then run bundle exec pronto ... giving it a go ...

yes that should do the trick

@tansaku
Copy link

tansaku commented Sep 10, 2015

working - okay, thanks for your help - great proof of concept for my team - now we just need @mmozuras to pull this in - for ref I can now post across forked repos like so:

GITHUB_SLUG=makersacademy/takeaway-challenge PULL_REQUEST_ID=124 bundle exec pronto run -f github_pr -c origin/master

@zauberstuhl
Copy link
Author

don't forget the GITHUB_ACCESS_TOKEN but that should be it

@tansaku
Copy link

tansaku commented Sep 10, 2015

I didn't seem to need the GITHUB_ACCESS_TOKEN as our repos are all public ...

@mmozuras
Copy link
Member

@zauberstuhl would using pull[:repo][:git_url] (if available, check pull_id code) solve this issue too?

@tansaku
Copy link

tansaku commented Oct 9, 2015

@zauberstuhl what do you think of @mmozuras's suggestion above?

@mmozuras mmozuras closed this in 4f9e43a Oct 25, 2015
@mmozuras
Copy link
Member

@tansaku I've added ability to configure Pronto via .pronto.yml (unreleased) and at the same time, solved this: #104

Thanks @zauberstuhl for this pull request, would not have happened without it! 🙇

@zauberstuhl
Copy link
Author

@mmozuras thanks and sorry haven't seen your post above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants