generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
Allow bots (e.g. github-actions
) to label issues for Amazon Q agent features.
Use Case
It would be helpful if:
- Amazon Q agent features could be triggered via GitHub Actions workflows
Things I tried:
- Run a workflow that creates an issue to trigger the agent feature
create-issue.yml
name: Create Issue
on:
workflow_dispatch: # Or whatever
jobs:
create-issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create an issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const title = "Test Issue";
const body = "Generate docs and create a new PR"; // Or whatever
const labels = ["Amazon Q development agent"]; // Adding this label is supposed to trigger the agent feature
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title,
body,
labels
});
Result:
- β The trigger issue was successfully created
- β The agent feature did NOT start (I'm assuming this is because the label was added by a bot
github-actions
)- It successfully starts when the label is manually added
π΄ Your role in this project doesn't include permissions to label issues for a generative AI assistant.

What I expect:
- The agent feature successfully starts when the label is added via GitHub Actions
Proposed Solution
No response
Other Information
Note
This request is based on the assumption that it fails because the label is added by a bot. Please let me know if this assumption is incorrect. Any ideas for a workaround would also be appreciated.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request