You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Thanks for your first contribution, @${author}! ${emoji}`,
41
+
'',
42
+
`We'd love to welcome you to the npmx community. Come and say hi on [Discord](https://chat.npmx.dev)! And once you've joined, visit [npmx.wamellow.com](https://npmx.wamellow.com/) to claim the **contributor** role.`,
43
+
].join('\n');
44
+
45
+
await github.rest.issues.createComment({
46
+
owner: context.repo.owner,
47
+
repo: context.repo.repo,
48
+
issue_number: pr.number,
49
+
body,
50
+
});
51
+
52
+
console.log(`Welcomed new contributor @${author} on PR #${pr.number}`);
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+75-1Lines changed: 75 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ This focus helps guide our project decisions as a community and what we choose t
39
39
-[Import order](#import-order)
40
40
-[Naming conventions](#naming-conventions)
41
41
-[Vue components](#vue-components)
42
+
-[Internal linking](#internal-linking)
42
43
-[RTL Support](#rtl-support)
43
44
-[Localization (i18n)](#localization-i18n)
44
45
-[Approach](#approach)
@@ -278,6 +279,79 @@ const props = defineProps<{
278
279
279
280
Ideally, extract utilities into separate files so they can be unit tested. 🙏
280
281
282
+
### Internal linking
283
+
284
+
Always use **object syntax with named routes** for internal navigation. This makes links resilient to URL structure changes and provides type safety via `unplugin-vue-router`.
For package links, use the auto-imported `packageRoute()` utility from `app/utils/router.ts`. It handles scoped/unscoped packages and optional versions:
> Never construct package URLs as strings. The route structure uses separate `org` and `name` params, and `packageRoute()` handles the splitting correctly.
0 commit comments