You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The codebase-operator is designed to automate branch creation in a Git repository. However, when GitHub's branch creation rules prevent the creation of a branch, the codebase-operator still reports the status of the codebasebranch Custom Resource (CR) as successful. This behavior is misleading and can cause confusion, as the branch has not actually been created successfully. Acceptance Criteria:
When the codebase-operator attempts to create a branch in a GitHub repository and the operation is blocked by GitHub's branch creation rules, the status of the codebasebranch CR should be set to failed.
The failure message should clearly state that the branch creation was blocked by GitHub's branch creation rules, providing as much detail as possible to aid in troubleshooting.
Unit tests must be updated or added to ensure this behavior is correctly handled and to prevent regressions in future updates.
The text was updated successfully, but these errors were encountered:
This change fixes the incorrect status of the branch if
the push to the remote repository fails.
The issue was with the local working git repository.
If the push to the remote repository fails,
the second reconciliation succeeds because the local branch is created,
and the operator doesn't check whether the remote branch exists.
Added a step to clean the git working directory in case the push fails.
This change fixes the incorrect status of the branch if
the push to the remote repository fails.
The issue was with the local working git repository.
If the push to the remote repository fails,
the second reconciliation succeeds because the local branch is created,
and the operator doesn't check whether the remote branch exists.
Added a step to clean the git working directory in case the push fails.
Describe the bug
The codebase-operator is designed to automate branch creation in a Git repository. However, when GitHub's branch creation rules prevent the creation of a branch, the codebase-operator still reports the status of the codebasebranch Custom Resource (CR) as successful. This behavior is misleading and can cause confusion, as the branch has not actually been created successfully.
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: