feat(API): add name field to repo sync schema and create endpoint#1203
Merged
Conversation
Contributor
API changelog (oasdiff)Doc-only edits (descriptions, examples) do not appear here. |
jablan
approved these changes
Jun 18, 2026
This was referenced Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was generated by the
openapi-applyagent in response to a/openapi-sync applyrequest onPhrase-Engineering/strings-app#17811.
What changed in the API
RepoSyncresponses (GET /api/v2/repo_syncs,GET /api/v2/repo_syncs/{id},POST /api/v2/repo_syncs,POST /api/v2/repo_syncs/{id}/activate,POST /api/v2/repo_syncs/{id}/deactivate) now include anamefield (nullable string, max 100 characters). When blank, the sync's display name falls back to the associated project name, but the API field itself isnull.POST /api/v2/repo_syncsnow accepts an optionalnameparameter in the request body.Source
Notes for reviewers
last_import_atandlast_export_atwere also markednullable: trueinschemas/repo_sync.yamlto accurately reflect that these fields can be null (no import/export has occurred yet). This aligns with the actual DB column being nullable.openapi-generator-cli validatestep inlint.shcould not run because Java is not installed in this CI environment — this is a pre-existing environment limitation, not introduced by these changes.swagger-cli validate main.yamlandmake bundleboth passed cleanly (exit code 0).doc/compiled.jsonwas updated as a side effect of runningmake lint(viamake bundle); this is expected.Opened automatically by the
openapi-applyagent. Review the spec changesagainst the linked strings-app PR; the agent does not vouch for correctness
beyond "the YAML parsed and the documented layout was followed."