Skip to content

Commit

Permalink
Fix commit message in commit monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
mlamina committed Apr 14, 2024
1 parent 35884db commit e8b8d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions commit-monitor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ runs:
shell: bash
env:
PR_PILOT_API_KEY: ${{ inputs.api-key }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
2 changes: 1 addition & 1 deletion commit-monitor/commit-monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Assuming GitHub Actions sets an environment variable for the commit message
# If not, this approach needs to be adjusted accordingly
commit_message = os.getenv("GITHUB_COMMIT_MESSAGE")
commit_message = os.getenv("COMMIT_MESSAGE")
trigger_keyword = os.getenv("INPUT_TRIGGER-KEYWORD") # Environment variable for action input
repo = os.getenv("GITHUB_REPOSITORY")

Expand Down

0 comments on commit e8b8d6b

Please sign in to comment.