Skip to content

Feature Request: Allow bots to add Amazon Q Developer labelsΒ #14

@denta-ambient

Description

@denta-ambient

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.

Image

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions