-
Notifications
You must be signed in to change notification settings - Fork 6
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
github comment_character_limit #56
Conversation
Thanks @davidx! Settings---
minimum_reviewers: 1
build_steps:
- bundle install
- bundle exec ruby test/test.rb
merge: true
org_mode: true
timeout: 1805
shell: "/bin/bash"
env:
BUNDLE_GEMFILE: Gemfile |
Looks good! 👍✅ MERGE
✅ BUNDLE_INSTALL
✅ BUNDLE_EXEC_RUBY_TEST/TEST.RB
⬜ 0 of 1 Code reviews from organization basho-labs |
<%= status[:output] %> | ||
<% output=status[:output] %> | ||
<% allowed_length=10000 %> | ||
<%= output.slice!(output.length-allowed_length, output.length) %> |
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.
ellipses = status[:output].length > allowed_length ? ' ...' : ''
or something of the like should be computed then appended to the output so it is clear that the content was clipped. NOTE: the slice would also need to subtract out the ellipses length, so output.slice!(output.length - ellipses.length - allowed_length, output.length)
.
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.
Oh yeh, thats why added the thumbot wait lock (not implemented yet :) I'm tweaking it now to show "..snipped N lines.."
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.
regarding the slice, the intent is that it slices the preceding characters of the amount that is over the limit, so it always shows the tail.
Looks good! 👍✅ MERGE
✅ BUNDLE_INSTALL
✅ BUNDLE_EXEC_RUBY_TEST/TEST.RB
✅ 1 of 1 Code reviews from organization basho-labs
|
+1 |
Successfully merged basho-labs/thumbs/pulls/56 (be633c6 on to master) ---
:sha: 45acdda3827860af8ec22401e7d29b0f3e1519f9
:merged: true
:message: Pull Request successfully merged
|
This is an initial fix to the issue #55
basho/riak_kv#1560
Gists still contain full output. (Given github gist size limitiations.)