Skip to content

feat: Make issue trigger label configurable #154

Closed

Description

@integry

Currently, the issue trigger label is hardcoded as "AI". This should be a mandatory, configurable setting.

Implementation Steps

  1. Modify src/daemon.js:

    • Update the pollForIssues and fetchIssuesForRepo functions to use a new environment variable, for example, AI_PRIMARY_TAG, instead of the hardcoded "AI" label. This variable should be mandatory.
  2. Update .env.example:

    • Add AI_PRIMARY_TAG=AI to the .env.example file.
  3. Update gitfix-ui/src/pages/SettingsPage.jsx:

    • Add a new input field in the settings page to allow users to configure the AI_PRIMARY_TAG. This should be a mandatory field.
  4. Update packages/dashboard/server.js:

    • Add API endpoints to get and set the new AI_PRIMARY_TAG setting.
  5. Update src/config/configRepoManager.js:

    • Add functions to load and save the AI_PRIMARY_TAG setting from the configuration repository.

Activity

  1. integry commented on Oct 11, 2025

    @integry
    OwnerAuthor

    Here are the code modifications for making the issue trigger label configurable:

    In 'src/daemon.js', the 'AI_PRIMARY_TAG' should be read from 'process.env' and used in the 'fetchIssuesForRepo' function.

    --- a/src/daemon.js
    +++ b/src/daemon.js
    @@ -10,7 +10,7 @@
     // Configuration from environment variables
     const GITHUB_REPOS_TO_MONITOR = process.env.GITHUB_REPOS_TO_MONITOR;
     const POLLING_INTERVAL_MS = parseInt(process.env.POLLING_INTERVAL_MS || '60000', 10);
    -const AI_PRIMARY_TAG = process.env.AI_PRIMARY_TAG || 'AI';
    +const AI_PRIMARY_TAG = process.env.AI_PRIMARY_TAG;
     const AI_EXCLUDE_TAGS_PROCESSING = process.env.AI_EXCLUDE_TAGS_PROCESSING || 'AI-processing';
     const AI_DONE_TAG = process.env.AI_DONE_TAG || 'AI-done';
     const MODEL_LABEL_PATTERN = process.env.MODEL_LABEL_PATTERN || '^llm-claude-(.+)$';
    

    In '.env.example', add the new 'AI_PRIMARY_TAG' variable.

    --- a/.env.example
    +++ b/.env.example
    @@ -11,7 +11,7 @@
     CONFIG_REPO=https://github.com/integry/gitfix-config.git
     
     # Issue Detection Configuration
    -AI_PRIMARY_TAG=AI
    +AI_PRIMARY_TAG=your_ai_trigger_label # mandatory
     AI_EXCLUDE_TAGS_PROCESSING=AI-processing
     AI_EXCLUDE_TAGS_DONE=AI-done
     
  2. propr-dev commented on Oct 27, 2025

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude-sonnet-4-5-20250929 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Model: claude-sonnet-4-5-20250929
    • Branch: ai-fix/154-feat-make-issue-trigger-l-20251027-1238-claude-sonnet-4-5-20250929-k47
    • Base Branch: main
    • Worktree: issue-154-20251027-1238-claude-sonnet-4-5-20250929-k47
  3. added a commit that references this issue on Oct 27, 2025
  4. added a commit that references this issue on Oct 27, 2025
  5. added 3 commits that reference this issue on Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions