-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "bug status" and "bug priority" commands
- Loading branch information
Showing
16 changed files
with
236 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
package bugs | ||
|
||
import ( | ||
"fmt" | ||
"io/ioutil" | ||
) | ||
|
||
type BugNotFoundError string | ||
|
||
func (b BugNotFoundError) Error() string { | ||
return "Bug not found" | ||
} | ||
func FindBugsByTag(tags []string) []Bug { | ||
return []Bug{} | ||
} | ||
|
||
func LoadBugByIndex(idx int) (*Bug, error) { | ||
issues, _ := ioutil.ReadDir(string(GetRootDir()) + "/issues") | ||
if idx < 1 || idx > len(issues) { | ||
return nil, BugNotFoundError("Invalid Index") | ||
} | ||
|
||
b := Bug{} | ||
directoryString := fmt.Sprintf("%s%s%s", GetRootDir(), "/issues/", issues[idx-1].Name()) | ||
b.LoadBug(Directory(directoryString)) | ||
return &b, nil | ||
} |
3 changes: 3 additions & 0 deletions
3
issues/Add-support-for-other-source-control-engines/Description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
It would be nice to support things other than | ||
git as a storage engine. In particular, a | ||
BugsEverywhere user requested hg support. |
1 change: 1 addition & 0 deletions
1
issues/Dashes-in-titles-are-not-interpreted-according-to-spec/Status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
open |
3 changes: 0 additions & 3 deletions
3
issues/Should-be-able-to-assign-priorities-and-statuses-through-command-line/Description
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
There is currently no way to update a bug's title. There | ||
should be a relabel command to make it easier to change | ||
the title of a bug without manually doing a mv and commiting | ||
to source control |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
There should be a command to add a milestone to issues, and | ||
another command to display all issues sorted by milestone | ||
(and subsorted by priority?) in markdown (or other easy, human | ||
readable) format. | ||
|
||
Then there can be a git hook to generate a roadmap automatically | ||
on commit. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"bug tag" with no arguments should print a show usage | ||
line. It should also display all currently in use tags. |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters