git-bug icon indicating copy to clipboard operation
git-bug copied to clipboard

Timestamp Arguments

Open xloem opened this issue 4 years ago • 1 comments

This PR adds a command line argument to bug creation, commenting, and status changing, that lets one change the timestamp from the present.

The purpose is to facilitate using git-bug inside single-use scripts to import issues from archives, addressing the reason I opened issue #489 .

The changes are minor, but I have never coded in go before, and mostly copied structures from elsewhere in the repository to accomplish this.

xloem avatar Oct 31 '20 03:10 xloem

I would not just add option to pass unix timestamp. Instead use a time parsing lib to be able to use all kinds of time arguments.

Also we dont need other func we are no lib, just refactor the code

6543 avatar Jan 05 '22 13:01 6543