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

Fix "Check OpenAPI" changes workflow

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • 5
    • True
    • Hide

      Waiting for one of the owners of RedHatInsights, to create a Github App similar to this one
      Follow this Slack conversation

      Show
      Waiting for one of the owners of RedHatInsights , to create a Github App similar to this one Follow this Slack conversation
    • 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

              lkeren-ocm Lior Keren
              robertoemanuel Roberto Emanuel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: