Skip to content

Update Project Generator URLs from feature branch to main#2211

Merged
MohabMohie merged 2 commits intomainfrom
copilot/update-urls-to-main-branch
Dec 20, 2025
Merged

Update Project Generator URLs from feature branch to main#2211
MohabMohie merged 2 commits intomainfrom
copilot/update-urls-to-main-branch

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

The SHAFT Project Generator (src/main/javadoc/resources/index.html) was fetching GitHub Actions workflows and Dependabot configuration from the copilot/create-ai-powered-project-generator feature branch instead of main, causing generated projects to use unstable/development versions.

Changes

  • Updated 3 raw.githubusercontent.com URLs to reference refs/heads/main instead of refs/heads/copilot/create-ai-powered-project-generator:
    • Web workflow: .github/workflows/web.yml
    • API workflow: .github/workflows/api.yml
    • Dependabot config: .github/dependabot.yml

This ensures generated projects always pull stable workflow and configuration files from the main branch.

Original prompt

Problem

The SHAFT Project Generator (src/main/javadoc/resources/index.html) currently contains hardcoded URLs pointing to the copilot/create-ai-powered-project-generator branch instead of the main branch.

Files to Update

  • src/main/javadoc/resources/index.html

Required Changes

Update the following URLs to use main branch instead of copilot/create-ai-powered-project-generator:

  1. GitHub Actions Web Workflow (around line 618):

    • Current: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/copilot/create-ai-powered-project-generator/src/main/resources/examples/.github/workflows/web.yml
    • Should be: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/main/src/main/resources/examples/.github/workflows/web.yml
  2. GitHub Actions API Workflow (around line 621):

    • Current: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/copilot/create-ai-powered-project-generator/src/main/resources/examples/.github/workflows/api.yml
    • Should be: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/main/src/main/resources/examples/.github/workflows/api.yml
  3. Dependabot Configuration (around line 632):

    • Current: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/copilot/create-ai-powered-project-generator/src/main/resources/examples/.github/dependabot.yml
    • Should be: https://raw.githubusercontent.com/ShaftHQ/SHAFT_ENGINE/refs/heads/main/src/main/resources/examples/.github/dependabot.yml

Expected Outcome

All URLs should point to the main branch to ensure the project generator always pulls the latest stable workflow and configuration files.

Reference

File URL: https://github.com/ShaftHQ/SHAFT_ENGINE/blob/main/src/main/javadoc/resources/index.html

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update hardcoded URLs to use main branch Update Project Generator URLs from feature branch to main Dec 20, 2025
Copilot AI requested a review from MohabMohie December 20, 2025 17:58
@MohabMohie MohabMohie marked this pull request as ready for review December 20, 2025 17:59
@MohabMohie MohabMohie merged commit 9cca1e0 into main Dec 20, 2025
1 check passed
@MohabMohie MohabMohie deleted the copilot/update-urls-to-main-branch branch December 20, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants