Skip to content

feat(API): add owner, export_triggers, and export_schedule to repo sync responses and request bodies #STRINGS-4401 - #1370

Merged
Sven Dunemann (forelabs) merged 2 commits into
mainfrom
openapi-sync/strings-app-pr-19362
Nov 16, 2026
Merged

Sven Dunemann (forelabs) merged 2 commits into
mainfrom
openapi-sync/strings-app-pr-19362

Conversation

@phrase-bot

Copy link
Copy Markdown
Collaborator

This PR was generated by the openapi-apply agent in response to a
/openapi-sync apply request on
Phrase-Engineering/strings-app#19362.

What changed in the API

  • All repo sync responses (GET /api/v2/accounts/{account_id}/repo_syncs, GET .../repo_syncs/{id}, POST create, PATCH update, POST activate/deactivate) now include an owner field (the user responsible for automated actions), always present.
  • All repo sync responses also conditionally include export_triggers (array of event names that trigger automatic export) and export_schedule (schedule details), when the repo_sync_automatic_exports feature is enabled for the account.
  • POST /api/v2/accounts/{account_id}/repo_syncs now accepts owner_id, export_triggers[], and export_schedule in the request body. Sending export_triggers or export_schedule when the feature is unavailable returns 422.
  • PATCH /api/v2/accounts/{account_id}/repo_syncs/{id} now accepts owner_id, export_triggers[], and export_schedule in the request body (previously only name was accepted). Sending any of owner_id, export_triggers, or export_schedule requires the caller to also have manage_github_sync? permission on the project (returns 403 otherwise).

Source

Notes for reviewers

  • New schemas/user_short.yaml created to match UserShortSerializer (id, username, name, gravatar_uid). These fields are identical to schemas/user_preview.yaml — reviewers should confirm whether a new schema name is correct or if the existing user_preview ref should be reused for owner.
  • New paths/repo_syncs/update.yaml created wiring up the previously undocumented PATCH /accounts/{account_id}/repo_syncs/{id} operation. paths.yaml updated accordingly.
  • operationId kept singular (repo_sync/update) to match the existing files in this directory (repo_sync/create, repo_sync/list, etc.), which use singular rather than the plural repo_syncs/ form from the conventions doc.
  • doc/compiled.json updated automatically by make bundle (called as part of make lint) — this is expected; it reflects the new spec content.
  • openapi-generator-cli validate (part of lint.sh) could not run because Java is not available in the CI environment. npx swagger-cli validate main.yaml passed cleanly. The openapi-generator step printed No validation errors after the Java error, suggesting the script treats missing Java as a non-fatal condition.
  • Hand-written code samples in create.yaml (x-code-samples Curl and CLI v2 blocks) were not updated. They remain from the original file and do not show the new owner_id, export_triggers, or export_schedule params. Reviewers may want to update or remove them.

Opened automatically by the openapi-apply agent. Review the spec changes
against the linked strings-app PR; the agent does not vouch for correctness
beyond "the YAML parsed and the documented layout was followed."

…nc responses and request bodies #STRINGS-4401
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

19 changes: 0 error, 0 warning, 19 info
info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs
		added the optional property `items/export_schedule` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs
		added the optional property `items/export_triggers` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs
		added the optional property `items/owner` to the response with the `200` status

info	[new-optional-request-property] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the new optional request property `export_schedule`

info	[new-optional-request-property] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the new optional request property `export_triggers`

info	[new-optional-request-property] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the new optional request property `owner_id`

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the optional property `export_schedule` to the response with the `201` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the optional property `export_triggers` to the response with the `201` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs
		added the optional property `owner` to the response with the `201` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs/{id}
		added the optional property `export_schedule` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs/{id}
		added the optional property `export_triggers` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs/{id}
		added the optional property `owner` to the response with the `200` status

info	[endpoint-added] at doc/compiled.json
	in API PATCH /accounts/{account_id}/repo_syncs/{id}
		endpoint added

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/activate
		added the optional property `export_schedule` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/activate
		added the optional property `export_triggers` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/activate
		added the optional property `owner` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/deactivate
		added the optional property `export_schedule` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/deactivate
		added the optional property `export_triggers` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/deactivate
		added the optional property `owner` to the response with the `200` status

…GS-4401

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants