-
Story
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
5
-
True
-
-
True
-
-
-
OCMUI Team Sprint 283
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 to fix 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). The workflow is currently disabled until we'll be able to switch to the new auth method.
We also 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.
Acceptance criteria
- The create-pull-request code uses a github app token to create PRs
- 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