netlify / netlify/open-api

Update build_settings.repo_branch key name

Open
#358 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
323
Forks
133
Avg merge
2d 8h
Merged PRs (30d)
2

Description

An enterprise customer tried to update their production branch with a PATCH to https://api.netlify.com/api/v1/sites/{site_id} and payload {build_settings: {repo_branch: "branch"}}

but our UI makes a PUT to the same endpoints with payload {build_settings: {branch: "branch"}}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the site update endpoint, https://api.netlify.com/api/v1/sites/{site_id}, and inspect the OpenAPI definition for its PATCH and PUT request bodies. Compare the documented build_settings key with the UI's branch payload and the reported repo_branch payload; done means the specification consistently describes the intended key name.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.