Skip to content

Commit b642fd1

Browse files
author
マルコメ
authored
chore: mention user to confirm who run (#131)
## Summary Update Gemini CLI workflows to mention the actor when posting acknowledgment comments Enhancements: - Add GITHUB_ACTOR environment variable to workflows - Prefix acknowledgment messages with the @mention of the GitHub actor ## Why? This is to confirm who responded when multiple people called within the organization. This is also useful for checking which users have the authority to perform actions. ## How to verify your codes? I've tested this workflow with issue and pull request comments. <img width="1013" height="159" alt="image" src="https://github.com/user-attachments/assets/e37785b5-2c06-4b56-8c0d-51b9df95ccb3" />
1 parent 6407412 commit b642fd1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/gemini-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ jobs:
162162

163163
- name: 'Acknowledge request'
164164
env:
165+
GITHUB_ACTOR: '${{ github.actor }}'
165166
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
166167
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
167168
REPOSITORY: '${{ github.repository }}'
168169
REQUEST_TYPE: '${{ steps.get_context.outputs.request_type }}'
169170
run: |-
170171
set -euo pipefail
171-
MESSAGE="I've received your request and I'm working on it now! 🤖"
172+
MESSAGE="@${GITHUB_ACTOR} I've received your request and I'm working on it now! 🤖"
172173
if [[ -n "${MESSAGE}" ]]; then
173174
gh issue comment "${ISSUE_NUMBER}" \
174175
--body "${MESSAGE}" \

examples/workflows/gemini-cli/gemini-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ jobs:
162162

163163
- name: 'Acknowledge request'
164164
env:
165+
GITHUB_ACTOR: '${{ github.actor }}'
165166
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
166167
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
167168
REPOSITORY: '${{ github.repository }}'
168169
REQUEST_TYPE: '${{ steps.get_context.outputs.request_type }}'
169170
run: |-
170171
set -euo pipefail
171-
MESSAGE="I've received your request and I'm working on it now! 🤖"
172+
MESSAGE="@${GITHUB_ACTOR} I've received your request and I'm working on it now! 🤖"
172173
if [[ -n "${MESSAGE}" ]]; then
173174
gh issue comment "${ISSUE_NUMBER}" \
174175
--body "${MESSAGE}" \

0 commit comments

Comments
 (0)