Skip to content

Split preview link generation out of status-checker into a dedicated action#696

Merged
gewarren merged 3 commits into
mainfrom
copilot/status-checker-separate-preview-link-generator
Jul 22, 2026
Merged

Split preview link generation out of status-checker into a dedicated action#696
gewarren merged 3 commits into
mainfrom
copilot/status-checker-separate-preview-link-generator

Conversation

Copilot AI commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

status-checker was handling two separate concerns: OPS status evaluation and PR preview-link generation. This change separates preview-link generation into its own action while narrowing status-checker to status-only behavior.

  • New action surface

    • Adds actions/preview-link-generator as the dedicated action for building and updating PR preview links.
    • Keeps preview-specific inputs (docs_path, url_base_path, collapsible_after, max_row_count, opaque_leading_url_segments) with the preview action instead of status-checker.
  • Status-checker scope reduction

    • Removes preview table generation from actions/status-checker/src/main.ts.
    • Removes the obsolete mode-based branching and associated input/type plumbing so status-checker now only evaluates OpenPublishing build status.
  • Packaging/layout

    • Adds a separate preview entrypoint and packages it into the new action’s own dist/ output.
    • Updates action metadata and docs to reflect the split.
  • Workflow coverage

    • Extends Node action validation triggers to include changes under actions/preview-link-generator/**.

Example usage of the new action:

on: [pull_request_target]

jobs:
  preview_link_generator_job:
    runs-on: ubuntu-latest
    steps:
    - uses: dotnet/docs-tools/actions/preview-link-generator@main
      with:
        repo_token: ${{ secrets.GITHUB_TOKEN }}

Copilot AI review requested due to automatic review settings July 21, 2026 20:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

Copilot AI changed the title [WIP] Separate preview link generator into separate action Split preview link generation out of status-checker into a dedicated action Jul 21, 2026
Copilot AI requested a review from gewarren July 21, 2026 20:46
@gewarren
gewarren marked this pull request as ready for review July 21, 2026 22:52
@gewarren
gewarren requested a review from a team as a code owner July 21, 2026 22:52

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Let's :shipit:

@gewarren
gewarren merged commit e761d65 into main Jul 22, 2026
9 checks passed
@gewarren
gewarren deleted the copilot/status-checker-separate-preview-link-generator branch July 22, 2026 16:57
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.

[status-checker] Separate preview link generator into separate action

4 participants