GithubHelp home page GithubHelp logo

mule-heo / productive-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from techinpark/productive-box

0.0 0.0 0.0 131 KB

우리는 울지 않는 🦉요

License: MIT License

JavaScript 13.55% TypeScript 86.45%

productive-box's Introduction

번역: mule-heo

screenshot

📌✨productive-box

Are you an early 🐤 or a night 🦉?
When are you most productive during the day?
Let's check out in gist!


본 프로젝트는 awesome pinned-gist project로부터 영감을 받아 탄생하였습니다.
https://github.com/matchai/awesome-pinned-gists

개요

본 프로젝트는 커밋 이력을 가져오기 위하여 Github gaphQL API를 사용합니다. gist 파일로 쓰기 위해 rest.js를 사용합니다.

설정

사전 준비

  1. 공개된 Github Gist를 작성합니다. (https://gist.github.com/)
  2. gistrepo를 체크하여 토큰을 발급받은 뒤 복사합니다. (https://github.com/settings/tokens/new)

    repo 속성을 체크하는 것은 위험해 보입니다.
    하지만 GitHub Action은 당신이 기여한 저장소의 커밋 타임스탬프에 접근할 뿐입니다.

역자: 현재 토큰 발급을 수행할 때에 Fine-grained tokens와 클래식 토큰 두 가지 옵션이 있습니다.

여기 나온 설명들은 클래식 버전으로 설명되어 있어 클래식 토큰으로 발급하셔야 gist, repo만 선택하여 편하게 진행하실 수 있습니다.

베타 버전 토큰은 권한을 일일이 부여해야 해서 모든 저장소의 커밋 정도만 접근 허용해서 발급했더니 클래식 토큰으로 일괄적으로 권한을 부여한 것에 비해 커밋 이력이 적게 잡히더군요. - '24. 01. 30.

프로젝트 설정

  1. 저장소를 포크합니다.
  2. "Actions" 탭을 열고 "enable" 버튼을 누릅니다.

역자: GIST_ID는 뒤에 나올 GH_TOKEN과 동일한 방법으로 저장소의 secrets에 입력합시다.

환경 변수 TIMEZONE은 yml 파일에 직접적으로 적용되지 않았지만 내부 ts 파일에 사용되는 부분이 있습니다.

  1. .github/workflows/schedule.yml환경 변수를 편집합니다.

    • GIST_ID: 생성한 gist 파일의 url 중 ID에 해당하는 부분을 붙여 넣습니다. https://gist.github.com/maxam2017/9842e074b8ee46aef76fd0d493bae0ed
    • TIMEZONE: 시간대를 입력합니다. (예: Asia/Taipei for Taiwan, America/New_York for America in New York, etc.)
  2. 저장소의 Settings > Secrets 메뉴에 접근합니다.

  3. 다음의 환경 변수를 추가합니다:

    • GH_TOKEN: 위에서 만든 Github 토큰을 입력합니다.
    • GIST_ID: 생성한 gist 파일의 url 중 ID에 해당하는 부분을 붙여 넣습니다. https://gist.github.com/maxam2017/9842e074b8ee46aef76fd0d493bae0ed - 역자 맘대로 추가
  4. 새롭게 생성된 gist를 고정합니다. (Pin)

productive-box's People

Contributors

amondnet avatar maxam2017 avatar mule-heo avatar staabm avatar techinpark avatar wooogi123 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.