Copilot
|
faff8ba349
|
Fix shell script formatting and add PR workflow validation (#3)
* Initial plan
* fix: format shell scripts with shfmt (convert tabs to 2 spaces)
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
* feat: enhance shell-check workflow for PR pre-merge validation
- Add pull_request_target trigger to check PRs from forks
- Add explicit failure message with instructions
- Create BRANCH_PROTECTION.md with setup guide
- Ensure workflow runs on all PRs targeting main/master
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
* refactor: improve workflow security and remove redundant exit code
- Remove pull_request_target to avoid executing untrusted fork code
- Remove redundant exit 1 from failure step
- Update documentation to reflect changes
- Standard pull_request trigger handles forks securely
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
|
2026-01-07 22:52:20 +01:00 |
|
|
|
3a62a02c3d
|
refactor: reduce code duplication from 1.97% to 0.76%
- Add common.sh library functions: require_imagemagick, install_missing_pacman_packages, handle_arg_help_or_unknown
- Create android.sh shared library for Android utilities
- Create hosts-guard-common.sh for pacman hooks shared functions
- Update multiple scripts to source common.sh and use shared helpers
- Add print_shutdown_schedule helper in setup_midnight_shutdown.sh
- Remove duplicate log(), usage(), install_packages patterns across scripts
- Format all shell scripts with shfmt (2-space indent)
|
2025-12-11 18:32:15 +01:00 |
|
|
|
83ceb57f25
|
style: convert tabs to spaces in shell_check.sh
|
2025-11-16 21:00:22 +01:00 |
|
|
|
bf7bebbfef
|
refactor: remove all skip-fmt flags and enforce all checks always
|
2025-11-16 20:55:39 +01:00 |
|
|
|
2b83adb0f6
|
feat: add auto-fix to pre-commit hook with --skip-fmt option
|
2025-11-16 20:40:34 +01:00 |
|
|
|
1ffca72ee8
|
chore: fix shell check issues
|
2025-11-06 19:39:04 +01:00 |
|
|
|
42db2c1d44
|
fix: shellcheck issues
|
2025-11-01 15:36:22 +01:00 |
|
|
|
8d2144331e
|
feat: shell check script
|
2025-11-01 13:50:07 +01:00 |
|