Skip to content

Commit 4985739

Browse files
maxprilutskiyclaude
andcommitted
fix: add proper @-mentions for users in autolabeler workflow
Update greeting comments to include @-mentions of the issue author for better user engagement and notifications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7e4de97 commit 4985739

1 file changed

Lines changed: 14 additions & 30 deletions

File tree

.github/workflows/claude-issue-autolabel.yml

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,18 @@ jobs:
3232
- name: Get Target Issue
3333
id: target_issue
3434
run: |
35-
if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ github.event.inputs.issue_number }}" ]]; then
36-
echo "issue_number=${{ github.event.inputs.issue_number }}" >> $GITHUB_OUTPUT
37-
issue_data=$(gh issue view ${{ github.event.inputs.issue_number }} --json title,body,author)
38-
{
39-
echo "issue_title<<EOF"
40-
echo "$issue_data" | jq -r '.title'
41-
echo "EOF"
42-
} >> $GITHUB_OUTPUT
43-
{
44-
echo "issue_body<<EOF"
45-
echo "$issue_data" | jq -r '.body'
46-
echo "EOF"
47-
} >> $GITHUB_OUTPUT
48-
echo "issue_author=$(echo "$issue_data" | jq -r '.author.login')" >> $GITHUB_OUTPUT
49-
else
50-
echo "issue_number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
51-
{
52-
echo "issue_title<<EOF"
53-
echo "${{ github.event.issue.title }}"
54-
echo "EOF"
55-
} >> $GITHUB_OUTPUT
56-
{
57-
echo "issue_body<<EOF"
58-
echo "${{ github.event.issue.body }}"
59-
echo "EOF"
60-
} >> $GITHUB_OUTPUT
61-
echo "issue_author=${{ github.event.issue.user.login }}" >> $GITHUB_OUTPUT
62-
fi
35+
echo "issue_number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
36+
{
37+
echo "issue_title<<EOF"
38+
echo "${{ github.event.issue.title }}"
39+
echo "EOF"
40+
} >> $GITHUB_OUTPUT
41+
{
42+
echo "issue_body<<EOF"
43+
echo "${{ github.event.issue.body }}"
44+
echo "EOF"
45+
} >> $GITHUB_OUTPUT
46+
echo "issue_author=${{ github.event.issue.user.login }}" >> $GITHUB_OUTPUT
6347
env:
6448
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6549

@@ -113,8 +97,8 @@ jobs:
11397
COMMENT TYPES TO POST (only if applicable):
11498
11599
A. GREETING (always post):
116-
First-time: "Hey there! Thanks for opening your first issue with lingo.dev. Feel free to join our Discord if you want to chat about this with the team."
117-
Returning: "Hey [username]! Good to see you back. If you want to discuss this in real-time, we're always on Discord."
100+
First-time: "Hey there @${{ steps.target_issue.outputs.issue_author }}! Thanks for opening your first issue with lingo.dev. Feel free to join our Discord if you want to chat about this with the team."
101+
Returning: "Hey @${{ steps.target_issue.outputs.issue_author }}! Good to see you back. If you want to discuss this in real-time, we're always on Discord."
118102
119103
B. TECHNICAL ANALYSIS (post if you found relevant code):
120104
"Based on the codebase, this would likely affect [specific files]. You'll want to look at [specific function/class] in [file path] around line [number if found]."

0 commit comments

Comments
 (0)