"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["1024"],{327:function(e,t,n){n.r(t),n.d(t,{default:()=>u,frontMatter:()=>r,metadata:()=>o,assets:()=>a,toc:()=>d,contentTitle:()=>c});var o=JSON.parse('{"id":"gh-action","title":"GitHub Action \u26A1","description":"The Preview in LiveCodes GitHub Action generates preview links to playgrounds for code changes in pull requests and posts them as pull request comments.","source":"@site/docs/gh-action.mdx","sourceDirName":".","slug":"/gh-action","permalink":"/docs/gh-action","draft":false,"unlisted":false,"editUrl":"https://github.com/live-codes/livecodes/tree/develop/docs/docs/gh-action.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"Bookmarklet","permalink":"/docs/bookmarklet"},"next":{"title":"Markdown to LiveCodes","permalink":"/docs/markdown-to-livecodes"}}'),i=n("5893"),s=n("65");let r={},c="GitHub Action \u26A1",a={},d=[];function l(e){let t={a:"a",h1:"h1",header:"header",img:"img",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"github-action-",children:"GitHub Action \u26A1"})}),"\n",(0,i.jsxs)(t.p,{children:["The ",(0,i.jsx)(t.a,{href:"https://github.com/live-codes/preview-in-livecodes",children:"Preview in LiveCodes"})," GitHub Action generates preview links to playgrounds for code changes in pull requests and posts them as pull request comments."]}),"\n",(0,i.jsx)(t.p,{children:"Once added to a repo, it runs when a pull request is created or updated. The new code is optionally built. The action posts in a pull request comment links to playgrounds that can use the new code."}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Screenshot:"})}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{alt:"Screenshot of the action",src:n(4926).Z+"",width:"1603",height:"931"})}),"\n",(0,i.jsxs)(t.p,{children:["For usage and more information, see the ",(0,i.jsx)(t.a,{href:"https://github.com/live-codes/preview-in-livecodes",children:"action docs"})," on GitHub. Also check the ",(0,i.jsx)(t.a,{href:"https://github.com/hatemhosny/preview-in-livecodes-demo",children:"example repo"})," for a working demo."]})]})}function u(e={}){let{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},4926:function(e,t,n){n.d(t,{Z:function(){return o}});let o=n.p+"assets/images/preview-in-livecodes-gh-action-b5fb7b1cb63d1e5bfbce956185166e10.png"},65:function(e,t,n){n.d(t,{Z:function(){return c},a:function(){return r}});var o=n(7294);let i={},s=o.createContext(i);function r(e){let t=o.useContext(s);return o.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]);