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

implement Staticman v3 API scheme#575

Open
VincentTam wants to merge 4 commits intookfde:masterfrom
VincentTam:staticman_v3
Open

implement Staticman v3 API scheme#575
VincentTam wants to merge 4 commits intookfde:masterfrom
VincentTam:staticman_v3

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