Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

chore: refactor sync job #100

Merged
merged 1 commit into from
Jun 5, 2023
Merged

chore: refactor sync job #100

merged 1 commit into from
Jun 5, 2023

Conversation

ctreatma
Copy link
Contributor

@ctreatma ctreatma commented Jun 2, 2023

This breaks up the sync job into smaller steps so that if fetching the spec succeeds, but patching the spec or generating the code fails, we can still make use of whatever succeeded.

The new sync job first fetches and commits the latest spec; if that succeeds, then it applies spec patches and commits the patched spec; if that succeeds, then it regenerates the code.

When opening a PR, the sync job now checks if either patching or generating failed; if there was a failure, it creates the PR in draft status and adds a comment indicating which step failed.

This breaks up the sync job into smaller steps so that if fetching
the spec succeeds, but patching the spec or generating the code
fails, we can still make use of whatever succeeded.

The new sync job first fetches and commits the latest spec; if that
succeeds, then it applies spec patches and commits the patched spec;
if that succeeds, then it regenerates the code.

When opening a PR, the sync job now checks if either patching or
generating failed; if there was a failure, it creates the PR in draft
status and adds a comment indicating which step failed.
@ctreatma ctreatma marked this pull request as ready for review June 2, 2023 21:42
@displague displague merged commit 929a630 into main Jun 5, 2023
2 checks passed
@ctreatma ctreatma deleted the sync-job-refactor branch June 5, 2023 14:19
@github-actions
Copy link
Contributor

This PR is included in version 0.9.0 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants