Skip to content

hanami/contributors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e8062ee · Jun 7, 2023
Dec 8, 2022
May 25, 2018
Sep 8, 2022
Feb 14, 2018
Jun 7, 2023
Feb 19, 2018
Mar 13, 2017
May 25, 2018
Feb 14, 2018
Feb 7, 2018
Feb 7, 2018
Sep 8, 2022
Sep 8, 2022
Dec 4, 2017
Mar 13, 2017
Mar 13, 2017
Jul 16, 2019
Jul 15, 2019
Jul 28, 2020
Sep 8, 2022
Sep 8, 2022
Apr 5, 2017
Sep 8, 2022
Mar 13, 2017
Apr 28, 2018
Sep 8, 2022
Sep 8, 2022
Sep 8, 2022

Repository files navigation

Hanami Contributors

Display all Hanami contributors on the one page.

How it works

GitHub Actions daily job that:

  1. fetches the contributions data from GitHub and stores it in a local SQLite database (db/production.db)
  2. rebuilds the website

JSON API

GET /api/contributors

{
  "count": Integer,
  "data":[{
    "github": String,
    "avatar_url": String,
    "since": "2017-03-08 09:00:56 UTC",
    "commits_count": Integer
  },
  ...
  ]
}

GET /api/contributors/:github

{
  "status": "ok",
  "contributor": {
    "github": String,
    "avatar_url": String,
    "since": "2017-03-08 09:00:56 UTC",
    "commits": [{
      "url": String,
      "title": String,
      "created_at": "2017-03-08 09:00:56 UTC"
    },
    ...
  }
}

Development

Prerequisites

  • Make
  • Go 1.18+ (only for import.go)
    • musl-cross (brew install FiloSottile/musl-cross/musl-cross)

Setup

Generate a new GitHub Token (no scope is required).

⚡make dev
⚡nvim .envrc # add your GitHub Token

Import

import.go imports all the repositories, commits, and commit authors from Hanami GitHub organization and stores them into db/production.db

To run the import logic locally:

⚡make run

To build the import logic for GitHub Actions:

⚡make build

License

Check LICENSE.txt file

About

All hanami contributors in one place

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published