Skip to content

Commit

Permalink
add comment bot
Browse files Browse the repository at this point in the history
  • Loading branch information
oweitman committed Nov 15, 2024
1 parent 60e191a commit 59cb51b
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 93 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/comment-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto-Response for Update Issues

on:
issues:
types: [opened]

jobs:
respond-to-update:
runs-on: ubuntu-latest
steps:
- name: Check if issue contains update-related text
id: check
run: |
echo "Checking issue body for update conditions..."
ISSUE_BODY="${{ github.event.issue.body }}"
if echo "$ISSUE_BODY" | grep -iEq 'stable|update stable version|stable=1\.[0-9]+\.[0-9]+'; then
echo "match=true" >> $GITHUB_OUTPUT
else
echo "match=false" >> $GITHUB_OUTPUT
fi
- name: Post a response
if: steps.check.outputs.match == 'true'
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.REPO_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Die aktuelle beta releases enthalten noch nicht ausreichend genug getestete Features
und evtl. weitere Probleme, welche nicht für ein stable Release geeignet sind.
Ich werde dann bei Gelegenheit eine geeignete Version über das Developer Portal freischalten.
124 changes: 61 additions & 63 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,61 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Program",
"program": "../iobroker.repochecker/index.js",
"args": ["https://github.com/oweitman/ioBroker.squeezeboxrpc","main","--local"],
"request": "launch",
"stopOnEntry": true,
"runtimeExecutable": "c:/Users/oweit/AppData/Roaming/fnm/aliases/default/node.exe",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"type": "node",
"request": "launch",
"name": "Launch ioBroker Adapter ",
"skipFiles": ["<node_internals>/**"],
"args": ["--debug", "0"],
"program": "node_modules/iobroker.squeezeboxrpc/squeezeboxrpc.js",
"cwd": "${workspaceFolder}/.dev-server/default",
"runtimeExecutable": "c:/Users/oweit/AppData/Roaming/fnm/aliases/default/node.exe",
"stopOnEntry": true,
"sourceMaps": true,
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis1 runtime",
"url": "http://localhost:8082/vis/index.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis1 edit",
"url": "http://localhost:8082/vis/edit.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis2 edit",
"url": "http://localhost:8082/vis-2/edit.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis2 runtime",
"url": "http://localhost:8082/vis-2/?main#default",
"trace": true,
"skipFiles": ["socket.io.js"]
}
]
}
//node --inspect-brk=localhost:9229 .\node_modules\iobroker.squeeboxrpc\squeeboxrpc.js
{
"version": "0.2.0",
"configurations": [
{
"name": "repochecker",
"program": "../iobroker.repochecker/index.js",
"args": ["https://github.com/oweitman/ioBroker.squeezeboxrpc", "main", "--local"],
"request": "launch",
"stopOnEntry": true,
"runtimeExecutable": "c:/Users/oweit/AppData/Roaming/fnm/aliases/default/node.exe",
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"type": "node",
"request": "launch",
"name": "Launch ioBroker Adapter ",
"skipFiles": ["<node_internals>/**"],
"args": ["--debug", "0"],
"program": "node_modules/iobroker.squeezeboxrpc/squeezeboxrpc.js",
"cwd": "${workspaceFolder}/.dev-server/default",
"runtimeExecutable": "c:/Users/oweit/AppData/Roaming/fnm/aliases/default/node.exe",
"stopOnEntry": true,
"sourceMaps": true,
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis1 runtime",
"url": "http://localhost:8082/vis/index.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis1 edit",
"url": "http://localhost:8082/vis/edit.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis2 edit",
"url": "http://localhost:8082/vis-2/edit.html#test",
"trace": true,
"skipFiles": ["socket.io.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "vis2 runtime",
"url": "http://localhost:8082/vis-2/?main#default",
"trace": true,
"skipFiles": ["socket.io.js"]
}
]
}
//node --inspect-brk=localhost:9229 .\node_modules\iobroker.squeeboxrpc\squeeboxrpc.js
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"test": "npm run test:js && npm run test:package",
"check": "tsc --noEmit -p tsconfig.check.json",
"lint": "eslint .",
"repochecker": "npx github:oweitman/ioBroker.repochecker https://github.com/oweitman/ioBroker.squeezeboxrpc --local",
"translate": "translate-adapter",
"release": "release-script --all"
},
Expand All @@ -85,3 +86,4 @@
},
"readmeFilename": "README.md"
}
x
61 changes: 31 additions & 30 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
// Root tsconfig to set the settings and power editor support for all TS files
{
// To update the compilation target, install a different version of @tsconfig/node... and reference it here
// https://github.com/tsconfig/bases#node-18-tsconfigjson
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
"noEmit": true,

// check JS files
"allowJs": true,
"checkJs": true,

// This is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,

// If you want to disable the stricter type checks (not recommended), uncomment the following line
// "strict": false,
// And enable some of those features for more fine-grained control
// "strictNullChecks": true,
// "strictPropertyInitialization": true,
// "strictBindCallApply": true,
"noImplicitAny": false,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false
},
"include": ["**/*.js", "**/*.d.ts"],
"exclude": ["node_modules/**", "widgets/**", "lib/squeezenode/**"]
}
// Root tsconfig to set the settings and power editor support for all TS files
{
// To update the compilation target, install a different version of @tsconfig/node... and reference it here
// https://github.com/tsconfig/bases#node-18-tsconfigjson
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
"noEmit": true,

// check JS files
"allowJs": true,
"checkJs": true,

// This is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,

// If you want to disable the stricter type checks (not recommended), uncomment the following line
// "strict": false,
// And enable some of those features for more fine-grained control
// "strictNullChecks": true,
// "strictPropertyInitialization": true,
// "strictBindCallApply": true,
"noImplicitAny": false,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false,
"sourceMap": true
},
"include": ["**/*.js", "**/*.d.ts"],
"exclude": ["node_modules/**", "widgets/**", "lib/squeezenode/**"]
}

0 comments on commit 59cb51b

Please sign in to comment.