Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable parameters #12

Open
adamziel opened this issue Aug 2, 2024 · 0 comments
Open

Customizable parameters #12

adamziel opened this issue Aug 2, 2024 · 0 comments

Comments

@adamziel
Copy link

adamziel commented Aug 2, 2024

This action would be so useful to adopt in all the repositories out there. To do that, it needs to provide a degree of customization. I went through a few custom comment actions out in the wild and gathered a few things to parametrize before they can be swapped for this one:

  • The comment body. It would be useful to make it a markdown template that accepts the following parameters:
    • target_repo_owner
    • target_repo_name
    • source_branch_name
    • pr_number
    • pr_url
    • ci_job_run_id
    • preview_url – based on the Blueprint below
    • preview_blueprint_hash – to link to, say, https://playground.wordpress.net/builder/builder.html#the same blueprint
  • Blueprint for the preview, also possible to format with the variables above (example)

References

Also – thank you so much for your great work here @vcanales!

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

No branches or pull requests

1 participant