Skip to content

Commit d8b1615

Browse files
committed
Shrink issue screenshots into clickable thumbnails
1 parent 24a1632 commit d8b1615

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Thumbnail images
2+
3+
# Shrinks oversized screenshots in issues and comments into clickable
4+
# thumbnails. The logic lives in d4rken-org/.github so every app repo shares
5+
# one copy; this stub only supplies the triggers, because workflow_call cannot
6+
# be triggered by issue_comment directly.
7+
#
8+
# The shared workflow splits into an unprivileged parsing job and a privileged
9+
# job that only makes the API call, so issues:write below is the ceiling, not
10+
# what the parsing half receives.
11+
#
12+
# Add <!-- no-thumbnail --> to a body to opt it out.
13+
14+
on:
15+
issue_comment:
16+
types: [created, edited]
17+
issues:
18+
types: [opened, edited]
19+
20+
permissions: {}
21+
22+
jobs:
23+
thumbnail:
24+
permissions:
25+
issues: write
26+
uses: d4rken-org/.github/.github/workflows/thumbnail-images.yml@94e36d9a67a887e24338f95fd0429925cea21c98

0 commit comments

Comments
 (0)