Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

implement Staticman v3 API scheme #575

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

VincentTam
Copy link

Staticman's docs have recently been updated. On GitHub, the new GitHub App authorization mechanism is preferred over the traditional GitHub bot as the former is more resistant to GitHub's API rate limit (c.f. Staticman issues 222, 227, 243, 255).

if (err.status === 429) {
console.log("Too many requests");

From the official guide, the format of Staticman v3's POST URL is

{STATICMAN_BASE_URL}/v3/entry/{GIT_PROVIDER}/{GIT_PROVIDER_USERNAME}/{REPO}/{BRANCH}/{property (optional)}

e.g.

https://staticmaninstance.herokuapp.com/v3/entry/github/eduardoboucas/staticman/gh-pages/comments

🔗 https://staticman.net/docs/getting-started.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant