Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: Icon emoji
required: false
default: ":tractor:"
branch:
description: Branch name to compare with
required: false
default: "master"
Copy link

Copilot AI Jul 14, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using 'main' as the default branch name instead of 'master', as 'main' has become the modern standard for default branch naming in Git repositories.

Suggested change
default: "master"
default: "main"

Copilot uses AI. Check for mistakes.
runs:
using: composite
steps:
Expand All @@ -27,8 +31,8 @@ runs:
shell: bash
run: |
SHA_7=$(git rev-parse --short HEAD)
git fetch origin master
LAST_COMMIT=$(git rev-parse origin/master)
git fetch origin ${{ inputs.branch }}
LAST_COMMIT=$(git rev-parse origin/${{ inputs.branch }})
echo "last_commit_sha=$LAST_COMMIT" >> $GITHUB_OUTPUT
echo "sha_7=$SHA_7" >> $GITHUB_OUTPUT
echo "Last commit SHA: $LAST_COMMIT"
Expand Down
Loading