Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3815

Improve "Check OpenAPI" changes workflow

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 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

              Unassigned Unassigned
              robertoemanuel Roberto Emanuel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: