Skip to content

Extend Preview URL with custom paths #127

@joh-klein

Description

@joh-klein

In our setup I need to add a custom path and some url parameters to the preview url. Something along the lines of this:

${{ steps.pullpreview.outputs.url }}/abc?redirectTo=def%2Fghi

With pullpreview@v5 I did that with an action-script:

await github.rest.repos.createDeploymentStatus({
    owner: context.repo.owner,
    repo: context.repo.repo,
    deployment_id: deploymentId,
    state: 'success',
    environment_url: ${{ steps.pullpreview.outputs.url }}/abc?redirectTo=def%2Fghi,
    description: 'Add init deeplink',
  });

Worked reasonably well.

Would you either consider to add a input parameter that allows to customize the Preview URL that gets pasted into the PR comment or do you have another idea how to realize this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions