This repository was archived by the owner on Feb 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +26
-14
lines changed
src/layer/github/implementation/aggregators Expand file tree Collapse file tree 6 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
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==" ],
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ {
2+ "." : " 1.0.35"
3+ }
Original file line number Diff line number Diff line change 1- import { Effect } from 'effect' ;
2- import { match } from 'ts-pattern' ;
1+ import { Effect , Match } from 'effect' ;
32
43import type { EffectResultSuccess } from '@types' ;
54import { getAllPages } from '../generic/get-all-pages.effect.js' ;
@@ -15,20 +14,21 @@ export interface GetRepositoriesArgs {
1514const 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
3333export const getRepositories = ( args : GetRepositoriesArgs ) =>
3434 Effect . withSpan ( 'get-repositories' , {
You can’t perform that action at this time.
0 commit comments