Compare commits

1 Commits

Author SHA1 Message Date
Renovate Bot
26901c4473 Update dependency @types/node to v25 2026-01-18 10:48:31 +00:00
6 changed files with 152 additions and 125 deletions

View File

@@ -18,5 +18,5 @@ inputs:
required: false
runs:
using: 'node24'
using: 'node20'
main: 'dist/app.js'

29
app.ts
View File

@@ -217,9 +217,36 @@ const rebaseBranch = async (rebaseAction: RebaseAction): Promise<RebaseAction &
return { ...rebaseAction, success: doneWithSuccess };
}
const setupCIToken = async () => {
writeConsole("Overriding git repository auth with CI_TOKEN")
const remoteUrl = await runGitCommand([
"remote",
"get-url",
"origin"
]);
const httpLessUrl = remoteUrl.trim().replace(/https?:\/\//, "");
const newUrl = `https://MilaBot:${ CI_TOKEN }@${ httpLessUrl }.git`;
await runGitCommand([
"remote",
"set-url",
"origin",
newUrl
]);
await runGitCommand([
"config",
"--local",
"--unset",
`http.https://${ GITHUB_SERVER_URL.replace(/https?:\/\//, "") }/.extraheader`
]);
}
const setupAutoRebaseGit = async () => {
if (CI_TOKEN) {
writeConsole("Found CI_TOKEN, don't forget to set it up in the checkout")
await setupCIToken();
} else {
writeConsole("Couldn't find a CI_TOKEN. Using the gitea ghost.", LogLevel.WARNING);
}

68
dist/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -16,9 +16,9 @@
"@skydust/toolkit": "^1.3.2"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/node": "^25.0.0",
"husky": "^9.1.7",
"rolldown": "1.0.0-rc.1",
"rolldown": "1.0.0-beta.60",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
},

172
pnpm-lock.yaml generated
View File

@@ -10,20 +10,20 @@ importers:
dependencies:
'@actions/core':
specifier: ^2.0.0
version: 2.0.2
version: 2.0.0
'@skydust/toolkit':
specifier: ^1.3.2
version: 1.3.3
devDependencies:
'@types/node':
specifier: ^24.0.0
version: 24.10.9
specifier: ^25.0.0
version: 25.0.9
husky:
specifier: ^9.1.7
version: 9.1.7
rolldown:
specifier: 1.0.0-rc.1
version: 1.0.0-rc.1
specifier: 1.0.0-beta.60
version: 1.0.0-beta.60
tsx:
specifier: ^4.19.2
version: 4.21.0
@@ -33,17 +33,17 @@ importers:
packages:
'@actions/core@2.0.2':
resolution: {integrity: sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==}
'@actions/core@2.0.0':
resolution: {integrity: sha512-iGW52/zqhPUFnYl0s1ioXfJu86LGs7b+GYuO38JMPpsh14FQrNj3n2JBpC+vZ2CFS4lERQyn5koLDopY+6V/PQ==}
'@actions/exec@2.0.0':
resolution: {integrity: sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==}
'@actions/exec@1.1.1':
resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
'@actions/http-client@3.0.1':
resolution: {integrity: sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==}
'@actions/http-client@3.0.0':
resolution: {integrity: sha512-1s3tXAfVMSz9a4ZEBkXXRQD4QhY3+GAsWSbaYpeknPOKEeyRiU3lH+bHiLMZdo2x/fIeQ/hscL1wCkDLVM2DZQ==}
'@actions/io@2.0.0':
resolution: {integrity: sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==}
'@actions/io@1.1.3':
resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
'@emnapi/core@1.8.1':
resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}
@@ -217,88 +217,88 @@ packages:
'@napi-rs/wasm-runtime@1.1.1':
resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==}
'@oxc-project/types@0.110.0':
resolution: {integrity: sha512-6Ct21OIlrEnFEJk5LT4e63pk3btsI6/TusD/GStLi7wYlGJNOl1GI9qvXAnRAxQU9zqA2Oz+UwhfTOU2rPZVow==}
'@oxc-project/types@0.108.0':
resolution: {integrity: sha512-7lf13b2IA/kZO6xgnIZA88sq3vwrxWk+2vxf6cc+omwYCRTiA5e63Beqf3fz/v8jEviChWWmFYBwzfSeyrsj7Q==}
'@rolldown/binding-android-arm64@1.0.0-rc.1':
resolution: {integrity: sha512-He6ZoCfv5D7dlRbrhNBkuMVIHd0GDnjJwbICE1OWpG7G3S2gmJ+eXkcNLJjzjNDpeI2aRy56ou39AJM9AD8YFA==}
'@rolldown/binding-android-arm64@1.0.0-beta.60':
resolution: {integrity: sha512-hOW6iQXtpG4uCW1zGK56+KhEXGttSkTp2ykncW/nkOIF/jOKTqbM944Q73HVeMXP1mPRvE2cZwNp3xeLIeyIGQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
'@rolldown/binding-darwin-arm64@1.0.0-rc.1':
resolution: {integrity: sha512-YzJdn08kSOXnj85ghHauH2iHpOJ6eSmstdRTLyaziDcUxe9SyQJgGyx/5jDIhDvtOcNvMm2Ju7m19+S/Rm1jFg==}
'@rolldown/binding-darwin-arm64@1.0.0-beta.60':
resolution: {integrity: sha512-vyDA4HXY2mP8PPtl5UE17uGPxUNG4m1wkfa3kAkR8JWrFbarV97UmLq22IWrNhtBPa89xqerzLK8KoVmz5JqCQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
'@rolldown/binding-darwin-x64@1.0.0-rc.1':
resolution: {integrity: sha512-cIvAbqM+ZVV6lBSKSBtlNqH5iCiW933t1q8j0H66B3sjbe8AxIRetVqfGgcHcJtMzBIkIALlL9fcDrElWLJQcQ==}
'@rolldown/binding-darwin-x64@1.0.0-beta.60':
resolution: {integrity: sha512-WnxyqxAKP2BsxouwGY/RCF5UFw/LA4QOHhJ7VEl+UCelHokiwqNHRbryLAyRy3TE1FZ5eae+vAFcaetAu/kWLw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
'@rolldown/binding-freebsd-x64@1.0.0-rc.1':
resolution: {integrity: sha512-rVt+B1B/qmKwCl1XD02wKfgh3vQPXRXdB/TicV2w6g7RVAM1+cZcpigwhLarqiVCxDObFZ7UgXCxPC7tpDoRog==}
'@rolldown/binding-freebsd-x64@1.0.0-beta.60':
resolution: {integrity: sha512-JtyWJ+zXOHof5gOUYwdTWI2kL6b8q9eNwqB/oD4mfUFaC/COEB2+47JMhcq78dey9Ahmec3DZKRDZPRh9hNAMQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
'@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.1':
resolution: {integrity: sha512-69YKwJJBOFprQa1GktPgbuBOfnn+EGxu8sBJ1TjPER+zhSpYeaU4N07uqmyBiksOLGXsMegymuecLobfz03h8Q==}
'@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.60':
resolution: {integrity: sha512-LrMoKqpHx+kCaNSk84iSBd4yVOymLIbxJQtvFjDN2CjQraownR+IXcwYDblFcj9ivmS54T3vCboXBbm3s1zbPQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
'@rolldown/binding-linux-arm64-gnu@1.0.0-rc.1':
resolution: {integrity: sha512-9JDhHUf3WcLfnViFWm+TyorqUtnSAHaCzlSNmMOq824prVuuzDOK91K0Hl8DUcEb9M5x2O+d2/jmBMsetRIn3g==}
'@rolldown/binding-linux-arm64-gnu@1.0.0-beta.60':
resolution: {integrity: sha512-sqI+Vdx1gmXJMsXN3Fsewm3wlt7RHvRs1uysSp//NLsCoh9ZFEUr4ZzGhWKOg6Rvf+njNu/vCsz96x7wssLejQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
'@rolldown/binding-linux-arm64-musl@1.0.0-rc.1':
resolution: {integrity: sha512-UvApLEGholmxw/HIwmUnLq3CwdydbhaHHllvWiCTNbyGom7wTwOtz5OAQbAKZYyiEOeIXZNPkM7nA4Dtng7CLw==}
'@rolldown/binding-linux-arm64-musl@1.0.0-beta.60':
resolution: {integrity: sha512-8xlqGLDtTP8sBfYwneTDu8+PRm5reNEHAuI/+6WPy9y350ls0KTFd3EJCOWEXWGW0F35ko9Fn9azmurBTjqOrQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
'@rolldown/binding-linux-x64-gnu@1.0.0-rc.1':
resolution: {integrity: sha512-uVctNgZHiGnJx5Fij7wHLhgw4uyZBVi6mykeWKOqE7bVy9Hcxn0fM/IuqdMwk6hXlaf9fFShDTFz2+YejP+x0A==}
'@rolldown/binding-linux-x64-gnu@1.0.0-beta.60':
resolution: {integrity: sha512-iR4nhVouVZK1CiGGGyz+prF5Lw9Lmz30Rl36Hajex+dFVFiegka604zBwzTp5Tl0BZnr50ztnVJ30tGrBhDr8Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
'@rolldown/binding-linux-x64-musl@1.0.0-rc.1':
resolution: {integrity: sha512-T6Eg0xWwcxd/MzBcuv4Z37YVbUbJxy5cMNnbIt/Yr99wFwli30O4BPlY8hKeGyn6lWNtU0QioBS46lVzDN38bg==}
'@rolldown/binding-linux-x64-musl@1.0.0-beta.60':
resolution: {integrity: sha512-HbfNcqNeqxFjSMf1Kpe8itr2e2lr0Bm6HltD2qXtfU91bSSikVs9EWsa1ThshQ1v2ZvxXckGjlVLtah6IoslPg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
'@rolldown/binding-openharmony-arm64@1.0.0-rc.1':
resolution: {integrity: sha512-PuGZVS2xNJyLADeh2F04b+Cz4NwvpglbtWACgrDOa5YDTEHKwmiTDjoD5eZ9/ptXtcpeFrMqD2H4Zn33KAh1Eg==}
'@rolldown/binding-openharmony-arm64@1.0.0-beta.60':
resolution: {integrity: sha512-BiiamFcgTJ+ZFOUIMO9AHXUo9WXvHVwGfSrJ+Sv0AsTd2w3VN7dJGiH3WRcxKFetljJHWvGbM4fdpY5lf6RIvw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
'@rolldown/binding-wasm32-wasi@1.0.0-rc.1':
resolution: {integrity: sha512-2mOxY562ihHlz9lEXuaGEIDCZ1vI+zyFdtsoa3M62xsEunDXQE+DVPO4S4x5MPK9tKulG/aFcA/IH5eVN257Cw==}
'@rolldown/binding-wasm32-wasi@1.0.0-beta.60':
resolution: {integrity: sha512-6roXGbHMdR2ucnxXuwbmQvk8tuYl3VGu0yv13KxspyKBxxBd4RS6iykzLD6mX2gMUHhfX8SVWz7n/62gfyKHow==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
'@rolldown/binding-win32-arm64-msvc@1.0.0-rc.1':
resolution: {integrity: sha512-oQVOP5cfAWZwRD0Q3nGn/cA9FW3KhMMuQ0NIndALAe6obqjLhqYVYDiGGRGrxvnjJsVbpLwR14gIUYnpIcHR1g==}
'@rolldown/binding-win32-arm64-msvc@1.0.0-beta.60':
resolution: {integrity: sha512-JBOm8/DC/CKnHyMHoJFdvzVHxUixid4dGkiTqGflxOxO43uSJMpl77pSPXvzwZ/VXwqblU2V0/PanyCBcRLowQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
'@rolldown/binding-win32-x64-msvc@1.0.0-rc.1':
resolution: {integrity: sha512-Ydsxxx++FNOuov3wCBPaYjZrEvKOOGq3k+BF4BPridhg2pENfitSRD2TEuQ8i33bp5VptuNdC9IzxRKU031z5A==}
'@rolldown/binding-win32-x64-msvc@1.0.0-beta.60':
resolution: {integrity: sha512-MKF0B823Efp+Ot8KsbwIuGhKH58pf+2rSM6VcqyNMlNBHheOM0Gf7JmEu+toc1jgN6fqjH7Et+8hAzsLVkIGfA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
'@rolldown/pluginutils@1.0.0-rc.1':
resolution: {integrity: sha512-UTBjtTxVOhodhzFVp/ayITaTETRHPUPYZPXQe0WU0wOgxghMojXxYjOiPOauKIYNWJAWS2fd7gJgGQK8GU8vDA==}
'@rolldown/pluginutils@1.0.0-beta.60':
resolution: {integrity: sha512-Jz4aqXRPVtqkH1E3jRDzLO5cgN5JwW+WG0wXGE4NiJd25nougv/AHzxmKCzmVQUYnxLmTM0M4wrZp+LlC2FKLg==}
'@skydust/toolkit@1.3.3':
resolution: {integrity: sha512-MEqgSIv8qcTPLdJq1IcdGOm12SRY+iA+Ufap63KxBFUFnUpJ29d+Nuo8Y7uUbrHn0JN8OJM4E1H00K+xy/WYTQ==, tarball: https://gitea.skydust.fr/api/packages/Skydust/npm/%40skydust%2Ftoolkit/-/1.3.3/toolkit-1.3.3.tgz}
@@ -307,8 +307,8 @@ packages:
'@tybys/wasm-util@0.10.1':
resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
'@types/node@24.10.9':
resolution: {integrity: sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==}
'@types/node@25.0.9':
resolution: {integrity: sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==}
ajv@8.17.1:
resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
@@ -380,8 +380,8 @@ packages:
resolve-pkg-maps@1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
rolldown@1.0.0-rc.1:
resolution: {integrity: sha512-M3AeZjYE6UclblEf531Hch0WfVC/NOL43Cc+WdF3J50kk5/fvouHhDumSGTh0oRjbZ8C4faaVr5r6Nx1xMqDGg==}
rolldown@1.0.0-beta.60:
resolution: {integrity: sha512-YYgpv7MiTp9LdLj1fzGzCtij8Yi2OKEc3HQtfbIxW4yuSgpQz9518I69U72T5ErPA/ATOXqlcisiLrWy+5V9YA==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@@ -427,21 +427,21 @@ packages:
snapshots:
'@actions/core@2.0.2':
'@actions/core@2.0.0':
dependencies:
'@actions/exec': 2.0.0
'@actions/http-client': 3.0.1
'@actions/exec': 1.1.1
'@actions/http-client': 3.0.0
'@actions/exec@2.0.0':
'@actions/exec@1.1.1':
dependencies:
'@actions/io': 2.0.0
'@actions/io': 1.1.3
'@actions/http-client@3.0.1':
'@actions/http-client@3.0.0':
dependencies:
tunnel: 0.0.6
undici: 5.29.0
'@actions/io@2.0.0': {}
'@actions/io@1.1.3': {}
'@emnapi/core@1.8.1':
dependencies:
@@ -546,50 +546,50 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
'@oxc-project/types@0.110.0': {}
'@oxc-project/types@0.108.0': {}
'@rolldown/binding-android-arm64@1.0.0-rc.1':
'@rolldown/binding-android-arm64@1.0.0-beta.60':
optional: true
'@rolldown/binding-darwin-arm64@1.0.0-rc.1':
'@rolldown/binding-darwin-arm64@1.0.0-beta.60':
optional: true
'@rolldown/binding-darwin-x64@1.0.0-rc.1':
'@rolldown/binding-darwin-x64@1.0.0-beta.60':
optional: true
'@rolldown/binding-freebsd-x64@1.0.0-rc.1':
'@rolldown/binding-freebsd-x64@1.0.0-beta.60':
optional: true
'@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.1':
'@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.60':
optional: true
'@rolldown/binding-linux-arm64-gnu@1.0.0-rc.1':
'@rolldown/binding-linux-arm64-gnu@1.0.0-beta.60':
optional: true
'@rolldown/binding-linux-arm64-musl@1.0.0-rc.1':
'@rolldown/binding-linux-arm64-musl@1.0.0-beta.60':
optional: true
'@rolldown/binding-linux-x64-gnu@1.0.0-rc.1':
'@rolldown/binding-linux-x64-gnu@1.0.0-beta.60':
optional: true
'@rolldown/binding-linux-x64-musl@1.0.0-rc.1':
'@rolldown/binding-linux-x64-musl@1.0.0-beta.60':
optional: true
'@rolldown/binding-openharmony-arm64@1.0.0-rc.1':
'@rolldown/binding-openharmony-arm64@1.0.0-beta.60':
optional: true
'@rolldown/binding-wasm32-wasi@1.0.0-rc.1':
'@rolldown/binding-wasm32-wasi@1.0.0-beta.60':
dependencies:
'@napi-rs/wasm-runtime': 1.1.1
optional: true
'@rolldown/binding-win32-arm64-msvc@1.0.0-rc.1':
'@rolldown/binding-win32-arm64-msvc@1.0.0-beta.60':
optional: true
'@rolldown/binding-win32-x64-msvc@1.0.0-rc.1':
'@rolldown/binding-win32-x64-msvc@1.0.0-beta.60':
optional: true
'@rolldown/pluginutils@1.0.0-rc.1': {}
'@rolldown/pluginutils@1.0.0-beta.60': {}
'@skydust/toolkit@1.3.3':
dependencies:
@@ -601,7 +601,7 @@ snapshots:
tslib: 2.8.1
optional: true
'@types/node@24.10.9':
'@types/node@25.0.9':
dependencies:
undici-types: 7.16.0
@@ -682,24 +682,24 @@ snapshots:
resolve-pkg-maps@1.0.0: {}
rolldown@1.0.0-rc.1:
rolldown@1.0.0-beta.60:
dependencies:
'@oxc-project/types': 0.110.0
'@rolldown/pluginutils': 1.0.0-rc.1
'@oxc-project/types': 0.108.0
'@rolldown/pluginutils': 1.0.0-beta.60
optionalDependencies:
'@rolldown/binding-android-arm64': 1.0.0-rc.1
'@rolldown/binding-darwin-arm64': 1.0.0-rc.1
'@rolldown/binding-darwin-x64': 1.0.0-rc.1
'@rolldown/binding-freebsd-x64': 1.0.0-rc.1
'@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.1
'@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.1
'@rolldown/binding-linux-arm64-musl': 1.0.0-rc.1
'@rolldown/binding-linux-x64-gnu': 1.0.0-rc.1
'@rolldown/binding-linux-x64-musl': 1.0.0-rc.1
'@rolldown/binding-openharmony-arm64': 1.0.0-rc.1
'@rolldown/binding-wasm32-wasi': 1.0.0-rc.1
'@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.1
'@rolldown/binding-win32-x64-msvc': 1.0.0-rc.1
'@rolldown/binding-android-arm64': 1.0.0-beta.60
'@rolldown/binding-darwin-arm64': 1.0.0-beta.60
'@rolldown/binding-darwin-x64': 1.0.0-beta.60
'@rolldown/binding-freebsd-x64': 1.0.0-beta.60
'@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.60
'@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.60
'@rolldown/binding-linux-arm64-musl': 1.0.0-beta.60
'@rolldown/binding-linux-x64-gnu': 1.0.0-beta.60
'@rolldown/binding-linux-x64-musl': 1.0.0-beta.60
'@rolldown/binding-openharmony-arm64': 1.0.0-beta.60
'@rolldown/binding-wasm32-wasi': 1.0.0-beta.60
'@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.60
'@rolldown/binding-win32-x64-msvc': 1.0.0-beta.60
slice-ansi@4.0.0:
dependencies:

View File

@@ -6,7 +6,7 @@
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "nodenext",
"module": "esnext",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"isolatedModules": true