]> git.mjollnir.org Git - cil.git/commitdiff
cil-9b7f9096: Now reads ~/.cilrc for AutoAssignSelf
authorAndrew Chilton <andychilton@gmail.com>
Sat, 23 Jan 2010 12:12:07 +0000 (01:12 +1300)
committerAndrew Chilton <andychilton@gmail.com>
Sat, 23 Jan 2010 12:12:07 +0000 (01:12 +1300)
issues/i_9b7f9096.cil
lib/CIL/Command/Add.pm

index f517b31aae69f11a87fe4fdf611bdea2f2dcc0a3..4167358bdb4bb4c0bf37af4cd4118aa6ea504765 100644 (file)
@@ -1,9 +1,10 @@
 Summary: When doing 'cil add', should read ~/.cilrc for AutoAssignSelf option
-Status: New
+Status: Finished
 CreatedBy: Andrew Chilton <andychilton@gmail.com>
 AssignedTo: Andrew Chilton <andychilton@gmail.com>
+Label: Milestone-v0.06
 Inserted: 2010-01-23T11:48:21
-Updated: 2010-01-23T11:49:20
+Updated: 2010-01-23T12:11:43
 
 Now that cil reads ~/.cilrc, you can now add 'AutoAssignSelf' to the config and
 it'll automatically assign any new issues to yourself.
index df15902cce84855b790aac4ecd44c661cb2b17cf..07442548d7aa2190976d8c5e7149eb4ad903fba7 100644 (file)
@@ -42,7 +42,7 @@ sub run {
     $issue->Status($cil->DefaultNewStatus);
     $issue->CreatedBy( $user );
     $issue->AssignedTo( $user )
-        if $args->{mine};
+        if ( $args->{mine} or $cil->AutoAssignSelf );
     $issue->Description("Description ...");
 
     $issue = CIL::Utils->add_issue_loop($cil, undef, $issue);