Skip to content

Commit

Permalink
Merge pull request #14 from driusan/v0.4-dev
Browse files Browse the repository at this point in the history
v0.4 Release of bug
  • Loading branch information
driusan committed Feb 28, 2016
2 parents f0433ab + e8d6049 commit 2e72e86
Show file tree
Hide file tree
Showing 46 changed files with 988 additions and 419 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ _testmain.go
*.test
*.prof
*.un~

coverage.txt
profile.out
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: go
sudo: false
sudo: required
dist: trusty
# Trusty Tahr seems to be the only way to get
# a modern version of git on Travis. Once they've
# upgraded with non-beta, this can be removed along
# with sudo: required..
os:
- linux
- osx
Expand All @@ -8,10 +13,11 @@ go:
addons:
apt:
packages:
- git-2.0
- git


before_install:
- git config -l
- git --version
- hg --version

Expand Down
2 changes: 1 addition & 1 deletion bug-import/be.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func beImportBug(identifier, issuesDir, fullbepath string) {

bugdir := bugs.TitleToDir(beBug.Summary)

b := bugs.Bug{bugs.Directory(issuesDir) + bugdir}
b := bugs.Bug{Dir: bugs.Directory(issuesDir) + bugdir}
if dir := b.GetDirectory(); dir != "" {
os.Mkdir(string(dir), 0755)
}
Expand Down
2 changes: 1 addition & 1 deletion bug-import/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func githubImport(user, repo string) {
for lastPage := false; lastPage != true; {
for _, issue := range issues {
if issue.PullRequestLinks == nil {
b := bugs.Bug{issueDir + bugs.TitleToDir(*issue.Title)}
b := bugs.Bug{Dir: issueDir + bugs.TitleToDir(*issue.Title)}
if dir := b.GetDirectory(); dir != "" {
os.Mkdir(string(dir), 0755)
}
Expand Down
14 changes: 0 additions & 14 deletions bug-serve/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions bug-serve/README.md

This file was deleted.

1 change: 0 additions & 1 deletion bug-serve/issues/Add-ability-to-edit-bugs/Description

This file was deleted.

This file was deleted.

This file was deleted.

60 changes: 0 additions & 60 deletions bug-serve/jsx/BugApp.js

This file was deleted.

37 changes: 0 additions & 37 deletions bug-serve/jsx/BugList.js

This file was deleted.

18 changes: 0 additions & 18 deletions bug-serve/jsx/BugPage.js

This file was deleted.

117 changes: 0 additions & 117 deletions bug-serve/main.go

This file was deleted.

10 changes: 7 additions & 3 deletions bugapp/Close.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ func Close(args ArgumentList) {

// There were parameters, so show the full description of each
// of those issues
var bugsToClose []string
for _, bugID := range args {
if bug, err := bugs.LoadBugByHeuristic(bugID); err == nil {
dir := bug.GetDirectory()
fmt.Printf("Removing %s\n", dir)
os.RemoveAll(string(dir))
bugsToClose = append(bugsToClose, string(dir))
} else {
fmt.Printf("Could not close bug %s: %s\n", bugID, err)
fmt.Fprintf(os.Stderr, "Could not close bug %s: %s\n", bugID, err)
}
}
for _, dir := range bugsToClose {
fmt.Printf("Removing %s\n", dir)
os.RemoveAll(dir)
}
}
Loading

0 comments on commit 2e72e86

Please sign in to comment.