Git Product home page Git Product logo

toggl-box's Introduction

Toggl + GitHub Gist

Follow @tobimori on Twitter Total Time Tracked Working On toggl-box

๐Ÿ“Š Update a pinned gist to contain your weekly Toggl stats. ๐Ÿ“Š


๐Ÿ“Œโœจ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

๐ŸŽ’ Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Copy your API token from your Toggl profile
  4. Copy your Workspace ID from the URL in your project view

๐Ÿ–ฅ Project Setup

  1. Fork this repo
  2. Go to your fork's Settings > Secrets > Add a new secret for each repository secret (below)
  3. Set filter options in .github/workflows/schedule.yml (also below)

๐Ÿ”ฅ Filter Options

  • FILTER_BY_BILLABLE: Filters out specific entries without a specific billable state.
    • Valid options: yes, no, or both.
    • Defaults to both.
    • Requires a paid Toggl plan.
  • FILTER_BY_TAG: Filters out specific entries without a specific tag.
    • Valid options: false to disable the filter, 0 to filter out all entries with a tag, or a comma-separated list of tag ids.
    • Defaults to a random tag id.
    • You can get tag ids by utilizing the Toggl API
  • FILTER_BY_USER: Shows only work done by a specific user in a workspace
    • Valid options: false to disable the filter or a comma-separated list of user ids.
    • Defaults to a false.
    • You can get user ids by utilizing the Toggl API

๐Ÿคซ Repository Secrets

  • GIST_ID: The ID portion from your gist url https://gist.github.com/<github username>/7887b94cbb97a90fe08498c4744bad4b.
  • GH_TOKEN: The GitHub token generated above.
  • TOGGL_API_TOKEN: The API key you got from your Toggl profile above.
  • TOGGL_WORKSPACE_ID: The ID portion from a workspace-specific Toggl url you copied above, e.g. https://toggl.com/app/projects/3295766/list/.

โœจ Credits

This code was heavily inspired (with some parts taken over) by @jacc's music-box.

๐Ÿ“„ License

toggl-box is licensed under the MIT License

toggl-box's People

Contributors

dependabot[bot] avatar kjsb25 avatar tobimori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

toggl-box's Issues

Filter by project ?

Hi,

This looks awesome ! Is there a way to filter by project ?

Have a great weekend !

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.