Skip to content

Commit b808071

Browse files
KyleAMathewsclaude
andauthored
fix: replace hardcoded TanStack/intent with github.repository in notify workflow (#82)
* fix: replace hardcoded TanStack/intent with github.repository in notify workflow The notify-intent.yml template hardcoded `repository: TanStack/intent` as the dispatch target, making it unusable for libraries outside the TanStack org. Use `${{ github.repository }}` so the workflow dispatches to whatever repo it's installed in. Closes #76 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: add changeset for notify-intent fix Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: rename workflow and job name to Review Skills Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: rename to Review Skills Against Changes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: rename to Trigger Skill Review Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0f2ead5 commit b808071

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/intent': patch
3+
---
4+
5+
Replace hardcoded `TanStack/intent` dispatch target in `notify-intent.yml` template with `${{ github.repository }}` so the workflow works for any repo, not just TanStack org libraries.

packages/intent/meta/templates/workflows/notify-intent.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
# notify-intent.yml — Drop this into your library repo's .github/workflows/
22
#
3-
# Fires a repository_dispatch event to TanStack/intent whenever docs or
4-
# source files change on merge to main. This triggers the skill staleness
5-
# check workflow in the intent repo.
3+
# Fires a repository_dispatch event whenever docs or source files change
4+
# on merge to main. This triggers the skill staleness check workflow.
65
#
76
# Requirements:
8-
# - A fine-grained PAT with contents:write on TanStack/intent stored
7+
# - A fine-grained PAT with contents:write on this repository stored
98
# as the INTENT_NOTIFY_TOKEN repository secret.
109
#
1110
# Template variables (replaced by `intent setup`):
1211
# {{PAYLOAD_PACKAGE}} — e.g. @tanstack/query or my-workspace workspace
1312
# {{DOCS_PATH}} — e.g. docs/**
1413
# {{SRC_PATH}} — e.g. packages/query-core/src/**
1514

16-
name: Notify Intent
15+
name: Trigger Skill Review
1716

1817
on:
1918
push:
@@ -24,7 +23,7 @@ on:
2423

2524
jobs:
2625
notify:
27-
name: Notify TanStack Intent
26+
name: Trigger Skill Review
2827
runs-on: ubuntu-latest
2928
steps:
3029
- name: Checkout
@@ -42,7 +41,7 @@ jobs:
4241
uses: peter-evans/repository-dispatch@v3
4342
with:
4443
token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
45-
repository: TanStack/intent
44+
repository: ${{ github.repository }}
4645
event-type: skill-check
4746
client-payload: |
4847
{

0 commit comments

Comments
 (0)