diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..ee89780 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +node_modules +pnpm-lock.yaml diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..cd45633 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "proseWrap": "preserve" +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..fe6bc7a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["biomejs.biome", "esbenp.prettier-vscode"] +} diff --git a/README.md b/README.md index 7573c7d..72c3e7d 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ Reusable GitHub Actions for Sourcegraph repositories. ## Available Actions -| Action | Description | -|--------|-------------| -| [go-setup](./go-setup) | Setup Go with private Sourcegraph repository access | -| [diff-tour](./diff-tour) | Generate a link to the Diff Tour for a PR | +| Action | Description | +| ------------------------ | --------------------------------------------------- | +| [go-setup](./go-setup) | Setup Go with private Sourcegraph repository access | +| [diff-tour](./diff-tour) | Generate a link to the Diff Tour for a PR | ## Usage diff --git a/go-setup/README.md b/go-setup/README.md index 52788cb..1c20c6d 100644 --- a/go-setup/README.md +++ b/go-setup/README.md @@ -14,10 +14,10 @@ steps: ## Inputs -| Input | Required | Default | Description | -|-------|----------|---------|-------------| -| `private-token` | Yes | - | Token for accessing private Sourcegraph repos | -| `go-version-file` | No | `go.mod` | Path to go.mod or go.work file to determine Go version | +| Input | Required | Default | Description | +| ----------------- | -------- | -------- | ------------------------------------------------------ | +| `private-token` | Yes | - | Token for accessing private Sourcegraph repos | +| `go-version-file` | No | `go.mod` | Path to go.mod or go.work file to determine Go version | ## What it does diff --git a/go-setup/action.yml b/go-setup/action.yml index 7354414..8a8ec94 100644 --- a/go-setup/action.yml +++ b/go-setup/action.yml @@ -1,26 +1,26 @@ -name: 'Go Setup' -description: 'Setup Go with private Sourcegraph repo access' +name: "Go Setup" +description: "Setup Go with private Sourcegraph repo access" inputs: go-version: - description: 'Go version to use (overrides go-version-file if set)' + description: "Go version to use (overrides go-version-file if set)" required: false - default: '' + default: "" go-version-file: - description: 'Path to go.mod or go.work file to determine Go version' + description: "Path to go.mod or go.work file to determine Go version" required: false - default: 'go.mod' + default: "go.mod" private-token: - description: 'Token for accessing private Sourcegraph repos' + description: "Token for accessing private Sourcegraph repos" required: false - default: '' + default: "" goprivate: - description: 'Comma-separated list of module path prefixes for GOPRIVATE' + description: "Comma-separated list of module path prefixes for GOPRIVATE" required: false - default: '' + default: "" runs: - using: 'composite' + using: "composite" steps: - name: Install Go uses: actions/setup-go@v5