App-Gitc
view release on metacpan or search on metacpan
lib/App/Gitc/Its/Jira.pm view on Meta::CPAN
my ($jira_user) = $self->lookup_jira_user;
$message = (getpwuid $>)[6] # user's name
. ": $message\n";
$message = $flag." ".$message if $flag;
my ( $rc, $status_exception );
eval {
my $jira = $self->get_jira_object or return;
$jira->addComment( $issue, $message );
my $updated_issue = $jira->progress_workflow_action_safely( $issue, $to );
my $jira_rest = $self->get_jira_rest_object or return;
$jira_rest->unwatch_issue( $issue->{id}, $jira_user )
if $jira_user eq $default_jira_user;
$rc = ( $issue->{id} == $updated_issue->{id} );
};
die $@ if $@; # rethrow unexpected exceptions
if ($reviewer) {
eval {
my $jira = $self->get_jira_object or return;
$jira->update_issue( $issue,
{ custom_fields => { customfield_10401 => $reviewer, } } );
};
warn "Unable to set reviewer: $@" if $@;
lib/App/Gitc/Util.pm view on Meta::CPAN
the number of meta data entries that were deleted.
=head2 new_branch_version($branch, $new_major_version)
Increments and returns the most recent version tagged for the given C<$branch>.
This only applies to projects that have the 'use_version_tags' config set to true.
If $new_major_version is truthy, increment the major version # and make minor 0
=head2 new_version_tag($branch)
Returns a tag name for an updated version of the given C<$branch>.
This only applies to projects that have the 'use_version_tags' config set to true.
=head2 project_config
Returns a hashref with configuration details about this project.
Configuration is loaded from the following sources:
* /etc/gitc/gitc.config
* $PROJECT_ROOT/gitc.config
* $HOME/.gitc/gitc.config
( run in 0.296 second using v1.01-cache-2.11-cpan-05444aca049 )