Skip to content

Add shellcheck workflow#92

Merged
lkocman merged 4 commits into
openSUSE:mainfrom
lkocman:shellcheck
May 17, 2026
Merged

Add shellcheck workflow#92
lkocman merged 4 commits into
openSUSE:mainfrom
lkocman:shellcheck

Conversation

@lkocman
Copy link
Copy Markdown
Collaborator

@lkocman lkocman commented May 17, 2026

Copilot AI review requested due to automatic review settings May 17, 2026 13:27
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

Adds a GitHub Actions workflow to run ShellCheck for pull requests, addressing the request to lint the project’s shell code before changes are merged.

Changes:

  • Adds a new ShellCheck workflow triggered on pull requests.
  • Installs ShellCheck on ubuntu-latest.
  • Runs ShellCheck against opensuse-migration-tool.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/shellcheck.yml Outdated
run: sudo apt-get update && sudo apt-get install -y shellcheck

- name: Run ShellCheck
run: shellcheck opensuse-migration-tool
Comment thread .github/workflows/shellcheck.yml Outdated
run: sudo apt-get update && sudo apt-get install -y shellcheck

- name: Run ShellCheck
run: shellcheck opensuse-migration-tool
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/shellcheck.yml Outdated
Comment thread opensuse-migration-tool
exceptions=("google-chrome" )

while IFS="|" read -r num alias name enabled rest; do
while IFS="|" read -r _ alias name enabled rest; do
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@lkocman
Copy link
Copy Markdown
Collaborator Author

lkocman commented May 17, 2026

Merging the workflow and initial set of fixes

@lkocman lkocman merged commit 639c82a into openSUSE:main May 17, 2026
3 of 4 checks passed
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread opensuse-migration-tool
exceptions=("google-chrome" )

while IFS="|" read -r num alias name enabled rest; do
while IFS="|" read -r _ alias name enabled rest; do
run: sudo apt-get update && sudo apt-get install -y shellcheck

- name: Run ShellCheck
run: shellcheck -e SC2086 opensuse-migration-tool scripts/*.sh
Comment thread opensuse-migration-tool
$DRYRUN echo "Upgrading to ${MIGRATION_OPTIONS[$CHOICE]}"

SP=$(sed 's/\./-SP/' <<<"$VERSION") # VERSION from /etc/os-release 15.6 -> 15-SP6
SP=${VERSION/./-SP} # VERSION from /etc/os-release 15.6 -> 15-SP6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants