Skip to content

feat(API): add automatic field to repo sync event responses, deprecate auto_import #STRINGS-4942 - #1393

Merged
Sven Dunemann (forelabs) merged 1 commit into
mainfrom
openapi-sync/strings-app-pr-19874
Nov 24, 2026
Merged

Sven Dunemann (forelabs) merged 1 commit into
mainfrom
openapi-sync/strings-app-pr-19874

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#19874.

What changed in the API

  • GET /api/v2/accounts/{account_id}/repo_syncs/{repo_sync_id}/events and GET /api/v2/accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} — the response schema for all event objects (import and export) now includes a new automatic boolean field indicating whether the sync was triggered automatically. The auto_import field on import events is marked deprecated in favor of automatic.
  • GET /api/v2/gitlab_syncs/{gitlab_sync_id}/history — the details object in every history item now includes a new automatic boolean field. The existing auto_import field is now only present for import events (not export events) and is deprecated in favor of automatic.

Source

Notes for reviewers

  • GET /gitlab_syncs/{gitlab_sync_id}/history is a new path entry — no existing path file or paths.yaml entry existed for this endpoint. Added paths/gitlab_sync_histories/list.yaml and wired it in paths.yaml. Added the GitLab Syncs tag to main.yaml (it was absent) and added gitlab_sync_id as a named parameter in parameters.yaml.
  • The existing paths/repo_sync_events/index.yaml and show.yaml already reference schemas/repo_sync_event.yaml via $ref, so no path-file edits were needed for those endpoints — the schema change propagates automatically.
  • make lint (swagger-cli validate + bundle) passed. The openapi-generator-cli step in lint.sh printed a java: not found error (JRE not available in this CI environment) but exited 0 with "No validation errors" — this is a pre-existing environment limitation, not introduced by this PR.

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."

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

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

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

info	[response-property-deprecated] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs/{id}/events
		response property `items/auto_import` deprecated

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

info	[response-property-deprecated] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/export
		response property `auto_import` deprecated

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

info	[response-property-deprecated] at doc/compiled.json
	in API POST /accounts/{account_id}/repo_syncs/{id}/import
		response property `auto_import` deprecated

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

info	[response-property-deprecated] at doc/compiled.json
	in API GET /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id}
		response property `auto_import` deprecated

@forelabs
Sven Dunemann (forelabs) force-pushed the openapi-sync/strings-app-pr-19874 branch from 43a71f9 to baae6b5 Compare November 24, 2026 13:51
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