close
Skip to content

PR Preview: document and simplify targetParams#2052

Merged
adamziel merged 3 commits into
WordPress:trunkfrom
ajotka:pr-preview
Dec 10, 2024
Merged

PR Preview: document and simplify targetParams#2052
adamziel merged 3 commits into
WordPress:trunkfrom
ajotka:pr-preview

Conversation

@ajotka
Copy link
Copy Markdown
Contributor

@ajotka ajotka commented Dec 4, 2024

I added missing small documentation about structure of targetParams in PR Preview modals.

  • simplify condition of checking pull structure.

Small improvement.

const urlParams = new URLSearchParams(window.location.search);

// This structure is from plugin-proxy.php
// where we set allowed inputs for WordPress and Gutenberg repositories
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice comment!

repo: 'wordpress-develop',
workflow: 'Test%20Build%20Processes',
artifact: 'wordpress-build-',
pull: 'github.com/wordpress/wordpress-develop/pull'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I tried to think of a more descriptive name, such as baseUrl, but there's no https:// here which makes it more difficult. Let's go with pull for now.

@adamziel adamziel merged commit 0314ce5 into WordPress:trunk Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants