Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit f430700

Browse files
authored
chore: release please config (#56)
1 parent ca115a1 commit f430700

File tree

6 files changed

+26
-14
lines changed

6 files changed

+26
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
uses: googleapis/release-please-action@v4
2626
id: release
2727
with:
28-
release-type: node
28+
config-file: release-please/config.json
29+
manifest-file: release-please/manifest.json
2930

3031
- name: ⬇️ Checkout repo
3132
uses: actions/checkout@v4

bun.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"dotenv-flow": "4.1.0",
99
"effect": "3.13.1",
1010
"picocolors": "1.1.1",
11-
"ts-pattern": "5.6.2",
1211
},
1312
"devDependencies": {
1413
"@biomejs/biome": "1.9.4",
@@ -521,8 +520,6 @@
521520

522521
"ts-paths-resolver": ["[email protected]", "", { "dependencies": { "@effect/platform": "0.77.1", "@effect/platform-node": "0.73.1", "comment-json": "4.2.5", "effect": "3.13.1", "effect-errors": "1.8.36", "glob": "11.0.1", "picocolors": "1.1.1", "yargs": "17.7.2" }, "peerDependencies": { "typescript": "5.7.3" }, "bin": { "resolve-ts-paths": "cjs/cli/resolve-ts-paths.cli.js", "resolve-ts-paths-esm": "esm/cli/resolve-ts-paths.cli.js" } }, "sha512-IH1JcCMJQYf1BpR+CY48DY6Oz5Csz20Fak+3f5Y8CXej5Ky8j2Y9j4R97NqfrHAt4dOOuRv4rKg8XibBiUuZHw=="],
523522

524-
"ts-pattern": ["[email protected]", "", {}, "sha512-d4IxJUXROL5NCa3amvMg6VQW2HVtZYmUTPfvVtO7zJWGYLJ+mry9v2OmYm+z67aniQoQ8/yFNadiEwtNS9qQiw=="],
525-
526523
"tsconfck": ["[email protected]", "", { "peerDependencies": { "typescript": "^5.0.0" }, "optionalPeers": ["typescript"], "bin": { "tsconfck": "bin/tsconfck.js" } }, "sha512-CLDfGgUp7XPswWnezWwsCRxNmgQjhYq3VXHM0/XIRxhVrKw0M1if9agzryh1QS3nxjCROvV+xWxoJO1YctzzWg=="],
527524

528525
"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw=="],

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"@octokit/core": "6.1.4",
5555
"dotenv-flow": "4.1.0",
5656
"effect": "3.13.1",
57-
"picocolors": "1.1.1",
58-
"ts-pattern": "5.6.2"
57+
"picocolors": "1.1.1"
5958
},
6059
"devDependencies": {
6160
"@biomejs/biome": "1.9.4",

release-please/config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"pull-request-title-pattern": "chore(main): 🚀 Release v${version}",
4+
"pull-request-header": "# 🚀 Release pull request",
5+
"include-component-in-tag": false,
6+
"include-v-in-tag": true,
7+
"packages": {
8+
".": {
9+
"release-type": "node"
10+
}
11+
}
12+
}

release-please/manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.0.35"
3+
}

src/layer/github/implementation/aggregators/get-repositories.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Effect } from 'effect';
2-
import { match } from 'ts-pattern';
1+
import { Effect, Match } from 'effect';
32

43
import type { EffectResultSuccess } from '@types';
54
import { getAllPages } from '../generic/get-all-pages.effect.js';
@@ -15,20 +14,21 @@ export interface GetRepositoriesArgs {
1514
const getPage =
1615
({ target, type }: GetRepositoriesArgs) =>
1716
(page: number) =>
18-
match(type)
19-
.with('org', () =>
17+
Match.value(type).pipe(
18+
Match.when('org', () =>
2019
getOrgReposPage({
2120
org: target,
2221
page,
2322
}),
24-
)
25-
.with('user', () =>
23+
),
24+
Match.when('user', () =>
2625
getUserReposPage({
2726
username: target,
2827
page,
2928
}),
30-
)
31-
.exhaustive();
29+
),
30+
Match.exhaustive,
31+
);
3232

3333
export const getRepositories = (args: GetRepositoriesArgs) =>
3434
Effect.withSpan('get-repositories', {

0 commit comments

Comments
 (0)