From c68fb8db528a5319081a411ee274e4a6ddd65d1f Mon Sep 17 00:00:00 2001 From: Erik Tallang Date: Mon, 25 Nov 2024 11:13:31 +0100 Subject: [PATCH 1/2] chore: add diff to check preview urls --- src/components/button/button.stories.ts | 2 +- src/components/button/button.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/button/button.stories.ts b/src/components/button/button.stories.ts index b1c39a4..d9696c5 100644 --- a/src/components/button/button.stories.ts +++ b/src/components/button/button.stories.ts @@ -8,7 +8,7 @@ export default { } satisfies Meta; export const Default: StoryObj = { - render: ({ Variant }) => html`I'm a button`, + render: ({ Variant }) => html`I'm a button in a PR`, argTypes: { Variant: { control: 'radio', options: ['primary', 'secondary'] }, }, diff --git a/src/components/button/button.ts b/src/components/button/button.ts index def6fd5..093ce0d 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -24,6 +24,10 @@ export class Button extends LitElement { } `; + /** + * @description Controls the appearance of the button + * @default "primary" + */ @property() variant: 'primary' | 'secondary' = 'primary'; From 17630c7e97e758fd7a03742c4e6add04f52bba27 Mon Sep 17 00:00:00 2001 From: Erik Tallang Date: Mon, 25 Nov 2024 12:11:13 +0100 Subject: [PATCH 2/2] feat: allow deploy action to post comments --- .github/workflows/deploy-docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 9a5bd45..ccd884a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -9,6 +9,10 @@ on: branches: - main +permissions: + contents: read + pull-requests: write + jobs: build_and_deploy_job: if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')