webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
356 stars 95 forks source link

Trigger lit project board external issue webhook on new issue #1429

Closed aomarks closed 1 year ago

aomarks commented 1 year ago

Since we can't directly add external (different org) issues to a project board using the GitHub API, we instead do it with a playwright script that controls the UI.

This PR adds an action that will trigger the webhook whenever an issue is added to this repo.

See https://github.com/lit/lit/pull/3593 for more details.

Part of https://github.com/lit/lit/issues/3586

github-actions[bot] commented 1 year ago

A live preview of this PR will be available at the URL below and will update on each commit. = The build takes ~5-10 minutes, and will 404 until finished.

https://pr1429---site-khswqo4xea-wl.a.run.app/

Warning Until our Cloud Run project is public, only authorized users can view the above URL. The easiest way to view it authenticated is to run the following proxy command and visit http://localhost:5453

(gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1429 --port=5453 site \
& gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1429 --port=6453 catalog)
aomarks commented 1 year ago

@augustjk suggested we try using the addProjectV2DraftIssue API (https://github.com/lit/lit/pull/3593#issuecomment-1397792732), and it turned out doing that with the URL as the title totally worked. Will send another PR that does that instead.