Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2118

[rhdh-chart] bump-version.yaml GH Workflow creates a new origin branch instead of pushing to the fork PR branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.7.0, 1.8.0
    • Helm Chart
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required

      Description of problem:

      Follow-up issue created while reviewing https://github.com/redhat-developer/rhdh-chart/pull/248#issuecomment-3382187902

      When running the command /bump {chart-name} {bump-level}, the workflow runs through the pre-commit and updates the bump version, but does not commit the update to the PR branch if the PR is coming from a fork.
      It works correctly for PRs created in the same origin repo, like the ones created by Renovate. But when the PR was created from a fork, the Workflow will push to a new branch inside the origin rhdh-chart repo, which is not what we expect.

      Repro steps:

      1. Create a PR against the rhdh-chart repo from your fork
      2. Add a bump comment to the PR, e.g.: `/bump backstage patch`

      Actual results:

      Expected results:

      It should push to the same PR branch, similar to this Workflow in the Operator repo: https://github.com/redhat-developer/rhdh-operator/blob/main/.github/workflows/pr-bundle-diff-checks.yaml

      Additional info (Such as Logs, Screenshots, etc):

              Unassigned Unassigned
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: