Git Product home page Git Product logo

things-sync's Introduction

Sync Things Mac App with GitHub and Jira Projects

This contains a Node script that queries the GitHub GraphQL API to get the issues and then uses the Things URL Scheme to upsert the todos using an express server to receive the x-callback-urls.

This also provides a little menu bar App which handles the x-callback-urls and allows calling the sync scripts.

Setup

Things

Get a things auth token from the Things Mac app:

Things > Preferences > General > Enable Things URLs > Manage.

Create a .env file that contains the THINGS_AUTH_TOKEN variable. You can also specift a SERVER_PORT variable.

To prevent opening the browser with the callback-urls. This repo includes a little menu bar app that will handle the custom things-sync:// URL scheme for callbacks and forward them to the node-server running on localhost. To use this, first specify the custom URL scheme in the .env file like this: CALLBACK_URL_SCHEME=things-sync. Then run yarn build-menu-bar-app the menu bar app will then be automatically started when running yarn start.

GitHub

Follow the instructions to generate an OAuth Token for the GitHub GraphQL API and set it in the .env file as GITHUB_API_TOKEN also specify the GITHUB_API_ENDPOINT as https://api.github.com/graphql.

Specify the IDs of the GitHub Projects you want to synch in the .env as a comma separated string GITHUB_PROJECT_IDS. You can find the node IDs by using the GitHub API Explorer and sending a query like this:

{
  repository(owner: "__", name: "__") {
    id
    name
    milestones(first: 100, states: [OPEN]) {
      nodes {
        id
        title
      }
    }
    projects(first: 10, states: [OPEN]) {
      nodes {
        id
        name
      }
    }
  }
}

things-sync's People

Contributors

mrloh avatar

Stargazers

Maximilian Fischer avatar

Watchers

James Cloos 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.