Skip to content

Instantly share code, notes, and snippets.

@coryb
Created July 26, 2012 00:08
Show Gist options
  • Save coryb/3179473 to your computer and use it in GitHub Desktop.
Save coryb/3179473 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use File::Temp;
use Getopt::Long;
my($project, $component);
my $type = "Bug";
GetOptions(
'project=s' => \$project,
'component=s' => \$component,
'type=s' => \$type,
);
my ($fh, $fn) = File::Temp::tempfile( "jiraXXXXXX", SUFFIX => ".yml");
print $fh <<EOM;
summary:
--- | # description on next line
---
project: $project
component: $component
issuetype: $type
assignee: $ENV{USER}
reporter: $ENV{USER}
EOM
close $fh;
print "fn: $fn\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment