Coder Social home page Coder Social logo

github-export-issues's Introduction

github-export-issues

This is a cli tool to export issues and comments to a json stream.

It might be useful for archival purposes.

Usage

If you are exporting from a large repo you'll probably want to provide a personal access tokens to avoid github's low rate limits.

./github-export-issues --auth_token ghp_XXXXXXXXXXXXXXXXXXXXXXX --pretty https://github.com/psanford/wormhole-william

{
  "issue": {
    "id": 1090660350,
    "number": 67,
    "state": "closed",
    "locked": false,
    "title": "Add new gio File explorer, so that a user can pick a file on any OS",
    "body": "https://github.com/gioui/gio-x/pull/6\r\n\r\nNot quite done yet.\r\n\r\n",
    "author_association": "NONE",
    "user": {
      "login": "gedw99",
      "id": 53147028,
      "node_id": "MDQ6VXNlcjUzMTQ3MDI4",
      "avatar_url": "https://avatars.githubusercontent.com/u/53147028?v=4",
      "html_url": "https://github.com/gedw99",
      "gravatar_id": "",
      "type": "User",
      "site_admin": false,
      "url": "https://api.github.com/users/gedw99",
      "events_url": "https://api.github.com/users/gedw99/events{/privacy}",
      "following_url": "https://api.github.com/users/gedw99/following{/other_user}",
      "followers_url": "https://api.github.com/users/gedw99/followers",
      "gists_url": "https://api.github.com/users/gedw99/gists{/gist_id}",
      "organizations_url": "https://api.github.com/users/gedw99/orgs",
      "received_events_url": "https://api.github.com/users/gedw99/received_events",
      "repos_url": "https://api.github.com/users/gedw99/repos",
      "starred_url": "https://api.github.com/users/gedw99/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/gedw99/subscriptions"
    },
    "comments": 1,
    "closed_at": "2021-12-29T17:44:45Z",
    "created_at": "2021-12-29T17:35:33Z",
    "updated_at": "2021-12-29T17:44:46Z",
    "url": "https://api.github.com/repos/psanford/wormhole-william/issues/67",
    "html_url": "https://github.com/psanford/wormhole-william/issues/67",
    "comments_url": "https://api.github.com/repos/psanford/wormhole-william/issues/67/comments",
    "events_url": "https://api.github.com/repos/psanford/wormhole-william/issues/67/events",
    "labels_url": "https://api.github.com/repos/psanford/wormhole-william/issues/67/labels{/name}",
    "repository_url": "https://api.github.com/repos/psanford/wormhole-william",
    "reactions": {
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "confused": 0,
      "heart": 0,
      "hooray": 0,
      "rocket": 0,
      "eyes": 0,
      "url": "https://api.github.com/repos/psanford/wormhole-william/issues/67/reactions"
    },
    "node_id": "I_kwDODDe8_c5BAif-"
  },
  "comments": [
    {
      "id": 1002706949,
      "node_id": "IC_kwDODDe8_c47xBgF",
      "body": "Maybe you meant to open this on the wormhole-william-mobile project? We already have https://github.com/psanford/wormhole-william-mobile/issues/14",
      "user": {
        "login": "psanford",
        "id": 33375,
        "node_id": "MDQ6VXNlcjMzMzc1",
        "avatar_url": "https://avatars.githubusercontent.com/u/33375?v=4",
        "html_url": "https://github.com/psanford",
        "gravatar_id": "",
        "type": "User",
        "site_admin": false,
        "url": "https://api.github.com/users/psanford",
        "events_url": "https://api.github.com/users/psanford/events{/privacy}",
        "following_url": "https://api.github.com/users/psanford/following{/other_user}",
        "followers_url": "https://api.github.com/users/psanford/followers",
        "gists_url": "https://api.github.com/users/psanford/gists{/gist_id}",
        "organizations_url": "https://api.github.com/users/psanford/orgs",
        "received_events_url": "https://api.github.com/users/psanford/received_events",
        "repos_url": "https://api.github.com/users/psanford/repos",
        "starred_url": "https://api.github.com/users/psanford/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/psanford/subscriptions"
      },
      "reactions": {
        "total_count": 0,
        "+1": 0,
        "-1": 0,
        "laugh": 0,
        "confused": 0,
        "heart": 0,
        "hooray": 0,
        "rocket": 0,
        "eyes": 0,
        "url": "https://api.github.com/repos/psanford/wormhole-william/issues/comments/1002706949/reactions"
      },
      "created_at": "2021-12-29T17:44:45Z",
      "updated_at": "2021-12-29T17:44:45Z",
      "author_association": "OWNER",
      "url": "https://api.github.com/repos/psanford/wormhole-william/issues/comments/1002706949",
      "html_url": "https://github.com/psanford/wormhole-william/issues/67#issuecomment-1002706949",
      "issue_url": "https://api.github.com/repos/psanford/wormhole-william/issues/67"
    }
  ]
}

github-export-issues's People

Contributors

psanford avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.