-
Story
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
-
True
-
-
We currently have a daily scheduled workflow that checks for changes in the OpenAPI specs we use in the code (check_api_pipeline.yml). If there are changes then it will create automatically a PR with the updated TS models generated from the new specs (see example here).
We have a problem when we have to commit changes to adjust our code to the new types as when the workflow runs again it will reset the PR and overwrite them.
We also can improve the authentication as currently the create-pull-request action usesĀ a personal access token, it should be switched to a more fine grained github app token (see docs)
Acceptance criteria
- When a PR to update the model is already open, the workflow shouldn't update it at all, giving people time to review it and eventually commit changes to fix the code
- The create-pull-request code uses a github app token to create PRs