67 Commits

Author SHA1 Message Date
Oke Kehinde
b440d6698f fix(links): update internal links (#8136) 2025-11-10 14:22:50 -05:00
lauren
c15e20f811 Install eslint-local-rules as postinstall (#7993)
For local dev and CI we want to have the eslint-local-rules running, so let's make sure both have their dependencies installed. We don't use a monorepo setup here, which is why they're currently setup as a two completely independent yarn workspaces.
2025-09-19 11:19:36 -04:00
lauren
b6a32d1e0e Add local eslint rule to validate markdown codeblocks with React Compiler (#7988)
In https://github.com/facebook/react/pull/34462 for example, we found an issue where the compiler was incorrectly validating an example straight from the docs.

In order to find more issues like this + also provide more feedback to doc authors on valid/invalid patterns, this PR adds a new local eslint rule which validates all markdown codeblocks containing components/hooks with React Compiler. An autofixer is also provided.

To express that a codeblock has an expected error, we can use the following metadata:

```ts
// pseudo type def
type MarkdownCodeBlockMetadata = {
    expectedErrors?: {
      'react-compiler'?: number[];
    };
  };
```

and can be used like so:

````
```js {expectedErrors: {'react-compiler': [4]}}
//  setState directly in render
function Component({value}) {
  const [count, setCount] = useState(0);
  setCount(value); // error on L4
  return <div>{count}</div>;
}
```
````

Because this is defined as a local rule, we don't have the same granular reporting that `eslint-plugin-react-hooks` yet. I can look into that later but for now this first PR just sets us up with something basic.
2025-09-18 15:32:18 -04:00
Jatin Singh
50d6991ca6 Update analyze_comment.yml (#7840) 2025-06-06 11:46:39 -04:00
lauren
9b2ad174d0 [ci] Remove unused param (#7695)
https://github.com/facebook/react/pull/32727 removes the `is_remote` param.
2025-03-24 16:40:33 -04:00
Ricky
0bc63000f7 [ci] fix notify for forks (#7694) 2025-03-24 15:46:53 -04:00
lauren
f6d762cbbf [ci] Pin 3rd party actions to specific hash (#7690)
* [ci] Fix permissions and don't use pull_request_target

Defaults permissions to none for all workflows, and only request extra permissions when needed.

Similar to https://github.com/facebook/react/pull/32708, prefer the less permissive `pull_request` trigger instead.

* [ci] Pin 3rd party actions to specific hash
2025-03-21 16:32:50 -04:00
lauren
982b16d60e [ci] Fix permissions and don't use pull_request_target (#7689)
Defaults permissions to none for all workflows, and only request extra permissions when needed.

Similar to https://github.com/facebook/react/pull/32708, prefer the less permissive `pull_request` trigger instead.
2025-03-21 16:32:38 -04:00
lauren
6326e7b1b9 [ci] Run notify workflow on open or ready for review (#7660)
Ports over the fix in the facebook/react repo for this workflow. We don't have to wait for it to be labeled first, now that we have the reusable maintainer check.
2025-02-28 11:23:33 -05:00
lauren
a5aad0d5e9 [ci] Update discord notification bot to use remote workflow (#7455) 2025-01-24 15:25:50 -05:00
lauren
2f248396ec [ci] Specify is_remote input to maintainer check workflow (#7453) 2025-01-24 15:08:25 -05:00
lauren
07f13abcf3 [ci] Add workflow to label PRs from core team (#7451)
Reuses the main repo's workflow to label if a PR is opened by a core team member.
2025-01-24 13:49:29 -05:00
Ricky
5e3e40045d bot to notify for PRs (#7408) 2025-01-07 09:34:21 -05:00
lauren
8201e7e920 [ci] Speed up CI (#7277)
* [ci] Speed up site lint job

* fix

* also speed up analyze
2024-11-03 10:22:10 -05:00
Parth • imParth
13a73c19f4 Update the version 3 (#7161) 2024-09-16 12:36:31 +05:30
Joseph Savona
f96c528f3c Add form templates (#6592)
* Add template for applying to add a new React framework

* update

* grammar

* Add form templates

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Strek <ssharishkumar@gmail.com>

* correct link

---------

Co-authored-by: Ricky Hanlon <rickhanlonii@gmail.com>
Co-authored-by: Ricky <rickhanlonii@fb.com>
Co-authored-by: Strek <ssharishkumar@gmail.com>
2024-02-01 13:42:47 -05:00
Ahmed Abdelbaset
8313857315 Fix(github-actions): Update gh-actions dependencies to versions that utilize Node.js v16 (#6084)
* Update site_lint.yml

* Update site_lint.yml
2023-06-05 13:36:56 +01:00
Sophie Alpert
1b5e8861ab Upgrade React and Next (#6011)
* Upgrade React and Next

* Fix bug in useNestedScrollLock

I guess refs get disconnected before passive effect cleanup runs. useLayoutEffect would also fix it but maybe this is better.
2023-05-19 17:44:58 +01:00
dan
496c5784a9 Fix the comment action 2023-04-28 16:12:25 +01:00
dan
609533c95e Make bundle analysis workflow less fragile (#5971)
* Make bundle analysis workflow less fragile

* Use sticky comment action
2023-04-28 16:05:51 +01:00
dan
920f32eca6 Disable dependabot 2023-04-21 17:39:10 +01:00
dan
e17c47a748 Edit GH action comment 2023-03-21 00:49:56 +00:00
Dan Abramov
8eeff10f77 Try to fix the workflow 2023-03-21 00:22:41 +00:00
Dan Abramov
ce3adb841b Revert "Try to fix GH analyze workflow"
This reverts commit ca4444dfb4.
2023-03-20 23:28:38 +00:00
Dan Abramov
ca4444dfb4 Try to fix GH analyze workflow 2023-03-20 23:18:42 +00:00
Jongwoo Han
8e4f8c5e3f Replace deprecated command with environment file (#5776) 2023-03-20 18:45:02 +01:00
Strek
febba57eec chore: remove labeler (#5748) 2023-03-19 12:26:11 +05:30
Dan Abramov
dd65dcac3b Move beta to top level 2023-03-18 22:35:53 +00:00
dan
4c2503a83e Move the old site to another repo (#5739)
* Delete the old site from this repo

* Remove old GH workflow

* Remove other files
2023-03-18 22:28:17 +00:00
dan
42576e0e08 Bump workflow versions (#4270)
* Bump workflow versions

* Update beta_site_lint.yml

* Update nodejs.yml
2022-02-02 11:58:20 +00:00
Strek
43dae71ecb Adds linting for main branch too (#4252) 2022-01-28 18:57:48 +00:00
Strek
0b21acb5ab Added hook to validate if headings are present or not (#4143)
* Added hook to validate if headings are present or not

* Remove un wanted default param

* Add validate Ids to ci check too

* Revamp heading id generation and validation workflow

* Update validateHeadingIDs.js
2022-01-18 17:28:11 +00:00
Soichiro Miki
d216582ff9 Fix workflow file name (#4192) 2021-12-21 14:29:24 +05:30
Strek
49a552c1c1 Fix prettier CI and add it to pre commit (#4100)
* Add prettier before commit and during CI

* Add workflow

* Reverse merge main to branch

* dry run prettier

* dry run prettier

* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine

* Revert "[warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine"

This reverts commit 43dbe9ed3f.

* Revert "dry run prettier"

This reverts commit b62948042c.

* Revert "dry run prettier"

This reverts commit 382f9a4691.

* Revert "Reverse merge main to branch"

This reverts commit 43667eaf29.

* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine
2021-11-15 18:23:25 +00:00
Dan Abramov
196edb3022 Bump action version 2021-11-06 21:06:52 +00:00
Dan Abramov
695efe3069 here we go again 2021-11-06 20:28:27 +00:00
Dan Abramov
fa91a189cc lol this time should work 2021-11-06 20:24:05 +00:00
Dan Abramov
ac4b8ecec7 Maybe this works 2021-11-06 20:18:51 +00:00
Dan Abramov
891f62df90 oops 2021-11-06 20:13:25 +00:00
Dan Abramov
fed73bfa4c Maybe fix 2021-11-06 20:05:41 +00:00
Dan Abramov
25ac9d06da Try to fix it 2021-11-06 19:58:12 +00:00
Dan Abramov
6a9f6c83ef Try this instead 2021-11-06 19:23:31 +00:00
Dan Abramov
9a48b5575d Maybe this works 2021-11-06 18:50:48 +00:00
Dan Abramov
019eb6aff4 Fix path 2021-11-06 18:38:02 +00:00
Dan Abramov
4fcc57b97a Fix path 2021-11-06 18:22:39 +00:00
Dan Abramov
e750b8ed0b Try to split workflows 2021-11-06 18:20:07 +00:00
Dan Abramov
3f3a13cf15 Fix labeler workflow 2021-11-06 17:53:27 +00:00
Dan Abramov
71ef15cd72 Nicer formatting 2021-11-06 17:41:08 +00:00
Dan Abramov
7b245262df Maybe fix 2021-11-06 17:14:20 +00:00
Dan Abramov
27d9ca863c Fix labeler config 2021-11-06 17:03:08 +00:00