Giter Club home page Giter Club logo

community-ruby-circle-orbit's People

Contributors

dependabot[bot] avatar hummusonrails avatar mxdavis avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

community-ruby-circle-orbit's Issues

gsub NoMethodError on Circle Post check

Hey there! Thanks for putting this together, I eagerly ran this as a github action and the comments portion flowed flawlessly.

Hit a snag on the Post check run. Looks like we need a Nil check before sanitizing the body with gsub. I'd open a PR, but I'm not a rubyist ๐Ÿ˜ญ

Traceback:

Run circle_orbit --check-posts
  circle_orbit --check-posts
  shell: /usr/bin/bash -e {0}
  env:
    CIRCLE_API_KEY: ***
    CIRCLE_URL: ***
    ORBIT_API_KEY: ***
    ORBIT_WORKSPACE_ID: ***
/opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/interactions/post.rb:71:in `sanitize_body': undefined method `gsub' for nil:NilClass (NoMethodError)
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/interactions/post.rb:11:in `initialize'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/orbit.rb:10:in `new'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/orbit.rb:10:in `call'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/circle.rb:20:in `block (2 levels) in process_posts'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/circle.rb:19:in `each'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/circle.rb:19:in `block in process_posts'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/circle.rb:16:in `each'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/circle.rb:16:in `process_posts'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/lib/circle_orbit/client.rb:49:in `posts'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/scripts/check_posts.rb:13:in `render'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/gems/2.7.0/gems/circle_orbit-0.0.1/bin/circle_orbit:37:in `<top (required)>'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/bin/circle_orbit:23:in `load'
	from /opt/hostedtoolcache/Ruby/2.7.2/x64/bin/circle_orbit:23:in `<main>'
Checking for new Circle Spaces posts and sending them to your Orbit workspace...
Error: Process completed with exit code 1.```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.