tracker-boot-git-hooks 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -144,7 +144,7 @@ tracker-boot-git-hooks install --base-url https://trackerboot.staging.example.co
144
144
 
145
145
  ### TODO
146
146
 
147
- - [ ] 世界へのリリース 🌍
147
+ - [x] 世界へのリリース 🌍
148
148
  - [ ] キーワードに基づくストーリー状態変更のサポート
149
149
  - [ ] より多くのGitホスティングプロバイダーのサポート(GitLab、Bitbucketなど)
150
150
 
@@ -286,7 +286,7 @@ tracker-boot-git-hooks install --base-url https://trackerboot.staging.example.co
286
286
 
287
287
  ### TODO
288
288
 
289
- - [ ] 세상에 출시하기 🌍
289
+ - [x] 세상에 출시하기 🌍
290
290
  - [ ] 키워드를 기반으로 한 스토리 상태 변경 지원
291
291
  - [ ] 더 많은 Git 호스팅 제공업체 지원(GitLab、Bitbucket 등)
292
292
 
@@ -428,6 +428,6 @@ The hook never blocks a push — if the API is unreachable or returns an error,
428
428
 
429
429
  ### TODO
430
430
 
431
- - [ ] Release to the world 🌍
431
+ - [x] Release to the world 🌍
432
432
  - [ ] Support story state changes based on keywords
433
433
  - [ ] Support more Git hosting providers (GitLab, Bitbucket, etc.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tracker-boot-git-hooks",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Git hooks for Tracker Boot — automatically comments on stories when commits are pushed",
5
5
  "type": "module",
6
6
  "bin": {
package/src/apiClient.js CHANGED
@@ -37,7 +37,7 @@ function assertNoErrors(json) {
37
37
  if (json.errors?.length) throw new Error(json.errors[0].message)
38
38
  }
39
39
 
40
- async function graphqlPost(url, headers, body, timeoutMs = 5000) {
40
+ async function graphqlPost(url, headers, body, timeoutMs = 2000) {
41
41
  const controller = new AbortController()
42
42
  const timer = setTimeout(() => controller.abort(), timeoutMs)
43
43
  let res
@@ -49,7 +49,7 @@ async function graphqlPost(url, headers, body, timeoutMs = 5000) {
49
49
  signal: controller.signal,
50
50
  })
51
51
  } catch (err) {
52
- throw new Error(err.name === 'AbortError' ? 'request timed out after 5s' : err.message)
52
+ throw new Error(err.name === 'AbortError' ? `request timed out after ${timeoutMs}ms` : err.message)
53
53
  } finally {
54
54
  clearTimeout(timer)
55
55
  }