Skip to content

Add test to verify repository homepage matches GitHub Pages URL #213

@MariusStorhaug

Description

Context

Repositories using Process-PSModule should have their GitHub repository homepage field set to their GitHub Pages URL so users can easily discover the documentation site.

Request

A test should verify that the repository's homepage field matches its GitHub Pages URL.

Acceptance criteria

  • The test retrieves both the repository homepage and the Pages URL
  • The test asserts that the homepage matches the Pages URL
  • Mismatches are flagged as a test failure or warning
  • The test handles cases where Pages is not configured

Technical decisions

To be determined during implementation planning — uses the GitHub Repository API and Pages API.


Implementation plan

  • Implement a test that retrieves the repository's homepage field
  • Retrieve the GitHub Pages URL from the Pages API
  • Compare the two and assert they match
  • Handle edge cases (Pages not configured, homepage not set)

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