Skip to content

Commit

Permalink
adding in releases to list and changing current story limit
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonhuddy committed Nov 1, 2017
1 parent 19db622 commit 747b7ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ func main() {

// create the url
done_url := fmt.Sprintf("https://www.pivotaltracker.com/services/v5/projects/%s/iterations?scope=done&limit=1&offset=-1", *projectPtr)
current_url := fmt.Sprintf("https://www.pivotaltracker.com/services/v5/projects/%s/iterations?scope=current&limit=1&offset=0", *projectPtr)
current_url := fmt.Sprintf("https://www.pivotaltracker.com/services/v5/projects/%s/iterations?scope=current&offset=2", *projectPtr)

// Make request to tracker
client := &http.Client{}

f, err := os.OpenFile("autobeat.md", os.O_CREATE|os.O_WRONLY, 0600)
f, err := os.OpenFile("autobeat.md", os.O_RDWR|os.O_CREATE, 0755)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -98,10 +98,6 @@ func PrintStories(s StoryResponse, jiraPtr *string) (buffer []byte) {

story := s[0].StoryList[i]

if story.StoryType == "release" {
continue
}

if len(story.ExternalID) == 0 {
writeStr := fmt.Sprintf("* %s [Tracker](%s)\n", story.Name, story.URL)
buffer = append(buffer, writeStr...)
Expand Down

0 comments on commit 747b7ec

Please sign in to comment.