Skip to content

Commit 327784f

Browse files
Fix request to get latest matchstick version tag in the test command (#1303)
* Add User-Agent header to the lastest tag request Signed-off-by: Maksim Dimitrov <[email protected]> * Add changeset Signed-off-by: Maksim Dimitrov <[email protected]> --------- Signed-off-by: Maksim Dimitrov <[email protected]>
1 parent 5844954 commit 327784f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/pretty-items-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
Fixes 403 Forbidden response when fetching the latest matchstick tag

packages/cli/src/commands/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export default class TestCommand extends Command {
9292
this.log('Fetching latest version tag...');
9393
const result = await fetch(
9494
'https://api.github.com/repos/LimeChain/matchstick/releases/latest',
95+
{
96+
headers: {
97+
'User-Agent': '@graphprotocol/graph-cli',
98+
},
99+
},
95100
);
96101
const json = await result.json();
97102
opts.latestVersion = json.tag_name;

0 commit comments

Comments
 (0)