2 Commits

Author SHA1 Message Date
Morten Olsen
46784fe86c commit on publish 2025-05-18 20:53:50 +02:00
Morten Olsen
b800290d72 feat: support hash ids in http blocks 2025-05-18 20:45:08 +02:00
2 changed files with 12 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ env:
IMAGE_NAME: ${{ github.repository }}
permissions:
contents: read
contents: write
packages: read
jobs:
@@ -135,3 +135,8 @@ jobs:
pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: generated README"
file_pattern: "*.md"

View File

@@ -16,6 +16,11 @@ const httpHandler: ExecutionHandler = ({
return [key.trim(), value?.trim() || true];
})
);
let id = options.id?.toString();
const idPart = optionParts.find((option) => option.startsWith('#'));
if (idPart) {
id = idPart.slice(1);
}
addStep({
type: 'http',
@@ -66,7 +71,7 @@ const httpHandler: ExecutionHandler = ({
node.meta = undefined;
context.addRequest({
id: options.id?.toString(),
id,
request: {
method,
url,