mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9a7bae28f | ||
|
|
b800290d72 |
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@@ -92,7 +92,7 @@ jobs:
|
||||
|
||||
release:
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
packages: write
|
||||
attestations: write
|
||||
id-token: write
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user