Skip to content

Refactor update.sh script#31

Draft
MaxBab wants to merge 1 commit into
openshift-service-mesh:mainfrom
MaxBab:refactor_update_flow_execution
Draft

Refactor update.sh script#31
MaxBab wants to merge 1 commit into
openshift-service-mesh:mainfrom
MaxBab:refactor_update_flow_execution

Conversation

@MaxBab
Copy link
Copy Markdown
Contributor

@MaxBab MaxBab commented Apr 30, 2026

  • Fix update.sh flow execution Due to the recent changes in github api, cherry-picked commit do not return anymore the PR they're associated to. As a result, the following changes needs to be done to keep the working logic.

  • Add two execution modes.

    • default - Process only new commits.
    • force - Controlled by "FORCE_LABEL_UPDATE=true" env var. Process all commits. This change would dramatically dicrease the amount of api calls per job execution.
  • Added a separate PR filed and a representation of that filed in istio.md file.

  • In additional to the existing logic of fetching PRs associated with the commit, added a logic that in case the previous logic fails, it fetches last 50 PRs of the repo and checks if the commit exists within the PR.

@MaxBab MaxBab requested a review from FilipB April 30, 2026 17:26
@MaxBab MaxBab force-pushed the refactor_update_flow_execution branch 2 times, most recently from 0612c87 to e886ec2 Compare May 4, 2026 07:09
- Fix update.sh flow execution Due to the recent changes
  in github api, cherry-picked commit do not return anymore
  the PR they're associated to.
  As a result, the following changes needs to be done
  to keep the working logic.

- Add two execution modes.
  - default - Process only new commits.
  - force - Controlled by "FORCE_LABEL_UPDATE=true" env var.
    Process all commits. This change would dramatically
    dicrease the amount of api calls per job execution.

- Added a separate PR filed and a representation of that
  filed in istio.md file.

- In additional to the existing logic of fetching PRs
  associated with the commit, added a logic that in case
  the previous logic fails, it fetches last 50 PRs of the
  repo and checks if the commit exists within the PR.

Signed-off-by: Maxim Babushkin <mbabushk@redhat.com>
@MaxBab MaxBab force-pushed the refactor_update_flow_execution branch from e886ec2 to 59cc09d Compare May 4, 2026 07:26
@MaxBab MaxBab marked this pull request as draft May 4, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant