Commit 40c105a
Fix running in annotated git tag GitHub (#227)
* Fix: Handle annotated git tags in push events (#195)
Resolves issue where the action failed when triggered by annotated tag pushes
with error "No commit found for SHA". The problem occurred because payload.after
contains the tag object's SHA for annotated tags, not the commit SHA.
Changes:
- Added resolveCommitSha() helper function to detect tag pushes and resolve
annotated tag objects to their underlying commit SHA using GitHub's Git Data API
- Initialize octokit early in main() to enable tag resolution before setting options.commit
- Updated getChangedFiles() to use the resolved commit SHA from options
- Gracefully handles both annotated tags (resolves to commit) and lightweight tags
(already contain commit SHA)
The fix ensures createCommitComment() receives a valid commit SHA regardless of
whether the push event was triggered by a regular commit, lightweight tag, or
annotated tag.
* chore: update octokit API calls for @actions/github v6 compatibility
Add .rest namespace to all octokit API calls to support @actions/github v6.
This change is required before merging PR #229 (dependency updates).
Changes:
- Updated 7 octokit method calls to use .rest namespace
- Rebuilt bundled action with updated code
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Update CHANGELOG for version 1.1.58, including fixes for annotated git tags in push events, dependency updates for @actions/github, and resolution of security vulnerabilities in Octokit dependencies.
* 1.1.58
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7eb6504 commit 40c105a
5 files changed
Lines changed: 131 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18710 | 18710 | | |
18711 | 18711 | | |
18712 | 18712 | | |
| 18713 | + | |
| 18714 | + | |
| 18715 | + | |
| 18716 | + | |
| 18717 | + | |
| 18718 | + | |
| 18719 | + | |
| 18720 | + | |
| 18721 | + | |
| 18722 | + | |
| 18723 | + | |
| 18724 | + | |
| 18725 | + | |
| 18726 | + | |
| 18727 | + | |
| 18728 | + | |
| 18729 | + | |
| 18730 | + | |
| 18731 | + | |
| 18732 | + | |
| 18733 | + | |
| 18734 | + | |
| 18735 | + | |
| 18736 | + | |
| 18737 | + | |
| 18738 | + | |
| 18739 | + | |
| 18740 | + | |
| 18741 | + | |
| 18742 | + | |
| 18743 | + | |
| 18744 | + | |
| 18745 | + | |
| 18746 | + | |
| 18747 | + | |
| 18748 | + | |
| 18749 | + | |
| 18750 | + | |
| 18751 | + | |
| 18752 | + | |
| 18753 | + | |
| 18754 | + | |
| 18755 | + | |
| 18756 | + | |
18713 | 18757 | | |
18714 | 18758 | | |
18715 | 18759 | | |
| |||
18847 | 18891 | | |
18848 | 18892 | | |
18849 | 18893 | | |
| 18894 | + | |
| 18895 | + | |
| 18896 | + | |
18850 | 18897 | | |
18851 | 18898 | | |
18852 | 18899 | | |
18853 | 18900 | | |
18854 | 18901 | | |
18855 | | - | |
| 18902 | + | |
| 18903 | + | |
| 18904 | + | |
| 18905 | + | |
| 18906 | + | |
| 18907 | + | |
| 18908 | + | |
| 18909 | + | |
| 18910 | + | |
18856 | 18911 | | |
18857 | 18912 | | |
18858 | 18913 | | |
| |||
18976 | 19031 | | |
18977 | 19032 | | |
18978 | 19033 | | |
18979 | | - | |
18980 | 19034 | | |
18981 | 19035 | | |
18982 | 19036 | | |
| |||
19075 | 19129 | | |
19076 | 19130 | | |
19077 | 19131 | | |
19078 | | - | |
| 19132 | + | |
| 19133 | + | |
| 19134 | + | |
19079 | 19135 | | |
19080 | 19136 | | |
19081 | 19137 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
21 | 65 | | |
22 | 66 | | |
23 | 67 | | |
| |||
155 | 199 | | |
156 | 200 | | |
157 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
158 | 205 | | |
159 | 206 | | |
160 | 207 | | |
161 | 208 | | |
162 | 209 | | |
163 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
164 | 219 | | |
165 | 220 | | |
166 | 221 | | |
| |||
284 | 339 | | |
285 | 340 | | |
286 | 341 | | |
287 | | - | |
288 | 342 | | |
289 | 343 | | |
290 | 344 | | |
| |||
383 | 437 | | |
384 | 438 | | |
385 | 439 | | |
386 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
387 | 443 | | |
388 | 444 | | |
389 | 445 | | |
| |||
0 commit comments