Devographics / Devographics/Monorepo

During dev when fetching data locally, check repo SHA

Open
#272 1 comment 0 reactions 1 assignee Claimed by @eric-burel View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

To get the latest commit of a distant repo:
"https://api.github.com/repos/devographics/surveys/commits/main"
(see https://stackoverflow.com/questions/45726013/how-can-i-get-last-commit-from-github-api)

To get the latest commit of a local repo:
```
git rev-parse HEAD
```
(see https://stackoverflow.com/questions/949314/how-do-i-get-the-hash-for-the-current-commit-in-git)

It should probably throw in dev, and warn in prod.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.