App-Git-Workflow
view release on metacpan or search on metacpan
bin/git-feature view on Meta::CPAN
git-feature [option] [--jira|-j] JIRAID
OPTIONS:
branch-name The name of the new branch to create from the current release branch/tag
-j --jira[=]JIRAID
Find the summary for JIRA item JIRAID and make it the
branch name for the feature.
-u --url[=]URL Use URL as the JIRA instance for looking up summaries.
-U --user[=]str JIRA user name to use when querying JIRA
-P --password[=]str
JIRA password for --user
-t --tag[=]str Specify a tag that any branch with newer commits must contain
-b --branch[=]str Similarly a branch that other branches with newer commits must
contain (Default origin/master)
-l --local Shorthand for --branch '^master$'
-p --push Push the new brach upstream
--no-fetch Don't fetch before trying to find the remote branch
-n --new-pom Set the pom.xml version to the next available version
-x --pom[=]dir/pom.xml
The location of the master pom.xml if it isn't in the
current directory.
lib/App/Git/Workflow/Command/Feature.pm view on Meta::CPAN
url => $workflow->config('jira.url'),
);
get_options(
\%option,
'tag|t=s',
'branch|b=s',
'local|l!',
'pom|x=s',
'url|u=s',
'user|U=s',
'pass|password|P=s',
'jira|j=s',
'fetch|f!',
'new_pom|new-pom|n!',
'push|p',
) or return;
# do stuff here
$workflow->{VERBOSE} = $option{verbose};
$workflow->{TEST } = $option{test};
lib/App/Git/Workflow/Command/Feature.pm view on Meta::CPAN
git-feature [option] [--jira|-j] JIRAID
OPTIONS:
branch-name The name of the new branch to create from the current release branch/tag
-j --jira[=]JIRAID
Find the summary for JIRA item JIRAID and make it the
branch name for the feature.
-u --url[=]URL Use URL as the JIRA instance for looking up summaries.
-U --user[=]str JIRA user name to use when querying JIRA
-P --password[=]str
JIRA password for --user
-t --tag[=]str Specify a tag that any branch with newer commits must contain
-b --branch[=]str Similarly a branch that other branches with newer commits must
contain (Default origin/master)
-l --local Shorthand for --branch '^master$'
-p --push Push the new brach upstream
--no-fetch Don't fetch before trying to find the remote branch
-n --new-pom Set the pom.xml version to the next available version
-x --pom[=]dir/pom.xml
The location of the master pom.xml if it isn't in the
current directory.
lib/App/Git/Workflow/Command/Jira.pm view on Meta::CPAN
@ARGV = qw/--help/;
}
get_options(
\%option,
'all|a',
'remote|r',
'list|l',
'quiet|q!',
'url|u=s',
'user|U=s',
'pass|password|P=s',
) or return;
my $jira_re = my $jira = shift @ARGV;
$jira_re =~ s/[-_]/[-_]/;
$jira_re = lc $jira_re;
# check local branches first
my $type = $option{all} ? 'both' : $option{remote} ? 'remote' : 'local';
my $prefix = $option{all} || $option{remote} ? '(?:\w+/)?' : '';
my @branch = grep {/^$prefix(?:[a-z]+\/)?(\w+_)?$jira_re(?:\D|$)/i} $workflow->branches($type);
( run in 0.526 second using v1.01-cache-2.11-cpan-49f99fa48dc )