Sha256: 8a382c0af3fcdd64987a42e31c9e78636440f345f42d960cad8433b0d88630f5

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

#!/usr/bin/env ruby
# Add a [related] URL field to a bug
bug_num = ARGV[0]
card_url = ARGV[1]

has_url = `bugzilla query --outputformat='%{bug_file_loc}' -b #{bug_num}`.chomp

if has_url.empty?
  system "bugzilla", "modify", "--url", card_url, bug_num
  puts "Card URL added to Bugzilla"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ytrello-0.18.1 bin/ytrello-addurl
ytrello-0.18.0 bin/ytrello-addurl