From 5aa5bc075ef6e04d5506e0eb97db8874fd75faa7 Mon Sep 17 00:00:00 2001 From: stanislas Date: Mon, 3 Mar 2025 22:58:34 +0100 Subject: [PATCH] Added bruno configuration --- bruno/bruno/Github release by tag name.bru | 24 +++++++++++++++++++ bruno/bruno/Github releases.bru | 24 +++++++++++++++++++ bruno/bruno/bruno.json | 9 +++++++ bruno/bruno/environments/FreeTube.bru | 7 ++++++ .../bruno/environments/Nextcloud desktop.bru | 7 ++++++ 5 files changed, 71 insertions(+) create mode 100644 bruno/bruno/Github release by tag name.bru create mode 100644 bruno/bruno/Github releases.bru create mode 100644 bruno/bruno/bruno.json create mode 100644 bruno/bruno/environments/FreeTube.bru create mode 100644 bruno/bruno/environments/Nextcloud desktop.bru diff --git a/bruno/bruno/Github release by tag name.bru b/bruno/bruno/Github release by tag name.bru new file mode 100644 index 0000000..23648ad --- /dev/null +++ b/bruno/bruno/Github release by tag name.bru @@ -0,0 +1,24 @@ +meta { + name: Github release by tag name + type: http + seq: 3 +} + +get { + url: https://api.github.com/repos/{{OWNER}}/{{REPO}}/releases/assets/{{asset_id}} + body: none + auth: bearer +} + +headers { + Accept: application/vnd.github.v3+json + X-GitHub-Api-Version: 2022-11-28 +} + +auth:bearer { + token: {{GITHUB_TOKEN}} +} + +vars:pre-request { + asset_id: 231868119 +} diff --git a/bruno/bruno/Github releases.bru b/bruno/bruno/Github releases.bru new file mode 100644 index 0000000..c3f55e6 --- /dev/null +++ b/bruno/bruno/Github releases.bru @@ -0,0 +1,24 @@ +meta { + name: Github releases + type: http + seq: 2 +} + +get { + url: https://api.github.com/repos/{{OWNER}}/{{REPO}}/releases + body: none + auth: bearer +} + +headers { + Accept: lication/vnd.github.v3+json + X-GitHub-Api-Version: 2022-11-28 +} + +auth:bearer { + token: {{GITHUB_TOKEN}} +} + +vars:pre-request { + : +} diff --git a/bruno/bruno/bruno.json b/bruno/bruno/bruno.json new file mode 100644 index 0000000..e6ec0fb --- /dev/null +++ b/bruno/bruno/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "Github project", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/bruno/bruno/environments/FreeTube.bru b/bruno/bruno/environments/FreeTube.bru new file mode 100644 index 0000000..30ae3f9 --- /dev/null +++ b/bruno/bruno/environments/FreeTube.bru @@ -0,0 +1,7 @@ +vars { + OWNER: FreeTubeApp + REPO: FreeTube +} +vars:secret [ + GITHUB_TOKEN +] diff --git a/bruno/bruno/environments/Nextcloud desktop.bru b/bruno/bruno/environments/Nextcloud desktop.bru new file mode 100644 index 0000000..39b27dd --- /dev/null +++ b/bruno/bruno/environments/Nextcloud desktop.bru @@ -0,0 +1,7 @@ +vars { + OWNER: nextcloud-releases + REPO: desktop +} +vars:secret [ + GITHUB_TOKEN +]