That's it for now. As you can see, if you've played with any kind of bug/issue
tracker before, 'cil' is straightforward.
+Sometimes, you might add someone else repository from which you want to fetch
+both code and issues. If you merge a new issue and you want to assign it to
+yourself, instead of editing the issue and having to type in your name and
+email, just use 'cil steal'. This will assign the issue to yourself and save it
+back out:
+
+ $ cil steal cafebabe
+
+Then just commit it to your VCS.
+
===============================================================================
display_issue($cil, $issue);
}
+sub cmd_steal {
+ my ($cil, undef, $issue_name) = @_;
+
+ # firstly, read the issue in
+ my $issue = load_issue_fuzzy( $cil, $issue_name );
+
+ # set the AssignedTo for this issue to you (because you're stealing it)
+ $issue->AssignedTo( user($cil) );
+ $issue->save($cil);
+
+ display_issue($cil, $issue);
+}
+
sub cmd_add {
my ($cil, undef, $issue_name) = @_;
list [FILTERS...]
show ISSUE
status ISSUE NEW_STATUS
+ steal ISSUE
edit ISSUE
comment ISSUE
attach ISSUE FILENAME
Shortcut so that you can set a new status on an issue without having to edit
it.
+=item steal ISSUE
+
+Shortcut to assign this issue to yourself. It reads your C<~/.cilrc> file for
+your UserName and UserEmail and uses this to populate the C<AssignedTo> field
+in the issue.
+
=item edit ISSUE
Edits the issue. If it changes, set the updates time to now.
--- /dev/null
+Issue: 6b087805
+CreatedBy: Andrew Chilton <andychilton@gmail.com>
+Inserted: 2008-07-03T11:15:33
+Updated: 2008-07-03T11:16:26
+
+Done. Pretty easy eh!
Summary: Add a 'steal' command
-Status: New
+Status: Finished
CreatedBy: Andrew Chilton <andychilton@gmail.com>
AssignedTo: Andrew Chilton <andychilton@gmail.com>
+Label: Milestone-v0.5
+Label: Type-Enhancement
+Comment: 3da3fd2f
Inserted: 2008-07-03T10:10:50
-Updated: 2008-07-03T10:12:29
+Updated: 2008-07-03T11:23:03
A 'cil steal <issue>' command would be helpful to assign issues to yourself.
This is just shorthabe for editing an issue and putting your "UserName