From a320300015e665a94b39105ff267702086bd9e19 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:16:33 +0000 Subject: [PATCH 1/4] Create fix-typos.yml --- .github/workflows/fix-typos.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/fix-typos.yml diff --git a/.github/workflows/fix-typos.yml b/.github/workflows/fix-typos.yml new file mode 100644 index 0000000000..d962ce98f9 --- /dev/null +++ b/.github/workflows/fix-typos.yml @@ -0,0 +1,19 @@ +name: Automatically fix typos +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: main + - uses: sobolevn/misspell-fixer-action@master + - uses: peter-evans/create-pull-request@v4.2.0 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + with: + token: ${{ secrets.GITHUB_TOKEN }} From c64726558dd8a2b8e139ef4e38bc5a6dd8828823 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:17:42 +0000 Subject: [PATCH 2/4] Update fix-typos.yml --- .github/workflows/fix-typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix-typos.yml b/.github/workflows/fix-typos.yml index d962ce98f9..1f1c85a353 100644 --- a/.github/workflows/fix-typos.yml +++ b/.github/workflows/fix-typos.yml @@ -12,7 +12,7 @@ jobs: with: ref: main - uses: sobolevn/misspell-fixer-action@master - - uses: peter-evans/create-pull-request@v4.2.0 + - uses: peter-evans/create-pull-request@v4.2.3 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' with: From 7059778ea341c5d3032fc3bcfe3e4ee4e937337c Mon Sep 17 00:00:00 2001 From: stavares843 Date: Thu, 26 Jan 2023 22:22:07 +0000 Subject: [PATCH 3/4] [create-pull-request] automated change --- frontend/src/components/account-settings.ts | 4 ++-- frontend/src/pages/log-in.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/account-settings.ts b/frontend/src/components/account-settings.ts index 9725c8d48d..35316258ad 100644 --- a/frontend/src/components/account-settings.ts +++ b/frontend/src/components/account-settings.ts @@ -138,7 +138,7 @@ const machine = createMachine( on: { SUCCESS: { target: "readOnly", - actions: "setSucessMessage", + actions: "setSuccessMessage", }, ERROR: { target: "editingForm", @@ -151,7 +151,7 @@ const machine = createMachine( { actions: { reset: assign(() => initialContext), - setSucessMessage: assign((context, event) => ({ + setSuccessMessage: assign((context, event) => ({ ...context, ...(event as FormSuccessEvent).detail, })), diff --git a/frontend/src/pages/log-in.ts b/frontend/src/pages/log-in.ts index d406d822a5..bc7367232d 100644 --- a/frontend/src/pages/log-in.ts +++ b/frontend/src/pages/log-in.ts @@ -98,7 +98,7 @@ const machine = createMachine( on: { SUCCESS: { target: "signIn", - actions: "setSucessMessage", + actions: "setSuccessMessage", }, ERROR: { target: "forgotPassword", @@ -111,7 +111,7 @@ const machine = createMachine( { actions: { reset: assign(() => initialContext), - setSucessMessage: assign((context, event) => ({ + setSuccessMessage: assign((context, event) => ({ ...context, ...(event as FormSuccessEvent).detail, })), From 193188fb17224ff6f1cbf8a211ff011bfeb0e5cb Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:22:40 +0000 Subject: [PATCH 4/4] Delete fix-typos.yml --- .github/workflows/fix-typos.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/fix-typos.yml diff --git a/.github/workflows/fix-typos.yml b/.github/workflows/fix-typos.yml deleted file mode 100644 index 1f1c85a353..0000000000 --- a/.github/workflows/fix-typos.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Automatically fix typos -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: main - - uses: sobolevn/misspell-fixer-action@master - - uses: peter-evans/create-pull-request@v4.2.3 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - with: - token: ${{ secrets.GITHUB_TOKEN }}