helloadhavan/github_issues huggingface dataset:
Repository: vuejs/vue
Pull request: remove references to gitter; use chat.vuejs.org for discourse

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [X] Other, please describe: README update for chat migration

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [X] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [X] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [X] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [X] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- __N/A__: New/updated tests are included

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**


Changed files:
filename: README.md
patch: @@ -6,8 +6,7 @@
   <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/dm/vue.svg" alt="Downloads"></a>
   <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/v/vue.svg" alt="Version"></a>
   <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/l/vue.svg" alt="License"></a>
-  <a href="https://gitter.im/vuejs/vue"><img src="https://img.shields.io/gitter/room/nwjs/nw.js.svg" alt="Gitter">
-  <a href="https://discordapp.com/invite/eKWPvZ9"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Discord">
+  <a href="https://chat.vuejs.org/"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat">
   <br>
   <a href="https://saucelabs.com/u/vuejs"><img src="https://saucelabs.com/browser-matrix/vuejs.svg" alt="Sauce Test Status"></a>
 </p>
@@ -98,7 +97,7 @@ To check out live examples and docs, visit [vuejs.org](https://vuejs.org).
 
 ## Questions
 
-For questions and support please use the [Discord chat room](https://vue-land.js.org/), [Gitter chat room](https://gitter.im/vuejs/vue), or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
+For questions and support please use the [the official forum](http://forum.vuejs.org) or [community chat](https://chat.vuejs.org/). The issue list of this repo is **exclusively** for bug reports and feature requests.
 
 ## Issues
Repository: facebook/react
Pull request: [ci] Make maintainer check always remote


To prevent local modification of the MAINTAINERS file we now always fetch from `main` instead.


Changed files:
filename: .github/workflows/shared_check_maintainer.yml
patch: @@ -6,10 +6,6 @@ on:
       actor:
         required: true
         type: string
-      is_remote:
-        required: false
-        type: boolean
-        default: false
     outputs:
       is_core_team:
         value: ${{ jobs.check_maintainer.outputs.is_core_team }}
@@ -30,41 +26,27 @@ jobs:
     outputs:
       is_core_team: ${{ steps.check_if_actor_is_maintainer.outputs.result }}
     steps:
-      - uses: actions/checkout@v4
       - name: Check if actor is maintainer
         id: check_if_actor_is_maintainer
         uses: actions/github-script@v7
         with:
           script: |
             const fs = require('fs');
             const actor = '${{ inputs.actor }}';
-            let isRemote = ${{ inputs.is_remote }};
-            if (typeof isRemote === 'string') {
-              isRemote = isRemote === 'true';
+            const res = await github.rest.repos.getContent({
+              owner: 'facebook',
+              repo: 'react',
+              path: 'MAINTAINERS',
+              ref: 'main',
+              headers: { Accept: 'application/vnd.github+json' }
+            });
+            if (res.status !== 200) {
+              console.error(res);
+              throw new Error('Unable to fetch MAINTAINERS file');
             }
-            if (typeof isRemote !== 'boolean') {
-              throw new Error(`Invalid \`isRemote\` input. Expected a boolean, got: ${isRemote}`);
-            }
-
-            let content = null;
-            if (isRemote === true) {
-              const res = await github.rest.repos.getContent({
-                owner: 'facebook',
-                repo: 'react',
-                path: 'MAINTAINERS',
-                ref: 'main',
-                headers: { Accept: 'application/vnd.github+json' }
-              });
-              if (res.status !== 200) {
-                console.error(res);
-                throw new Error('Unable to fetch MAINTAINERS file');
-              }
-              content = Buffer.from(res.data.content, 'base64').toString();
-            } else {
-              content = await fs.readFileSync('./MAINTAINERS', { encoding: 'utf8' });
-            }
-            if (content === null) {
-              throw new Error('Unable to retrieve local or http MAINTAINERS file');
+            content = Buffer.from(res.data.content, 'base64').toString();
+            if (content == null || typeof content !== 'string') {
+              throw new Error('Unable to retrieve MAINTAINERS file');
             }
 
             const maintainers = new Set(content.split('\n'));
Repository: vercel/next.js
Pull request: Reflect runtime type of `resHeaders` in static types

`resHeaders` could be `undefined` at runtime. All usages accounted for that but the TS types claimed it was non-nullable.

It's now nullable and I adjusted usages to be exact.

Changed files:
filename: packages/next/src/server/lib/router-server.ts
patch: @@ -414,7 +414,7 @@ export async function initialize(opts: {
           req.url = removePathPrefix(origUrl, config.assetPrefix)
         }
 
-        if (resHeaders) {
+        if (resHeaders !== null) {
           for (const key of Object.keys(resHeaders)) {
             res.setHeader(key, resHeaders[key])
           }
@@ -441,8 +441,10 @@ export async function initialize(opts: {
       })
 
       // apply any response headers from routing
-      for (const key of Object.keys(resHeaders || {})) {
-        res.setHeader(key, resHeaders[key])
+      if (resHeaders !== null) {
+        for (const key of Object.keys(resHeaders)) {
+          res.setHeader(key, resHeaders[key])
+        }
       }
 
       // handle redirect

filename: packages/next/src/server/lib/router-utils/resolve-routes.ts
patch: @@ -117,7 +117,7 @@ export function getResolveRoutes(
     finished: boolean
     statusCode?: number
     bodyStream?: ReadableStream | null
-    resHeaders: Record<string, string | string[]>
+    resHeaders: Record<string, string | string[]> | null
     parsedUrl: NextUrlWithParsedQuery
     matchedOutput?: FsOutput | null
   }> {
@@ -752,10 +752,12 @@ export function getResolveRoutes(
             parsedDestination.pathname
           )
 
+          // @ts-expect-error // custom ParsedUrl
+          const unsafeParsedUrl: NextUrlWithParsedQuery = parsedDestination
           return {
             finished: true,
-            // @ts-expect-error custom ParsedUrl
-            parsedUrl: parsedDestination,
+            parsedUrl: unsafeParsedUrl,
+            resHeaders: null,
             statusCode: getRedirectStatus(route),
           }
         }
@@ -826,9 +828,11 @@ export function getResolveRoutes(
           }
 
           if (parsedDestination.protocol) {
+            // @ts-expect-error // custom ParsedUrl
+            const unsafeParsedUrl: NextUrlWithParsedQuery = parsedDestination
             return {
-              // @ts-expect-error custom ParsedUrl
-              parsedUrl: parsedDestination,
+              parsedUrl: unsafeParsedUrl,
+              resHeaders: null,
               finished: true,
             }
           }
Repository: ollama/ollama
Pull request: win: add right click menu support

Enable both left and right click on the pop-up menu

Reference: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-trackpopupmenu

Fixes #7704 

Changed files:
filename: app/tray/wintray/tray.go
patch: @@ -361,7 +361,7 @@ func (t *winTray) showMenu() error {
 
 	boolRet, _, err = pTrackPopupMenu.Call(
 		uintptr(t.menus[0]),
-		TPM_BOTTOMALIGN|TPM_LEFTALIGN,
+		TPM_BOTTOMALIGN|TPM_LEFTALIGN|TPM_RIGHTBUTTON,
 		uintptr(p.X),
 		uintptr(p.Y),
 		0,

filename: app/tray/wintray/w32api.go
patch: @@ -67,6 +67,7 @@ const (
 	SW_HIDE             = 0
 	TPM_BOTTOMALIGN     = 0x0020
 	TPM_LEFTALIGN       = 0x0000
+	TPM_RIGHTBUTTON     = 0x0002
 	WM_CLOSE            = 0x0010
 	WM_USER             = 0x0400
 	WS_CAPTION          = 0x00C00000
Repository: facebook/react
Pull request: [ci] fix notify/label actions for forks

Need this to run against target for forks to get the notification.

This job does not checkout the code in the PR, so it's safe to run from the target.

Also fixes failing checks on PRs:

<img width="870" alt="Screenshot 2025-03-24 at 3 28 30 PM" src="https://github.com/user-attachments/assets/add78287-6449-4e48-9376-f3b360d2607c" />


Changed files:
filename: .github/workflows/compiler_discord_notify.yml
patch: @@ -1,7 +1,7 @@
 name: (Compiler) Discord Notify
 
 on:
-  pull_request:
+  pull_request_target:
     types: [opened, ready_for_review]
     paths:
       - compiler/**

filename: .github/workflows/runtime_discord_notify.yml
patch: @@ -1,7 +1,7 @@
 name: (Runtime) Discord Notify
 
 on:
-  pull_request:
+  pull_request_target:
     types: [opened, ready_for_review]
     paths-ignore:
       - compiler/**

filename: .github/workflows/shared_label_core_team_prs.yml
patch: @@ -1,7 +1,7 @@
 name: (Shared) Label Core Team PRs
 
 on:
-  pull_request:
+  pull_request_target:
 
 permissions: {}
Repository: vercel/next.js
Pull request: [ci] Downgrade Lerna to 4.0.0

This reverts commit https://github.com/vercel/next.js/commit/88c02582a2c59589a795c7029e626f5883b275d7.

Fixes
> lerna ERR! ENOVERSION A version field is required in module-cost's package.json file

-- https://github.com/vercel/next.js/actions/runs/20229575667/job/58069058454#step:14:63

5.x is not compatible with how we want to publish.

We only want to publich what's declared in `packages` but Lerna 5+ only use pnpm workspaces. At the same time, we can't use Lerna+pnpm without `useWorkspaces`.

Going to check if we need to jump to latest or switch to lerna-lite.

Changed files:
filename: bench/fuzzponent/package.json
patch: @@ -1,6 +1,5 @@
 {
   "name": "fuzzponent",
-  "version": "0.0.1",
   "bin": {
     "fuzzponent": "./bin/fuzzponent.js"
   },

filename: bench/next-minimal-server/package.json
patch: @@ -1,6 +1,5 @@
 {
   "name": "next-minimal-server",
-  "version": "0.0.1",
   "description": "Minimal server for Next.js for benchmarking/perf analysis purposes.",
   "bin": "./bin/minimal-server.js",
   "peerDependencies": {

filename: package.json
patch: @@ -230,7 +230,7 @@
     "kleur": "^4.1.0",
     "ky": "0.19.1",
     "ky-universal": "0.6.0",
-    "lerna": "5.6.2",
+    "lerna": "4.0.0",
     "lint-staged": "15.2.2",
     "lodash": "4.17.20",
     "lost": "8.3.1",
Repository: huggingface/transformers
Pull request: fix backward pass test in tensor parallel for Dense model


Changed files:
filename: tests/tensor_parallel/test_tensor_parallel.py
patch: @@ -26,7 +26,7 @@
 from safetensors import safe_open
 
 from transformers import AutoModelForCausalLM, AutoTokenizer, is_torch_available
-from transformers.integrations.tensor_parallel import get_packed_weights, get_tensor_shard, repack_weights
+from transformers.integrations.tensor_parallel import get_packed_weights, repack_weights
 from transformers.testing_utils import (
     TestCasePlus,
     backend_device_count,
@@ -307,7 +307,9 @@ def _test_model_dense_backward_pass_impl(rank):
             if isinstance(param_tp.data, dist.tensor.DTensor):
                 placement = param_tp.data.placements[0]
                 if hasattr(placement, "dim") and placement.dim is not None:
-                    grad_shard = get_tensor_shard(grad, grad, param_tp.data.device_mesh, rank, placement.dim)
+                    dim = placement.dim
+                    world_size = param_tp.data.device_mesh.size()
+                    grad_shard = grad.chunk(world_size, dim=dim)[rank]
                 else:
                     grad_shard = grad
             else:
@@ -535,7 +537,7 @@ def _test_model_moe_forward_impl(rank, mode):
 def _test_model_moe_backward_pass_impl(rank):
     """Implementation for comparing TP and non-TP MoE model backward passes."""
     model_id = "hf-internal-testing/tiny-qwen3-moe"
-    
+
     torch.manual_seed(0)
 
     model_tp = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", tp_plan="auto")
@@ -573,7 +575,9 @@ def _test_model_moe_backward_pass_impl(rank):
             if isinstance(param_tp.data, dist.tensor.DTensor):
                 placement = param_tp.data.placements[0]
                 if hasattr(placement, "dim") and placement.dim is not None:
-                    grad_shard = get_tensor_shard(grad, grad, param_tp.data.device_mesh, rank, placement.dim)
+                    dim = placement.dim
+                    world_size = param_tp.data.device_mesh.size()
+                    grad_shard = grad.chunk(world_size, dim=dim)[rank]
                 else:
                     grad_shard = grad
             else:
@@ -637,14 +641,14 @@ def _test_model_moe_forward_compile_impl(rank, mode):
 def _test_model_moe_save_impl(rank, tmp_dir):
     """Implementation of test_model_save for MoE model distributed execution."""
     model_id = "hf-internal-testing/tiny-qwen3-moe"
-    
+
     if dist.is_initialized():
         kwargs = {"tp_plan": "auto"}
         result_dir = f"{tmp_dir}/tp"
     else:
         kwargs = {}
         result_dir = f"{tmp_dir}/nontp"
-        
+
     model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", **kwargs)
     model.save_pretrained(result_dir)
Repository: vercel/next.js
Pull request: [ci] Bump Lerna to latest

The intermediate Lerna releases are not compatible with how we want to release. Some packages in our pnpm workspace are public but their version not handled by Lerna. That's incompatible with v5 and v6.

1. https://github.com/lerna/lerna/releases/tag/v5.0.0
1. https://github.com/lerna/lerna/releases/tag/v6.0.0
1. https://github.com/lerna/lerna/releases/tag/7.0.0
1. https://github.com/lerna/lerna/releases/tag/v8.0.0
1. https://github.com/lerna/lerna/releases/tag/v9.0.0

## test plan

- [x] `pnpm --silent lerna list --json`
- [x] `p lerna version prerelease --preid canary -y --force-publish` 
- [x] Trigger canary release once merged: https://github.com/vercel/next.js/actions/runs/20238015138 -> https://github.com/vercel/next.js/commit/aba09f4a0e6beabe2a09b5b6b16fb2781308e1ab -> https://github.com/vercel/next.js/releases/tag/v16.1.0-canary.22

Changed files:
filename: lerna.json
patch: @@ -1,6 +1,5 @@
 {
   "npmClient": "pnpm",
-  "useWorkspaces": true,
   "packages": [
     "packages/*"
   ],

filename: package.json
patch: @@ -230,7 +230,7 @@
     "kleur": "^4.1.0",
     "ky": "0.19.1",
     "ky-universal": "0.6.0",
-    "lerna": "4.0.0",
+    "lerna": "9.0.3",
     "lint-staged": "15.2.2",
     "lodash": "4.17.20",
     "lost": "8.3.1",