1 Commits

Author SHA1 Message Date
Renovate Bot
665484d406 Update all non-major dependencies 2026-01-15 00:03:17 +00:00
6 changed files with 90 additions and 63 deletions

View File

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

29
app.ts
View File

@@ -217,9 +217,36 @@ const rebaseBranch = async (rebaseAction: RebaseAction): Promise<RebaseAction &
return { ...rebaseAction, success: doneWithSuccess }; 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 () => { const setupAutoRebaseGit = async () => {
if (CI_TOKEN) { if (CI_TOKEN) {
writeConsole("Found CI_TOKEN, don't forget to set it up in the checkout") await setupCIToken();
} else { } else {
writeConsole("Couldn't find a CI_TOKEN. Using the gitea ghost.", LogLevel.WARNING); 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

@@ -12,7 +12,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@actions/core": "^2.0.0", "@actions/core": "^1.11.1",
"@skydust/toolkit": "^1.3.2" "@skydust/toolkit": "^1.3.2"
}, },
"devDependencies": { "devDependencies": {

50
pnpm-lock.yaml generated
View File

@@ -9,15 +9,15 @@ importers:
.: .:
dependencies: dependencies:
'@actions/core': '@actions/core':
specifier: ^2.0.0 specifier: ^1.11.1
version: 2.0.2 version: 1.11.1
'@skydust/toolkit': '@skydust/toolkit':
specifier: ^1.3.2 specifier: ^1.3.2
version: 1.3.3 version: 1.3.3
devDependencies: devDependencies:
'@types/node': '@types/node':
specifier: ^24.0.0 specifier: ^24.0.0
version: 24.10.9 version: 24.10.8
husky: husky:
specifier: ^9.1.7 specifier: ^9.1.7
version: 9.1.7 version: 9.1.7
@@ -33,17 +33,17 @@ importers:
packages: packages:
'@actions/core@2.0.2': '@actions/core@1.11.1':
resolution: {integrity: sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==} resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==}
'@actions/exec@2.0.0': '@actions/exec@1.1.1':
resolution: {integrity: sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==} resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
'@actions/http-client@3.0.1': '@actions/http-client@2.2.3':
resolution: {integrity: sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==} resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==}
'@actions/io@2.0.0': '@actions/io@1.1.3':
resolution: {integrity: sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==} resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
'@emnapi/core@1.8.1': '@emnapi/core@1.8.1':
resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==} resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}
@@ -307,8 +307,8 @@ packages:
'@tybys/wasm-util@0.10.1': '@tybys/wasm-util@0.10.1':
resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
'@types/node@24.10.9': '@types/node@24.10.8':
resolution: {integrity: sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==} resolution: {integrity: sha512-r0bBaXu5Swb05doFYO2kTWHMovJnNVbCsII0fhesM8bNRlLhXIuckley4a2DaD+vOdmm5G+zGkQZAPZsF80+YQ==}
ajv@8.17.1: ajv@8.17.1:
resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
@@ -421,27 +421,27 @@ packages:
undici-types@7.16.0: undici-types@7.16.0:
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
undici@5.29.0: undici@5.28.4:
resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==} resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==}
engines: {node: '>=14.0'} engines: {node: '>=14.0'}
snapshots: snapshots:
'@actions/core@2.0.2': '@actions/core@1.11.1':
dependencies: dependencies:
'@actions/exec': 2.0.0 '@actions/exec': 1.1.1
'@actions/http-client': 3.0.1 '@actions/http-client': 2.2.3
'@actions/exec@2.0.0': '@actions/exec@1.1.1':
dependencies: dependencies:
'@actions/io': 2.0.0 '@actions/io': 1.1.3
'@actions/http-client@3.0.1': '@actions/http-client@2.2.3':
dependencies: dependencies:
tunnel: 0.0.6 tunnel: 0.0.6
undici: 5.29.0 undici: 5.28.4
'@actions/io@2.0.0': {} '@actions/io@1.1.3': {}
'@emnapi/core@1.8.1': '@emnapi/core@1.8.1':
dependencies: dependencies:
@@ -601,7 +601,7 @@ snapshots:
tslib: 2.8.1 tslib: 2.8.1
optional: true optional: true
'@types/node@24.10.9': '@types/node@24.10.8':
dependencies: dependencies:
undici-types: 7.16.0 undici-types: 7.16.0
@@ -741,6 +741,6 @@ snapshots:
undici-types@7.16.0: {} undici-types@7.16.0: {}
undici@5.29.0: undici@5.28.4:
dependencies: dependencies:
'@fastify/busboy': 2.1.1 '@fastify/busboy': 2.1.1

View File

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