Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

Forked repositories often retain the parent's GitHub Pages URL (OWASP-BLT.github.io/MY-GSOC-TOOL/) instead of using their own (username.github.io/MY-GSOC-TOOL/), breaking the dashboard for users.

Implementation

Workflow (.github/workflows/check-github-pages-url.yml)

  • Single bash-based workflow file (61 lines)
  • Runs daily at 6 AM UTC and on push to main
  • Exits early if repository is not a fork
  • Uses GitHub API with curl and jq to check Pages configuration
  • Creates labeled issue (github-pages-setup) with setup instructions when:
    • Pages not configured (404 response)
    • URL matches parent default OWASP-BLT.github.io/MY-GSOC-TOOL/
  • Auto-closes issues when configuration is corrected
  • No external dependencies or setup steps required

Documentation

  • Updated README and SETUP.md with workflow description

Permissions

Requires only standard contents: read and issues: write - no additional tokens or secrets needed.

Example Issue Created

## Configure GitHub Pages

Your GitHub Pages URL needs to be set up.

Go to Settings → Pages and select 'GitHub Actions' as the source.

Your dashboard will be at: `https://your-username.github.io/MY-GSOC-TOOL/`

Simplicity

All logic consolidated into a single workflow file using bash scripting - no Python dependencies, no separate scripts, just one straightforward workflow that does the job.

Original prompt

add a github action to alert the user if the url in the github page is the same as the default one and not their own pages one and ask them to update it - create a new issue in the repo or alert them some way maybe a PR whatever would work cross repo without extra permissions


💡 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 self-assigned this Dec 11, 2025
Copilot AI and others added 5 commits December 11, 2025 00:42
…tion

Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub action to alert users about URL updates Add automated GitHub Pages URL validation for forks Dec 11, 2025
Copilot AI requested a review from DonnieBLT December 11, 2025 00:51
@DonnieBLT
Copy link
Contributor

@copilot simplify this please

Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 14, 2025

@copilot simplify this please

Simplified! Reduced from 361 lines (2 files) to 61 lines (1 file).

Changes in commit 8270624:

  • Removed Python script (323 lines)
  • Consolidated all logic into workflow using bash
  • No external dependencies needed
  • 81% reduction in code complexity

All features preserved: fork detection, URL checking, issue creation/closing.

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