Skip to content

lib/common.sh, Licenses 2025-07-31#29

Merged
juliojimenez merged 2 commits into
mainfrom
lib-common-licenses-2025-07-31
Jul 31, 2025
Merged

lib/common.sh, Licenses 2025-07-31#29
juliojimenez merged 2 commits into
mainfrom
lib-common-licenses-2025-07-31

Conversation

@juliojimenez
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Julio Jimenez <julio@clickhouse.com>
@juliojimenez juliojimenez self-assigned this Jul 31, 2025
Copilot AI review requested due to automatic review settings July 31, 2025 19:28
@juliojimenez juliojimenez added enhancement github_actions Pull requests that update GitHub Actions code labels Jul 31, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the codebase by extracting common utility functions and color definitions into a dedicated lib/common.sh module. This improves code organization and eliminates duplication.

  • Moved color constants and logging functions from entrypoint.sh to a new lib/common.sh file
  • Updated entrypoint.sh to source the new common library
  • Modified test files to properly reference the new common library during testing

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
lib/common.sh New file containing extracted color constants, logging functions, and cleanup utility
entrypoint.sh Removed duplicated code and added source statement for common.sh
test/simple.bats Added sed command to fix common.sh source path in test setup
test/advanced.bats Added sed command to fix common.sh source path in test setup and updated comment

Comment thread lib/common.sh
Signed-off-by: Julio Jimenez <julio@clickhouse.com>
@juliojimenez juliojimenez merged commit b90cbb5 into main Jul 31, 2025
8 checks passed
@juliojimenez juliojimenez deleted the lib-common-licenses-2025-07-31 branch July 31, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants