diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index b2e26ebf8..5f63121d0 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -6,7 +6,6 @@ on: jobs: semantic-version: - if: false # TODO(CG-10755): merge this with release.yml name: Semantic version runs-on: ubuntu-latest outputs: diff --git a/src/codegen/git/repo_operator/repo_operator.py b/src/codegen/git/repo_operator/repo_operator.py index 8353403a6..b1647742a 100644 --- a/src/codegen/git/repo_operator/repo_operator.py +++ b/src/codegen/git/repo_operator/repo_operator.py @@ -346,10 +346,6 @@ def checkout_branch(self, branch_name: str | None, *, remote: bool = False, remo logger.exception(f"Error with Git operations: {e}") raise - def get_diff_files_from_ref(self, ref: str): - diff_from_ref_files = self.git_cli.git.diff(ref, name_only=True).split("\n") - return diff_from_ref_files - def get_diffs(self, ref: str | GitCommit, reverse: bool = True) -> list[Diff]: """Gets all staged diffs""" self.git_cli.git.add(A=True) @@ -377,12 +373,6 @@ def commit_changes(self, message: str, verify: bool = False) -> bool: logger.info("No changes to commit. Do nothing.") return False - def stage_and_commit_file(self, message: str, filepath: str) -> None: - """Stage all changes and commit them with the given message.""" - logger.info(f"Staging and committing changes to {filepath}...") - self.git_cli.git.add(filepath) - self.git_cli.git.commit("-m", message) - @abstractmethod def push_changes(self, remote: Remote | None = None, refspec: str | None = None, force: bool = False) -> PushInfoList: """Push the changes to the given refspec of the remote repository.