Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/changes-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ concurrency:
jobs:
check:
name: 📝 Change File Check
# TODO: Temporarily only run on my PRs for testing purposes
if: github.repository == 'remix-run/react-router' && github.event.pull_request.user.login == 'brophdawg11'
if: github.repository == 'remix-run/react-router'
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
13 changes: 6 additions & 7 deletions scripts/changes/check-pr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,22 @@ const COMMENT_MARKER = "<!-- change-file-check -->";
const COMMENT_FOUND = `${COMMENT_MARKER}
### ✅ Change File Found

A \`.changes\` file has been found in this PR. Thanks!`;
A [change file](https://github.com/remix-run/react-router/blob/main/docs/community/contributing.md#change-files) file exists in this PR. Thanks!`;

const COMMENT_MISSING = `${COMMENT_MARKER}
### 📝 No Change File Found
### ⚠️ No Change File Found

This PR doesn't include a change file which is used for automated release notes.
If your change affects users, please add one (or more) and commit the generated file(s).
This PR doesn't include a [change file](https://github.com/remix-run/react-router/blob/main/docs/community/contributing.md#change-files) which is used for automated release notes.
If your change affects users, please add one (or more) change files and commit the generated file(s).

\`\`\`sh
pnpm run changes:add
\`\`\`

> This script requires Node 24+. If you are on a lower version, please [add a file manually](https://reactrouter.com/community/contributing#change-files)
> This script requires Node 24+. If you are on a lower version, please [add a file manually](https://github.com/remix-run/react-router/blob/main/docs/community/contributing.md#change-files)

> Not every PR needs a change file — you can skip this step if the change is internal-only
> (tests, tooling, docs)\
`;
> (tests, tooling, docs)`;

// Matches packages/*/.changes/*.md but not .gitkeep
const CHANGE_FILE_RE = /^packages\/[^/]+\/\.changes\/[^/]+\.md$/;
Expand Down
Loading