Skip to content

Commit

Permalink
fix: per review
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Feb 5, 2024
1 parent 6469226 commit 6a5d55b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions messages/git-error.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Git: Error

An error occured while syncing models to Prismic from a Git repository.
An error occurred while syncing models to Prismic from a Git repository.

### How to fix the issue

Syncing the project again by committing to the repository.
Sync the project again by committing to the repository.

If the issue is not resolved, please check the [Prismic Help Center](https://prismic.io/docs/help-center).
2 changes: 1 addition & 1 deletion messages/git-invalid-slice-machine-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Any of the following issues could cause this error:

- Missing required properties, such as `repositoryName` and `adapter`.
- Invalid values given to configuration properties.
- Invalid JSON with incorrect syntax
- Invalid JSON with incorrect syntax.

## How to fix the issue

Expand Down
2 changes: 1 addition & 1 deletion messages/git-unauthorized-github.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Git: Unauthorized Github access
# Git: Unauthorized GitHub access

The GitHub app tried to make a request to GitHub, but failed due to unauthorized access.

Expand Down
14 changes: 9 additions & 5 deletions messages/git-unauthorized-prismic.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Git: Unauthorzed Prismic access
# Git: Unauthorized Prismic access

The GitHub app tried to make a request to Prismic, but failed due to unauthorized access.

This error can occur when syncing model changes to Prismic from GitHub with an invalid Prismic Write API token.

## How to fix the issue

First, ensure a Prismic Write API token was saved in Slice Machine. You can set, update, and delete a Write API token from Slice Machine's Settings page.
Re-connect the Prismic and GitHub repositories, ensuring the Write API token is active and correct:

If a token was already saved in Slice Machine, verify that the Prismic Write API token is valid:
1. In Slice Machine's Settings page, disconnect the connected GitHub repository.
1. Re-connect the GitHub repository.
1. When asked for a Write API token, provide a valid token.

Tokens can be created following these steps:

1. In the Prismic repository, navigate to the Settings page.
2. Select **API & Security** in the sidebar and the **Write APIs** tab at the top of the page.
3. Verify that the Write API token is listed. If necessary, generate a new token and save it in Slice Machine.
1. Select **API & Security** in the sidebar and the **Write APIs** tab at the top of the page.
1. Create and copy a new Write API token or copy an existing token.
8 changes: 4 additions & 4 deletions messages/git-unsupported-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ The Slice Machine project uses an adapter that is not supported in the GitHub ap

The following adapters are supported:

- [`@slicemachine/adapter-next`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-next#readme): Next.js projects
- [`@slicemachine/adapter-nuxt`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-nuxt#readme): Nuxt projects
- [`@slicemachine/adapter-sveltekit`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-sveltekit#readme): SvelteKit projects
- [`@slicemachine/adapter-next`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-next#readme): Next.js projects.
- [`@slicemachine/adapter-nuxt`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-nuxt#readme): Nuxt projects.
- [`@slicemachine/adapter-sveltekit`](https://github.com/prismicio/slice-machine/tree/main/packages/adapter-sveltekit#readme): SvelteKit projects.

### How to fix the issue

Expand All @@ -16,7 +16,7 @@ You can verify which adapter your project uses by checking the `adapter` propert

A basic Slice Machine configuration file looks like this:

```json
```jsonc
// slicemachine.config.json

{
Expand Down

0 comments on commit 6a5d55b

Please sign in to comment.