BeyondCodeBootcamp / BeyondCodeBootcamp/bliss-template

More Automation

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Can we turn on GitHub Pages automatically? **No**
- https://docs.github.com/en/rest/reference/repos#create-a-github-pages-site
```bash
curl -s -X POST https://api.github.com/repos/"${GH_OWNER}/${GIT_REPO}"/pages \
${my_basic_header} \
-H "Accept: application/vnd.github.switcheroo-preview+json" \
-d '{"source":{"branch":"gh-pages","path":""}}'
```

Can we update the About > Homepage? **No**
- https://docs.github.com/en/rest/reference/repos#update-a-repository
```bash
curl -s -X PATCH https://api.github.com/repos/"${GH_OWNER}/${GIT_REPO}" \
"${my_basic_header}" \
-H "Accept: application/vnd.github.v3+json" \
-H "Content-Type: application/json" \
-d '{ "homepage": "https://'"${GH_OWNER}"'.github.io/'"${GIT_REPO}"'" }'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Bash snippets and the linked GitHub REST API endpoints for creating a Pages site and updating repository metadata. Done means the automation successfully enables Pages from the gh-pages branch and sets the repository homepage for this project.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, shell
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.