feat: add custom instructions, refactor sway and mkinitcpio#151
feat: add custom instructions, refactor sway and mkinitcpio#151paolomainardi wants to merge 7 commits intomainfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
/improve |
There was a problem hiding this comment.
Pull Request Overview
This PR refactors package management and system configuration across several Ansible roles. The main changes focus on consolidating package installations, updating mkinitcpio configuration to use drop-in directory structure, and adding new copilot instructions documentation.
- Migrated mkinitcpio configuration from a single file to a drop-in configuration file in
/etc/mkinitcpio.conf.d/ - Reorganized package installations by moving packages between roles (e.g.,
thefuckfrom productivity to base) - Added comprehensive Copilot instructions documenting the project's architecture and workflows
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| playbooks/roles/system/tasks/kernel.yml | Updates mkinitcpio configuration to use drop-in directory and fixes trailing whitespace |
| playbooks/roles/system/files/sf_default_hooks.conf | Adds new drop-in configuration file for mkinitcpio hooks |
| playbooks/roles/sway/tasks/main.yml | Reorganizes packages, adds ghostty terminal and woff2-font-awesome |
| playbooks/roles/packages/tasks/productivity.yml | Removes thefuck package (moved to base packages) |
| playbooks/roles/packages/tasks/multimedia.yml | Adds explicit removal of calf package and removes it from audio plugins |
| playbooks/roles/packages/tasks/base.yml | Adds multiple CLI tools and moves thefuck package from productivity role |
| .github/copilot-instructions.md | Adds comprehensive project documentation for Copilot |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ignore_errors: yes | ||
|
|
||
| - name: Copy provided mkinitcpio.conf | ||
| - name: Copy provided default mkinitcpio default hooks. |
There was a problem hiding this comment.
The word 'default' is duplicated in the task name. Should be 'Copy provided mkinitcpio default hooks.' instead of 'Copy provided default mkinitcpio default hooks.'
| - name: Copy provided default mkinitcpio default hooks. | |
| - name: Copy provided mkinitcpio default hooks. |
| name: | ||
| - ansible | ||
| - bashtop | ||
| - bc |
There was a problem hiding this comment.
The package 'bc' is duplicated in the package list (appears on both line 27 and line 46).
| - bat | ||
| - bc | ||
| - btop | ||
| - thefuck |
There was a problem hiding this comment.
The package 'thefuck' is duplicated in the package list (appears on both line 48 and line 53).
| - bash-completion | ||
| - dialog | ||
| - dmidecode | ||
| - glances |
There was a problem hiding this comment.
The package 'glances' is being installed on line 36 but is also added to the removal list on line 8. This creates a conflict where the package is both marked for removal and installation.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - lm_sensors | ||
| - coreutils | ||
| - usbutils | ||
| - dmidecode |
There was a problem hiding this comment.
The package 'dmidecode' appears twice in the system packages list (lines 31 and 35). Remove one of the duplicate entries.
| - bc | ||
| - lm_sensors | ||
| - coreutils | ||
| - usbutils |
There was a problem hiding this comment.
The package 'usbutils' appears twice in the system packages list (lines 30 and 54). Remove one of the duplicate entries.
| - bash-completion | ||
| - dialog | ||
| - dmidecode | ||
| - glances |
There was a problem hiding this comment.
The package 'glances' is marked for removal at line 8 but is also included in the installation list at line 36. This creates conflicting intent. Either remove it from the installation list or remove the task that ensures it's absent.
| - glances | |
| # - glances |
PR Type
Documentation, Enhancement
Description
Add comprehensive GitHub Copilot instructions for project
Refactor Sway window manager package organization
Update mkinitcpio configuration to use modular hooks
Improve system kernel installation formatting
Changes walkthrough 📝
copilot-instructions.md
Add comprehensive GitHub Copilot project documentation.github/copilot-instructions.md
main.yml
Refactor Sway package organization and add ghosttyplaybooks/roles/sway/tasks/main.yml
ghosttyterminal emulator to system utilitieskernel.yml
Refactor mkinitcpio to use modular hooks configurationplaybooks/roles/system/tasks/kernel.yml