Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

bradfitz/go-issue-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Issue Tracker Mirror

This repo is a mirror of the Go Issue Tracker.

The goal is to permit offline access and more powerful searches. It also doesn't take any quota to query this way.

To use it:

package main

import (
	"log"

	"github.com/bradfitz/go-issue-mirror/issues"
	"github.com/google/go-github/github"
)

func main() {
	root, err := issues.Open()
	if err != nil {
		log.Fatal(err)
	}
	is, err := root.Issue(1234)
	log.Printf("Issue: %#v, %v", is, err)

	c, err := root.IssueComment(1234, 66053086)
	log.Printf("Comment: %#v, %v", c, err)

	root.ForeachIssue(func(is *github.Issue) error {
		log.Printf("Issue %d: %v", *is.Number, *is.Title)
		root.ForeachIssueComment(*is.Number, func(c *github.IssueComment) error {
			log.Printf("  comment from %v at %v", *c.User.Login, *c.CreatedAt)
			return nil
		})
		return nil
	})
}

There is also a program that will display the issues in your browser. It will work when offline. Install it with go get -u github.com/bradfitz/go-issue-mirror/cmd/servegoissues, then run servegoissues and navigate to http://localhost:8080/ in your browser.

About

[old] precursor to golang.org/x/build/maintner/godata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •