Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GitHub Pages Configuration API #2037

Closed
gerryfletch opened this issue Aug 23, 2021 · 1 comment
Closed

Support GitHub Pages Configuration API #2037

gerryfletch opened this issue Aug 23, 2021 · 1 comment

Comments

@gerryfletch
Copy link

Under /repos/{owner}/{repo}/pages, the source (branch and directory) can be configured. My use case is that my documentation exists in /docs on branch main, which requires a manual step to configure a new project.

curl \
  -X POST \
  -H "Accept: application/vnd.github.switcheroo-preview+json" \
  https://api.github.com/repos/octocat/hello-world/pages \
  -d '{"source":{"branch":"branch","path":"path"}}'
@s-t-e-v-e-n-k
Copy link
Collaborator

https://docs.github.com/en/rest/reference/repos#pages are the relevant API docs

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

No branches or pull requests

3 participants