Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.37 KB

CONTRIBUTING.md

File metadata and controls

73 lines (48 loc) · 1.37 KB

Contribution Guide

Environment

  • Deno >= v1.36.1
  • Vercel
  • GitHub API v4
  • Docker and Docker compose (optional)

Local Run

Create .env file to project root directory, and write your GitHub token to the .env file. Please select the authority of repo when creating token.

GITHUB_TOKEN1=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
GITHUB_TOKEN2=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# if using GitHub Enterprise:
# (this env var defaults to https://api.github.com/graphql)
GITHUB_API=https://github.example.com/api/graphql

Run local server.

deno task start

You can enable the Redis if you want, but it's not mandatory.

docker compose up -d

Rename env-example to .env, and change ENABLE_REDIS to true

Open localhost from your browser.

http://localhost:8080/?username=ryo-ma

Editor config

Read the .editorconfig

Pull Requests

Pull requests are always welcome! In general, they should a single concern in the least number of changed lines as possible. For changes that address core functionality, it is best to open an issue to discuss your proposal first. I look forward to seeing what you come up with!

Run deno lint

What to do before contributing

1. Run deno lint

deno task lint

2. Run deno format

deno task format

3. Run deno test

deno task test