Giter Club home page Giter Club logo

productive-box-in-readme's Introduction

poster

πŸ“„βœ¨productive-box-in-readme

Are you an early 🐀 or a night πŸ¦‰?
When are you most productive during the day?
Let's check out in your profile README!


Overview

This project uses GitHub graphQL API to get the commit histories and write into the README by rest.js

The time periods differ from the original project. The ones used to generate the stats are as follow:
6am -> 🌞 Morning -> 11am -> πŸŒ† Daytime -> 6pm -> πŸŒƒ Evening -> 11pm -> πŸŒ™ Night -> 6am

Setup

Prep work

  1. You need to add two comment lines in your profile README.md, like this:

    <!--START_SECTION:productive-box-in-readme-->
    <!--END_SECTION:productive-box-in-readme-->

    These lines will be our entry points for the productive box stats.

  2. Create a token with the repo scope and copy it. (https://github.com/settings/tokens/new)

enabling repo scope may seem DANGEROUS
but this GitHub Action only accesses your commit timestamp in repositories you contributed.

Project setup

  1. Fork this repo

  2. Open the "Actions" tab of your fork and click the "enable" button

  3. Edit the environment variables in .github/workflows/schedule.yml:

    • TIMEZONE: The timezone of your location, eg. Asia/Taipei for Taiwan, America/New_York for New York in America, etc.
    • OWNER_REPO: Your GitHub username.
    • PATH: Path to your README file (default is README.md; should not need to be changed).
  4. Go to the repo Settings > Secrets

  5. Add the following environment variables:

    • GH_TOKEN: The GitHub token generated above.

productive-box-in-readme's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar inokawa avatar maxam2017 avatar staabm avatar vnoctem avatar wooogi123 avatar

Stargazers

 avatar

Watchers

 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.