testsAndMisc/scripts/digital_wellbeing
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
..
pacman Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
systemd Add instant mode for near-instantaneous music app termination 2025-12-07 14:40:42 +01:00
block_compulsive_opening.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
install_leechblock.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
music_parallelism.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
pc_startup_visual_status.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
remove_guest_mode.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
setup_midnight_shutdown.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
setup_pc_startup_monitor.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
youtube-music-wrapper.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00