Skip to content

Commit 90b754e

Browse files
committed
first commit
1 parent 45f364b commit 90b754e

48 files changed

Lines changed: 4760 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = LF
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[vercel.json]
12+
indent_size = 4
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [ryo-ma]

.github/logo.png

30 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/testing.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check PR Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
jobs:
12+
install-dependencies:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
deno-version: [1.43.6]
18+
19+
steps:
20+
- name: Git Checkout Deno Module
21+
uses: actions/checkout@v4
22+
- uses: denoland/setup-deno@v1
23+
with:
24+
deno-version: ${{ matrix.deno-version }}
25+
- name: Deno format check
26+
run: deno fmt --check
27+
- name: Deno lint check
28+
run: deno task lint
29+
- name: Test Deno Module
30+
run: deno task test

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode
2+
.env
3+
.idea
4+
deno.lock
5+
*.sh
6+
**/.DS_Store

.vercelignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.gitignore
2+
.github
3+
README.md
4+
LICENSE
5+
debug.ts

CONTRIBUTING.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contribution Guide
2+
3+
## Environment
4+
5+
- Deno >= v1.36.1
6+
- [Vercel](https://vercel.com/)
7+
- GitHub API v4
8+
- Docker and Docker compose (optional)
9+
10+
## Local Run
11+
12+
Create `.env` file to project root directory, and write your GitHub token to the
13+
`.env` file. Please select the authority of `repo` when creating token.
14+
15+
```properties
16+
GITHUB_TOKEN1=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
17+
GITHUB_TOKEN2=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18+
19+
# if using GitHub Enterprise:
20+
# (this env var defaults to https://api.github.com/graphql)
21+
GITHUB_API=https://github.example.com/api/graphql
22+
```
23+
24+
Run local server.
25+
26+
```sh
27+
deno task start
28+
```
29+
30+
You can enable the Redis if you want, but it's not mandatory.
31+
32+
```sh
33+
docker compose up -d
34+
```
35+
36+
Rename `env-example` to `.env`, and change ENABLE_REDIS to true
37+
38+
Open localhost from your browser.
39+
40+
http://localhost:8080/?username=ryo-ma
41+
42+
## Editor config
43+
44+
Read the [.editorconfig](./.editorconfig)
45+
46+
## Pull Requests
47+
48+
Pull requests are always welcome! In general, they should a single concern in
49+
the least number of changed lines as possible. For changes that address core
50+
functionality, it is best to open an issue to discuss your proposal first. I
51+
look forward to seeing what you come up with!
52+
53+
## Run deno lint
54+
55+
## What to do before contributing
56+
57+
### 1. Run deno lint
58+
59+
```sh
60+
deno task lint
61+
```
62+
63+
### 2. Run deno format
64+
65+
```sh
66+
deno task format
67+
```
68+
69+
### 3. Run deno test
70+
71+
```sh
72+
deno task test
73+
```

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2025 krish
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

48 Bytes

githubprofile-trophy

githubprofile-trophy

0 commit comments

Comments
 (0)