Skip to content

Enhancement: Remove AI Metadata from Issue Body and Use GitHub Labels Instead #35

Description

@replworks-bot

AI Generated • Published by @replworks-bot

Description

Currently, when ai-issue generates an issue, it prepends "AI Generated • Published by @replworks-bot" to the first line and appends "Publisher: @replworks-bot" to the last line of the issue body.

These metadata lines are counterproductive when copying the issue description directly into AI development tools (such as Cursor or Copilot) as context, forcing the user to manually delete them every time.

To improve developer workflow and clean up the issue text, these lines should be removed from the body content, and the tool should instead automatically apply a GitHub Label (ai-generated) to the issue.

Proposed Solution

  1. Clean up the Body: Completely remove the auto-generated headers and footers (AI Generated... and Publisher...) from the markdown output injected into the issue body.
  2. Utilize GitHub Labels: Update the API request logic to automatically attach the ai-generated label to the created issue. (If the label doesn't exist in the repository, the tool should handle it gracefully or attempt to create/apply it).

Tasks

  • Strip out the hardcoded metadata lines from the issue body generator template.
  • Update the GitHub API payload (POST /repos/{owner}/{repo}/issues) to include "labels": ["ai-generated"].
  • Verify that the generated issue body contains only the relevant markdown structure (Description, Proposed Solution, etc.).

Additional Context

Keeping the issue body strictly limited to the core requirements makes it instantly "copy-paste friendly" for AI-assisted coding tools, creating a much smoother feedback loop.

Publisher: @replworks-bot

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions