mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Compare commits
6
Commits
v1
..
pkg-pr-new
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4392ca0f8 | ||
|
|
f50762a5f9 | ||
|
|
962764bc54 | ||
|
|
79a0643eb4 | ||
|
|
4f914b551a | ||
|
|
cf4be527b8 |
@@ -2,4 +2,3 @@
|
||||
/action.yml @Andarist @bluwy @emmatown
|
||||
/scripts/bump.ts @Andarist @bluwy @emmatown
|
||||
/scripts/release.ts @Andarist @bluwy @emmatown
|
||||
/scripts/release-pr.ts @Andarist @bluwy @emmatown
|
||||
|
||||
@@ -67,27 +67,11 @@ jobs:
|
||||
- name: Typecheck
|
||||
run: pnpm typecheck
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
timeout-minutes: 20
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: ./.github/actions/ci-setup
|
||||
|
||||
- name: Format
|
||||
run: pnpm format
|
||||
|
||||
ci-ok:
|
||||
name: CI OK
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs: [lint-workflows, test, typecheck, lint]
|
||||
needs: [lint-workflows, test, typecheck]
|
||||
steps:
|
||||
- name: Exit with error if some jobs are not successful
|
||||
run: exit 1
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
name: pkg-pr-new
|
||||
|
||||
on: pull_request
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: ./.github/actions/ci-setup
|
||||
with:
|
||||
skip-cache: true # avoid cache poisoning attacks
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- run:
|
||||
| # zizmor: ignore[use-trusted-publishing] we're not publishing to npm here
|
||||
pnpm exec pkg-pr-new publish --pnpm --packageManager=pnpm --commentWithDev --commentWithSha --no-compact --no-template
|
||||
@@ -16,7 +16,6 @@ jobs:
|
||||
version:
|
||||
name: Version
|
||||
runs-on: ubuntu-latest
|
||||
environment: version
|
||||
timeout-minutes: 20
|
||||
outputs:
|
||||
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
|
||||
@@ -37,17 +36,10 @@ jobs:
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
|
||||
id: app-token
|
||||
with:
|
||||
client-id: ${{ vars.APP_CLIENT_ID }}
|
||||
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Create or update release pull request
|
||||
id: changesets
|
||||
uses: ./
|
||||
with:
|
||||
github-token: ${{ steps.app-token.outputs.token }}
|
||||
version: pnpm bump
|
||||
|
||||
publish:
|
||||
|
||||
@@ -1,242 +0,0 @@
|
||||
name: Release PR
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
release_check:
|
||||
name: Validate release request
|
||||
if: github.repository == 'changesets/action' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/release-pr')
|
||||
timeout-minutes: 5
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read # to inspect the pull request commit state (changesets/action)
|
||||
issues: write # to add and remove reactions on the triggering comment (changesets/action)
|
||||
pull-requests: read # to inspect the pull request head state (changesets/action)
|
||||
|
||||
steps:
|
||||
- id: report_in_progress
|
||||
run: |
|
||||
in_progress_reaction_id=$(gh api "/repos/$GH_REPO/issues/comments/$COMMENT_ID/reactions" -f content='eyes' --jq '.id')
|
||||
echo "in_progress_reaction_id=$in_progress_reaction_id" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
COMMENT_ID: ${{ github.event.comment.id }}
|
||||
|
||||
- id: parse_command
|
||||
run: |
|
||||
if [[ "$COMMENT_BODY" =~ ^/release-pr[[:space:]]+([0-9a-fA-F]{7,40})[[:space:]]*$ ]]
|
||||
then
|
||||
echo "requested_sha=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "Expected '/release-pr <sha>' where <sha> is a 7-40 character commit SHA."
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
COMMENT_BODY: ${{ github.event.comment.body }}
|
||||
|
||||
- id: check_authorization
|
||||
run: |
|
||||
if [[ "$AUTHOR_ASSOCIATION" == 'MEMBER' || "$AUTHOR_ASSOCIATION" == 'OWNER' || "$AUTHOR_ASSOCIATION" == 'COLLABORATOR' ]]
|
||||
then
|
||||
echo "User is authorized to release"
|
||||
else
|
||||
echo "User is not authorized to release"
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
||||
|
||||
- id: resolve_requested_sha
|
||||
run: |
|
||||
requested_sha=$(echo "$REQUESTED_SHA" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
mapfile -t matches < <(
|
||||
gh api "/repos/$GH_REPO/pulls/$ISSUE_NUMBER/commits" --paginate --jq '.[].sha' |
|
||||
awk -v sha="$requested_sha" 'index(tolower($0), sha) == 1 { print $0 }'
|
||||
)
|
||||
|
||||
if [[ ${#matches[@]} -eq 0 ]]
|
||||
then
|
||||
echo "Requested SHA $REQUESTED_SHA is not part of this pull request."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ${#matches[@]} -gt 1 ]]
|
||||
then
|
||||
echo "Requested SHA $REQUESTED_SHA is ambiguous for this pull request."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
resolved_sha="${matches[0]}"
|
||||
pr_head_sha=$(gh pr view "$ISSUE_NUMBER" --json headRefOid --jq '.headRefOid')
|
||||
|
||||
if [[ "$resolved_sha" != "$pr_head_sha" ]]
|
||||
then
|
||||
echo "Requested SHA $resolved_sha is not the current PR head $pr_head_sha."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "resolved_sha=$resolved_sha" >> "$GITHUB_OUTPUT"
|
||||
echo "pr_head_sha=$pr_head_sha" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
REQUESTED_SHA: ${{ steps.parse_command.outputs.requested_sha }}
|
||||
|
||||
- id: get_pr_head_repository
|
||||
run: |
|
||||
head_repository=$(gh pr view "$ISSUE_NUMBER" --json headRepositoryOwner,headRepository --jq '.headRepositoryOwner.login + "/" + .headRepository.name')
|
||||
echo "head_repository=$head_repository" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
|
||||
outputs:
|
||||
in_progress_reaction_id: ${{ steps.report_in_progress.outputs.in_progress_reaction_id }}
|
||||
requested_sha: ${{ steps.parse_command.outputs.requested_sha }}
|
||||
resolved_sha: ${{ steps.resolve_requested_sha.outputs.resolved_sha }}
|
||||
pr_head_sha: ${{ steps.resolve_requested_sha.outputs.pr_head_sha }}
|
||||
head_repository: ${{ steps.get_pr_head_repository.outputs.head_repository }}
|
||||
|
||||
release:
|
||||
name: Release snapshot
|
||||
if: github.repository == 'changesets/action'
|
||||
timeout-minutes: 20
|
||||
runs-on: ubuntu-latest
|
||||
needs: release_check
|
||||
|
||||
permissions:
|
||||
contents: write # to create the release commit and publish snapshot artifacts (changesets/action)
|
||||
issues: write # to add and remove reactions on the triggering comment (changesets/action)
|
||||
pull-requests: write # to comment on the pull request with the release result (changesets/action)
|
||||
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: ./.github/actions/ci-setup
|
||||
with:
|
||||
skip-cache: true # avoid cache poisoning attacks
|
||||
|
||||
- name: Fetch validated commit from pull request head repository
|
||||
run: |
|
||||
git remote add pr-head "https://github.com/$HEAD_REPOSITORY.git"
|
||||
git fetch --no-tags pr-head "$RESOLVED_SHA"
|
||||
env:
|
||||
HEAD_REPOSITORY: ${{ needs.release_check.outputs.head_repository }}
|
||||
RESOLVED_SHA: ${{ needs.release_check.outputs.resolved_sha }}
|
||||
|
||||
- name: Checkout validated commit
|
||||
run: git checkout --detach "$RESOLVED_SHA"
|
||||
env:
|
||||
RESOLVED_SHA: ${{ needs.release_check.outputs.resolved_sha }}
|
||||
|
||||
- name: Check if Version Packages PR
|
||||
id: check_version_packages
|
||||
run: |
|
||||
version_packages=$(gh pr view "$ISSUE_NUMBER" --json headRefName --jq '.headRefName|startswith("changeset-release/")')
|
||||
echo "version_packages=$version_packages" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
|
||||
- name: Reset Version Packages PR
|
||||
if: steps.check_version_packages.outputs.version_packages == 'true'
|
||||
run: git reset --hard HEAD~1
|
||||
|
||||
- name: Create snapshot version
|
||||
run: pnpm changeset version --snapshot "pr$ISSUE_NUMBER"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Setup Git user
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Release snapshot version
|
||||
run: pnpm release:pr
|
||||
|
||||
- name: Add success reaction
|
||||
run: gh api "/repos/$GH_REPO/issues/comments/$COMMENT_ID/reactions" -f content='rocket'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
COMMENT_ID: ${{ github.event.comment.id }}
|
||||
|
||||
- name: Remove in-progress reaction
|
||||
run: gh api -X DELETE "/repos/$GH_REPO/issues/comments/$COMMENT_ID/reactions/$IN_PROGRESS_REACTION_ID"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
COMMENT_ID: ${{ github.event.comment.id }}
|
||||
IN_PROGRESS_REACTION_ID: ${{ needs.release_check.outputs.in_progress_reaction_id }}
|
||||
|
||||
- name: Comment success
|
||||
run: |
|
||||
published_commit="$(git rev-parse HEAD)"
|
||||
body="The release for \`$RESOLVED_SHA\` triggered by [this comment]($COMMENT_URL) has [succeeded]($RUN_URL). Published commit: [$GH_REPO@$published_commit](https://github.com/$GH_REPO/commit/$published_commit)."
|
||||
gh pr comment "$ISSUE_NUMBER" --body "$body"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
COMMENT_URL: ${{ github.event.comment.url }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
RESOLVED_SHA: ${{ needs.release_check.outputs.resolved_sha }}
|
||||
|
||||
report-failure-if-needed:
|
||||
name: Report failure
|
||||
needs: [release_check, release]
|
||||
timeout-minutes: 2
|
||||
runs-on: ubuntu-latest
|
||||
if: failure() && github.repository == 'changesets/action' && (needs.release_check.result == 'failure' || needs.release.result == 'failure')
|
||||
|
||||
permissions:
|
||||
issues: write # to add and remove reactions on the triggering comment (changesets/action)
|
||||
pull-requests: write # to comment on the pull request with the failure result (changesets/action)
|
||||
|
||||
steps:
|
||||
- name: Add failure reaction
|
||||
run: gh api "/repos/$GH_REPO/issues/comments/$COMMENT_ID/reactions" -f content='-1'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
COMMENT_ID: ${{ github.event.comment.id }}
|
||||
|
||||
- name: Remove in-progress reaction
|
||||
run: gh api -X DELETE "/repos/$GH_REPO/issues/comments/$COMMENT_ID/reactions/$IN_PROGRESS_REACTION_ID"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
COMMENT_ID: ${{ github.event.comment.id }}
|
||||
IN_PROGRESS_REACTION_ID: ${{ needs.release_check.outputs.in_progress_reaction_id }}
|
||||
|
||||
- name: Comment failure
|
||||
run: |
|
||||
body="The release for \`$REQUESTED_SHA\` triggered by [this comment]($COMMENT_URL) has [failed]($RUN_URL)."
|
||||
gh pr comment "$ISSUE_NUMBER" --body "$body"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
COMMENT_URL: ${{ github.event.comment.url }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
REQUESTED_SHA: ${{ needs.release_check.outputs.requested_sha }}
|
||||
@@ -1,23 +1,5 @@
|
||||
# @changesets/action
|
||||
|
||||
## 1.9.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#636](https://github.com/changesets/action/pull/636) [`b072bcc`](https://github.com/changesets/action/commit/b072bccc4c664a373c42168eed9139dce1e003b1) Thanks [@bluwy](https://github.com/bluwy)! - Add a new `@changesets/action/pr-comment` sub-action to comment on PRs
|
||||
|
||||
- [#625](https://github.com/changesets/action/pull/625) [`8795eee`](https://github.com/changesets/action/commit/8795eee5eee884e887d352ac673a515ffe35aaa6) Thanks [@bluwy](https://github.com/bluwy)! - Add a new `@changesets/action/pr-status` sub-action to generate the changeset status comment for PRs as an alternative to the [Changesets Bot](https://github.com/apps/changeset-bot).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#535](https://github.com/changesets/action/pull/535) [`34f64f6`](https://github.com/changesets/action/commit/34f64f6e2e1e47ddc183f174aa27c197aa47f520) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with GitHub releases not being created for successfully published packages when _some_ packages failed to be published to the registry.
|
||||
|
||||
- [#632](https://github.com/changesets/action/pull/632) [`1d54b9e`](https://github.com/changesets/action/commit/1d54b9e660e435237accbcae0b4581af3be641b4) Thanks [@bluwy](https://github.com/bluwy)! - Simplify internal implementation to get changelog entries for a package version
|
||||
|
||||
- [#629](https://github.com/changesets/action/pull/629) [`e0c90aa`](https://github.com/changesets/action/commit/e0c90aa7fbd0cc26931a679c5abe9bbc0deb0b50) Thanks [@bluwy](https://github.com/bluwy)! - Fix custom version and publish command argument parsing
|
||||
|
||||
- [#645](https://github.com/changesets/action/pull/645) [`f9585d9`](https://github.com/changesets/action/commit/f9585d966a9c7d2f668b97199990de6f885823cf) Thanks [@Andarist](https://github.com/Andarist)! - Improved force-push handling when using `commitMode: "github-api"` so updating an existing branch no longer temporarily resets the target branch to the base commit, avoiding cases where GitHub closes open pull requests during the update. This should remove a possibility of a GitHub state race that caused the force-pushed PRs not being reopened.
|
||||
|
||||
## 1.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -2,11 +2,6 @@
|
||||
|
||||
This action for [Changesets](https://github.com/changesets/changesets) creates a pull request with all of the package versions updated and changelogs updated and when there are new changesets on [your configured `baseBranch`](https://github.com/changesets/changesets/blob/main/docs/config-file-options.md#basebranch-git-branch-name), the PR will be updated. When you're ready, you can merge the pull request and you can either publish the packages to npm manually or setup the action to do it for you.
|
||||
|
||||
There are also sub-actions hosted in this repository. Check out their respective READMEs for more details:
|
||||
|
||||
- [pr-status](./pr-status/README.md): Generate changeset status in PRs.
|
||||
- [pr-comment](./pr-comment/README.md): Comment on PRs.
|
||||
|
||||
## Usage
|
||||
|
||||
### Inputs
|
||||
|
||||
Vendored
-18
File diff suppressed because one or more lines are too long
Vendored
-150
File diff suppressed because one or more lines are too long
Vendored
-96
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{a as e,c as t,n,o as r,s as i,t as a}from"./github-DTObde6f.js";try{await o()}catch(e){i(e.message)}async function o(){let i=a.payload.pull_request;if(!i)throw Error("This action should only be run on `pull_request_target` or `pull_request` events");let o=e(`github-token`,{required:!0}),c=e(`body`,{required:!0}),l=e(`update-id`),u=l?s(l):null,d=u?`${u}\n\n${c}`:c,f={repo:i.base.repo.name,owner:i.base.repo.owner.login,issue_number:i.number,body:d},p=n(o),m;u&&(r(`Checking for existing comment...`),m=await p.rest.issues.listComments({repo:i.base.repo.name,owner:i.base.repo.owner.login,issue_number:i.number}).then(e=>e.data.find(e=>e.body?.includes(u))?.id)),m?(r(`Updating existing comment (id: ${m})...`),await p.rest.issues.updateComment({...f,comment_id:m}),t(`comment-id`,m)):(r(`Creating new comment...`),t(`comment-id`,(await p.rest.issues.createComment(f)).data.id)),r(`Done!`)}function s(e){let t=`changesets-action-pr-comment`;return t===e?`<!-- ${t} -->`:`<!-- ${t}:${e} -->`}export{};
|
||||
Vendored
-39
File diff suppressed because one or more lines are too long
+21
-18
@@ -1,9 +1,13 @@
|
||||
{
|
||||
"name": "@changesets/action",
|
||||
"version": "1.9.0",
|
||||
"version": "1.8.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"exports": "./dist/index.js",
|
||||
"files": [
|
||||
"dist",
|
||||
"action.yml"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rolldown -c",
|
||||
"test": "vitest",
|
||||
@@ -13,38 +17,37 @@
|
||||
"format:fix": "oxfmt",
|
||||
"changeset": "changeset",
|
||||
"bump": "node --experimental-strip-types ./scripts/bump.ts",
|
||||
"release": "node --experimental-strip-types ./scripts/release.ts",
|
||||
"release:pr": "node --experimental-strip-types ./scripts/release-pr.ts"
|
||||
"release": "node --experimental-strip-types ./scripts/release.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.1",
|
||||
"@actions/exec": "^3.0.0",
|
||||
"@actions/github": "^9.1.1",
|
||||
"@changesets/get-release-plan": "^4.0.16",
|
||||
"@changesets/ghcommit": "^2.1.1",
|
||||
"@changesets/git": "^3.0.4",
|
||||
"@changesets/ghcommit": "^2.0.1",
|
||||
"@changesets/pre": "^2.0.2",
|
||||
"@changesets/read": "^0.6.7",
|
||||
"@changesets/read": "^0.6.5",
|
||||
"@manypkg/get-packages": "^1.1.3",
|
||||
"@octokit/core": "^7.0.6",
|
||||
"@octokit/plugin-throttling": "^11.0.3",
|
||||
"human-id": "^4.1.3",
|
||||
"markdown-table": "^3.0.4",
|
||||
"semver": "^7.8.0",
|
||||
"tinyexec": "^1.1.2"
|
||||
"@types/mdast": "^3.0.0",
|
||||
"mdast-util-to-string": "^1.0.6",
|
||||
"remark-parse": "^7.0.1",
|
||||
"remark-stringify": "^7.0.3",
|
||||
"semver": "^7.5.3",
|
||||
"unified": "^8.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@changesets/changelog-github": "^0.7.0",
|
||||
"@changesets/cli": "^2.31.0",
|
||||
"@changesets/changelog-github": "^0.5.1",
|
||||
"@changesets/cli": "^2.29.3",
|
||||
"@changesets/types": "^6.1.0",
|
||||
"@changesets/write": "^0.4.0",
|
||||
"@tsconfig/node24": "^24.0.4",
|
||||
"@types/node": "^24.12.4",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@types/node": "^24.12.2",
|
||||
"@types/semver": "^7.5.0",
|
||||
"fs-fixture": "^2.13.0",
|
||||
"oxfmt": "^0.48.0",
|
||||
"pkg-pr-new": "^0.0.71",
|
||||
"rolldown": "^1.0.1",
|
||||
"typescript": "^6.0.3",
|
||||
"typescript": "^5.8.3",
|
||||
"vitest": "^4.1.6"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Generated
+385
-93
@@ -22,20 +22,14 @@ importers:
|
||||
'@actions/github':
|
||||
specifier: ^9.1.1
|
||||
version: 9.1.1
|
||||
'@changesets/get-release-plan':
|
||||
specifier: ^4.0.16
|
||||
version: 4.0.16
|
||||
'@changesets/ghcommit':
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
'@changesets/git':
|
||||
specifier: ^3.0.4
|
||||
version: 3.0.4
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
'@changesets/pre':
|
||||
specifier: ^2.0.2
|
||||
version: 2.0.2
|
||||
'@changesets/read':
|
||||
specifier: ^0.6.7
|
||||
specifier: ^0.6.5
|
||||
version: 0.6.7
|
||||
'@manypkg/get-packages':
|
||||
specifier: ^1.1.3
|
||||
@@ -46,39 +40,42 @@ importers:
|
||||
'@octokit/plugin-throttling':
|
||||
specifier: ^11.0.3
|
||||
version: 11.0.3(@octokit/core@7.0.6)
|
||||
human-id:
|
||||
specifier: ^4.1.3
|
||||
version: 4.1.3
|
||||
markdown-table:
|
||||
specifier: ^3.0.4
|
||||
version: 3.0.4
|
||||
'@types/mdast':
|
||||
specifier: ^3.0.0
|
||||
version: 3.0.15
|
||||
mdast-util-to-string:
|
||||
specifier: ^1.0.6
|
||||
version: 1.1.0
|
||||
remark-parse:
|
||||
specifier: ^7.0.1
|
||||
version: 7.0.2
|
||||
remark-stringify:
|
||||
specifier: ^7.0.3
|
||||
version: 7.0.4
|
||||
semver:
|
||||
specifier: ^7.8.0
|
||||
version: 7.8.0
|
||||
tinyexec:
|
||||
specifier: ^1.1.2
|
||||
version: 1.1.2
|
||||
specifier: ^7.5.3
|
||||
version: 7.7.4
|
||||
unified:
|
||||
specifier: ^8.3.2
|
||||
version: 8.4.2
|
||||
devDependencies:
|
||||
'@changesets/changelog-github':
|
||||
specifier: ^0.7.0
|
||||
version: 0.7.0
|
||||
specifier: ^0.5.1
|
||||
version: 0.5.2
|
||||
'@changesets/cli':
|
||||
specifier: ^2.31.0
|
||||
version: 2.31.0(@types/node@24.12.4)
|
||||
specifier: ^2.29.3
|
||||
version: 2.31.0(@types/node@24.12.2)
|
||||
'@changesets/types':
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0
|
||||
'@changesets/write':
|
||||
specifier: ^0.4.0
|
||||
version: 0.4.0
|
||||
'@tsconfig/node24':
|
||||
specifier: ^24.0.4
|
||||
version: 24.0.4
|
||||
'@types/node':
|
||||
specifier: ^24.12.4
|
||||
version: 24.12.4
|
||||
specifier: ^24.12.2
|
||||
version: 24.12.2
|
||||
'@types/semver':
|
||||
specifier: ^7.7.1
|
||||
specifier: ^7.5.0
|
||||
version: 7.7.1
|
||||
fs-fixture:
|
||||
specifier: ^2.13.0
|
||||
@@ -86,15 +83,18 @@ importers:
|
||||
oxfmt:
|
||||
specifier: ^0.48.0
|
||||
version: 0.48.0
|
||||
pkg-pr-new:
|
||||
specifier: ^0.0.71
|
||||
version: 0.0.71
|
||||
rolldown:
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
typescript:
|
||||
specifier: ^6.0.3
|
||||
version: 6.0.3
|
||||
specifier: ^5.8.3
|
||||
version: 5.9.3
|
||||
vitest:
|
||||
specifier: ^4.1.6
|
||||
version: 4.1.6(@types/node@24.12.4)(vite@8.0.13)
|
||||
version: 4.1.6(@types/node@24.12.2)(vite@8.0.13)
|
||||
|
||||
packages:
|
||||
|
||||
@@ -129,8 +129,8 @@ packages:
|
||||
'@changesets/changelog-git@0.2.1':
|
||||
resolution: {integrity: sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==}
|
||||
|
||||
'@changesets/changelog-github@0.7.0':
|
||||
resolution: {integrity: sha512-rBsbRvc4TVn+FvFnOVM3LxlFJfTXXCp8gfVJ+0BubxWNSVnLuAzowi5j+IEraLLP52w8AAs9QfKbPS3MMiXQJA==}
|
||||
'@changesets/changelog-github@0.5.2':
|
||||
resolution: {integrity: sha512-HeGeDl8HaIGj9fQHo/tv5XKQ2SNEi9+9yl1Bss1jttPqeiASRXhfi0A2wv8yFKCp07kR1gpOI5ge6+CWNm1jPw==}
|
||||
|
||||
'@changesets/cli@2.31.0':
|
||||
resolution: {integrity: sha512-AhI4enNTgHu2IZr6K4WZyf0EPch4XVMn1yOMFmCD9gsfBGqMYaHXls5HyDv6/CL5axVQABz68eG30eCtbr2wFg==}
|
||||
@@ -145,8 +145,8 @@ packages:
|
||||
'@changesets/get-dependents-graph@2.1.4':
|
||||
resolution: {integrity: sha512-ZsS00x6WvmHq3sQv8oCMwL0f/z3wbXCVuSVTJwCnnmbC/iBdNJGFx1EcbMG4PC6sXRyH69liM4A2WKXzn/kRPg==}
|
||||
|
||||
'@changesets/get-github-info@0.8.0':
|
||||
resolution: {integrity: sha512-cRnC+xdF0JIik7coko3iUP9qbnfi1iJQ3sAa6dE+Tx3+ET8bjFEm63PA4WEohgjYcmsOikPHWzPsMWWiZmntOQ==}
|
||||
'@changesets/get-github-info@0.7.0':
|
||||
resolution: {integrity: sha512-+i67Bmhfj9V4KfDeS1+Tz3iF32btKZB2AAx+cYMqDSRFP7r3/ZdGbjCo+c6qkyViN9ygDuBjzageuPGJtKGe5A==}
|
||||
|
||||
'@changesets/get-release-plan@4.0.16':
|
||||
resolution: {integrity: sha512-2K5Om6CrMPm45rtvckfzWo7e9jOVCKLCnXia5eUPaURH7/LWzri7pK1TycdzAuAtehLkW7VPbWLCSExTHmiI6g==}
|
||||
@@ -154,8 +154,8 @@ packages:
|
||||
'@changesets/get-version-range-type@0.4.0':
|
||||
resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==}
|
||||
|
||||
'@changesets/ghcommit@2.1.1':
|
||||
resolution: {integrity: sha512-rtdVQucW4O1328NiNdGSLWlsaVu/B9faNGeDrrQqtf0FDqUN1WhbtHuofjVmSI2VQELgM2F4IjfWu6dji5CwGA==}
|
||||
'@changesets/ghcommit@2.0.1':
|
||||
resolution: {integrity: sha512-37r7XmeL/V1WZfhTVXM7ILwuewbRdZkBBzHwdeMUIoi738Ujcmqlj00JbI5zrDZ0uZW/skrYqz7RG3+B7kH49Q==}
|
||||
|
||||
'@changesets/git@3.0.4':
|
||||
resolution: {integrity: sha512-BXANzRFkX+XcC1q/d27NKvlJ1yf7PSAgi8JG6dt8EfbHFHi4neau7mufcSca5zRhwOL8j9s6EqsxmT+s+/E6Sw==}
|
||||
@@ -270,8 +270,8 @@ packages:
|
||||
resolution: {integrity: sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==}
|
||||
engines: {node: '>= 20'}
|
||||
|
||||
'@octokit/request@10.0.9':
|
||||
resolution: {integrity: sha512-o8Bi3f608eyM+7BmBiUWxFsdjLb3/ym1cQek5LZOv9KkZcxRrHCPhhRzm6xjO6HVZ85ItD6+sTsjxo821SVa/A==}
|
||||
'@octokit/request@10.0.8':
|
||||
resolution: {integrity: sha512-SJZNwY9pur9Agf7l87ywFi14W+Hd9Jg6Ifivsd33+/bGUQIjNujdFiXII2/qSlN2ybqUHfp5xpekMEjIBTjlSw==}
|
||||
engines: {node: '>= 20'}
|
||||
|
||||
'@octokit/types@16.0.0':
|
||||
@@ -497,15 +497,12 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@rolldown/pluginutils@1.0.1':
|
||||
resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}
|
||||
'@rolldown/pluginutils@1.0.0':
|
||||
resolution: {integrity: sha512-aKs/3GSWyV0mrhNmt/96/Z3yczC3yvrzYATCiCXQebBsGyYzjNdUphRVLeJQ67ySKVXRfMxt2lm12pmXvbPFQQ==}
|
||||
|
||||
'@standard-schema/spec@1.1.0':
|
||||
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
|
||||
|
||||
'@tsconfig/node24@24.0.4':
|
||||
resolution: {integrity: sha512-2A933l5P5oCbv6qSxHs7ckKwobs8BDAe9SJ/Xr2Hy+nDlwmLE1GhFh/g/vXGRZWgxBg9nX/5piDtHR9Dkw/XuA==}
|
||||
|
||||
'@tybys/wasm-util@0.10.2':
|
||||
resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==}
|
||||
|
||||
@@ -518,15 +515,21 @@ packages:
|
||||
'@types/estree@1.0.9':
|
||||
resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
|
||||
|
||||
'@types/mdast@3.0.15':
|
||||
resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==}
|
||||
|
||||
'@types/node@12.20.55':
|
||||
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
|
||||
|
||||
'@types/node@24.12.4':
|
||||
resolution: {integrity: sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==}
|
||||
'@types/node@24.12.2':
|
||||
resolution: {integrity: sha512-A1sre26ke7HDIuY/M23nd9gfB+nrmhtYyMINbjI1zHJxYteKR6qSMX56FsmjMcDb3SMcjJg5BiRRgOCC/yBD0g==}
|
||||
|
||||
'@types/semver@7.7.1':
|
||||
resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==}
|
||||
|
||||
'@types/unist@2.0.11':
|
||||
resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==}
|
||||
|
||||
'@vitest/expect@4.1.6':
|
||||
resolution: {integrity: sha512-7EHDquPthALSV0jhhjgEW8FXaviMx7rSqu8W6oqCoAuOhKov814P99QDV1pxMA3QPv21YudvJngIhjrNI4opLg==}
|
||||
|
||||
@@ -589,6 +592,9 @@ packages:
|
||||
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
bail@1.0.5:
|
||||
resolution: {integrity: sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==}
|
||||
|
||||
base64-js@1.5.1:
|
||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||
|
||||
@@ -621,19 +627,33 @@ packages:
|
||||
resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
ccount@1.1.0:
|
||||
resolution: {integrity: sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==}
|
||||
|
||||
chai@6.2.2:
|
||||
resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
character-entities-html4@1.1.4:
|
||||
resolution: {integrity: sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g==}
|
||||
|
||||
character-entities-legacy@1.1.4:
|
||||
resolution: {integrity: sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==}
|
||||
|
||||
character-entities@1.2.4:
|
||||
resolution: {integrity: sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==}
|
||||
|
||||
character-reference-invalid@1.1.4:
|
||||
resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==}
|
||||
|
||||
chardet@2.1.1:
|
||||
resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==}
|
||||
|
||||
clean-git-ref@2.0.1:
|
||||
resolution: {integrity: sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw==}
|
||||
|
||||
content-type@2.0.0:
|
||||
resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==}
|
||||
engines: {node: '>=18'}
|
||||
collapse-white-space@1.0.6:
|
||||
resolution: {integrity: sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==}
|
||||
|
||||
convert-source-map@2.0.0:
|
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
|
||||
@@ -716,6 +736,9 @@ packages:
|
||||
resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
|
||||
extend@3.0.2:
|
||||
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
|
||||
|
||||
extendable-error@0.1.7:
|
||||
resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==}
|
||||
|
||||
@@ -826,10 +849,27 @@ packages:
|
||||
inherits@2.0.4:
|
||||
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
|
||||
|
||||
is-alphabetical@1.0.4:
|
||||
resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==}
|
||||
|
||||
is-alphanumeric@1.0.0:
|
||||
resolution: {integrity: sha512-ZmRL7++ZkcMOfDuWZuMJyIVLr2keE1o/DeNWh1EmgqGhUcV+9BIVsx0BcSBOHTZqzjs4+dISzr2KAeBEWGgXeA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
is-alphanumerical@1.0.4:
|
||||
resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==}
|
||||
|
||||
is-buffer@2.0.5:
|
||||
resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}
|
||||
engines: {node: '>=4'}
|
||||
|
||||
is-callable@1.2.7:
|
||||
resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
is-decimal@1.0.4:
|
||||
resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==}
|
||||
|
||||
is-extglob@2.1.1:
|
||||
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@@ -838,10 +878,17 @@ packages:
|
||||
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
is-hexadecimal@1.0.4:
|
||||
resolution: {integrity: sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==}
|
||||
|
||||
is-number@7.0.0:
|
||||
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
|
||||
engines: {node: '>=0.12.0'}
|
||||
|
||||
is-plain-obj@2.1.0:
|
||||
resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
is-subdir@1.2.0:
|
||||
resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -850,18 +897,24 @@ packages:
|
||||
resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
is-whitespace-character@1.0.4:
|
||||
resolution: {integrity: sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==}
|
||||
|
||||
is-windows@1.0.2:
|
||||
resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
is-word-character@1.0.4:
|
||||
resolution: {integrity: sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==}
|
||||
|
||||
isarray@2.0.5:
|
||||
resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
|
||||
|
||||
isexe@2.0.0:
|
||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||
|
||||
isomorphic-git@1.38.1:
|
||||
resolution: {integrity: sha512-Vd2u5qDLa04fA/h5nUMU5UuffPXqg+3D3bJIV3n7Sno2qS3XMinUXRvNHrGPVy2kkC1ad5SPCC3WcpXjn0L9oQ==}
|
||||
isomorphic-git@1.37.6:
|
||||
resolution: {integrity: sha512-qr1NFCPsVTZ6YGqTXw0CzamnsHyH9QQ1OTEfeXIweSljRUMzuHFCJdUn0wc6OcjtTDns6knxjPb7N6LmJeftOA==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
@@ -886,16 +939,28 @@ packages:
|
||||
lodash.startcase@4.4.0:
|
||||
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
|
||||
|
||||
longest-streak@2.0.4:
|
||||
resolution: {integrity: sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==}
|
||||
|
||||
magic-string@0.30.21:
|
||||
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
|
||||
|
||||
markdown-table@3.0.4:
|
||||
resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}
|
||||
markdown-escapes@1.0.4:
|
||||
resolution: {integrity: sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==}
|
||||
|
||||
markdown-table@1.1.3:
|
||||
resolution: {integrity: sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==}
|
||||
|
||||
math-intrinsics@1.1.0:
|
||||
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
mdast-util-compact@1.0.4:
|
||||
resolution: {integrity: sha512-3YDMQHI5vRiS2uygEFYaqckibpJtKq5Sj2c8JioeOQBU6INpKbdWzfyLqFFnDwEcEnRFIdMsguzs5pC1Jp4Isg==}
|
||||
|
||||
mdast-util-to-string@1.1.0:
|
||||
resolution: {integrity: sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==}
|
||||
|
||||
merge2@1.4.1:
|
||||
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
|
||||
engines: {node: '>= 8'}
|
||||
@@ -967,6 +1032,9 @@ packages:
|
||||
pako@1.0.11:
|
||||
resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==}
|
||||
|
||||
parse-entities@1.2.2:
|
||||
resolution: {integrity: sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg==}
|
||||
|
||||
path-exists@4.0.0:
|
||||
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -997,6 +1065,10 @@ packages:
|
||||
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
pkg-pr-new@0.0.71:
|
||||
resolution: {integrity: sha512-Ln7I7NaOXN6CjBLVrNqsWOo6mIaNW4chH4eCR2t4tnQSmYtyQiWCqlMG6bL2JYCT1MOiKEiDObnnzePGh0TNFQ==}
|
||||
hasBin: true
|
||||
|
||||
possible-typed-array-names@1.1.0:
|
||||
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@@ -1024,6 +1096,16 @@ packages:
|
||||
resolution: {integrity: sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==}
|
||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||
|
||||
remark-parse@7.0.2:
|
||||
resolution: {integrity: sha512-9+my0lQS80IQkYXsMA8Sg6m9QfXYJBnXjWYN5U+kFc5/n69t+XZVXU/ZBYr3cYH8FheEGf1v87rkFDhJ8bVgMA==}
|
||||
|
||||
remark-stringify@7.0.4:
|
||||
resolution: {integrity: sha512-qck+8NeA1D0utk1ttKcWAoHRrJxERYQzkHDyn+pF5Z4whX1ug98uCNPPSeFgLSaNERRxnD6oxIug6DzZQth6Pg==}
|
||||
|
||||
repeat-string@1.6.1:
|
||||
resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==}
|
||||
engines: {node: '>=0.10'}
|
||||
|
||||
resolve-from@5.0.0:
|
||||
resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -1046,8 +1128,8 @@ packages:
|
||||
safer-buffer@2.1.2:
|
||||
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
|
||||
|
||||
semver@7.8.0:
|
||||
resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==}
|
||||
semver@7.7.4:
|
||||
resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}
|
||||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
|
||||
@@ -1094,12 +1176,18 @@ packages:
|
||||
stackback@0.0.2:
|
||||
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
|
||||
|
||||
state-toggle@1.0.3:
|
||||
resolution: {integrity: sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==}
|
||||
|
||||
std-env@4.1.0:
|
||||
resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==}
|
||||
|
||||
string_decoder@1.3.0:
|
||||
resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
|
||||
|
||||
stringify-entities@2.0.0:
|
||||
resolution: {integrity: sha512-fqqhZzXyAM6pGD9lky/GOPq6V4X0SeTAFBl0iXb/BzOegl40gpf/bV3QQP7zULNYvjr6+Dx8SCaDULjVoOru0A==}
|
||||
|
||||
strip-ansi@6.0.1:
|
||||
resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -1142,6 +1230,16 @@ packages:
|
||||
tr46@0.0.3:
|
||||
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
|
||||
|
||||
trim-trailing-lines@1.1.4:
|
||||
resolution: {integrity: sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==}
|
||||
|
||||
trim@0.0.1:
|
||||
resolution: {integrity: sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==}
|
||||
deprecated: Use String.prototype.trim() instead
|
||||
|
||||
trough@1.0.5:
|
||||
resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==}
|
||||
|
||||
tslib@2.8.1:
|
||||
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
||||
|
||||
@@ -1153,8 +1251,8 @@ packages:
|
||||
resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
typescript@6.0.3:
|
||||
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
|
||||
typescript@5.9.3:
|
||||
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
@@ -1165,6 +1263,27 @@ packages:
|
||||
resolution: {integrity: sha512-ZgpWDC5gmNiuY9CnLVXEH8rl50xhRCuLNA97fAUnKi8RRuV4E6KG31pDTsLVUKnohJE0I3XDrTeEydAXRw47xg==}
|
||||
engines: {node: '>=18.17'}
|
||||
|
||||
unherit@1.1.3:
|
||||
resolution: {integrity: sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==}
|
||||
|
||||
unified@8.4.2:
|
||||
resolution: {integrity: sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==}
|
||||
|
||||
unist-util-is@3.0.0:
|
||||
resolution: {integrity: sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==}
|
||||
|
||||
unist-util-remove-position@1.1.4:
|
||||
resolution: {integrity: sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A==}
|
||||
|
||||
unist-util-stringify-position@2.0.3:
|
||||
resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==}
|
||||
|
||||
unist-util-visit-parents@2.1.2:
|
||||
resolution: {integrity: sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g==}
|
||||
|
||||
unist-util-visit@1.4.1:
|
||||
resolution: {integrity: sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw==}
|
||||
|
||||
universal-user-agent@7.0.3:
|
||||
resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==}
|
||||
|
||||
@@ -1172,6 +1291,15 @@ packages:
|
||||
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
|
||||
engines: {node: '>= 4.0.0'}
|
||||
|
||||
vfile-location@2.0.6:
|
||||
resolution: {integrity: sha512-sSFdyCP3G6Ka0CEmN83A2YCMKIieHx0EDaj5IDP4g1pa5ZJ4FJDvpO0WODLxo4LUX4oe52gmSCK7Jw4SBghqxA==}
|
||||
|
||||
vfile-message@2.0.4:
|
||||
resolution: {integrity: sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==}
|
||||
|
||||
vfile@4.2.1:
|
||||
resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==}
|
||||
|
||||
vite@8.0.13:
|
||||
resolution: {integrity: sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
@@ -1279,6 +1407,10 @@ packages:
|
||||
wrappy@1.0.2:
|
||||
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
|
||||
|
||||
xtend@4.0.2:
|
||||
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
|
||||
engines: {node: '>=0.4'}
|
||||
|
||||
snapshots:
|
||||
|
||||
'@actions/core@3.0.1':
|
||||
@@ -1296,7 +1428,7 @@ snapshots:
|
||||
'@octokit/core': 7.0.6
|
||||
'@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.6)
|
||||
'@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.6)
|
||||
'@octokit/request': 10.0.9
|
||||
'@octokit/request': 10.0.8
|
||||
'@octokit/request-error': 7.1.0
|
||||
undici: 6.25.0
|
||||
|
||||
@@ -1328,7 +1460,7 @@ snapshots:
|
||||
outdent: 0.5.0
|
||||
prettier: 2.8.8
|
||||
resolve-from: 5.0.0
|
||||
semver: 7.8.0
|
||||
semver: 7.7.4
|
||||
|
||||
'@changesets/assemble-release-plan@6.0.10':
|
||||
dependencies:
|
||||
@@ -1337,21 +1469,21 @@ snapshots:
|
||||
'@changesets/should-skip-package': 0.1.2
|
||||
'@changesets/types': 6.1.0
|
||||
'@manypkg/get-packages': 1.1.3
|
||||
semver: 7.8.0
|
||||
semver: 7.7.4
|
||||
|
||||
'@changesets/changelog-git@0.2.1':
|
||||
dependencies:
|
||||
'@changesets/types': 6.1.0
|
||||
|
||||
'@changesets/changelog-github@0.7.0':
|
||||
'@changesets/changelog-github@0.5.2':
|
||||
dependencies:
|
||||
'@changesets/get-github-info': 0.8.0
|
||||
'@changesets/get-github-info': 0.7.0
|
||||
'@changesets/types': 6.1.0
|
||||
dotenv: 8.6.0
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
|
||||
'@changesets/cli@2.31.0(@types/node@24.12.4)':
|
||||
'@changesets/cli@2.31.0(@types/node@24.12.2)':
|
||||
dependencies:
|
||||
'@changesets/apply-release-plan': 7.1.1
|
||||
'@changesets/assemble-release-plan': 6.0.10
|
||||
@@ -1367,7 +1499,7 @@ snapshots:
|
||||
'@changesets/should-skip-package': 0.1.2
|
||||
'@changesets/types': 6.1.0
|
||||
'@changesets/write': 0.4.0
|
||||
'@inquirer/external-editor': 1.0.3(@types/node@24.12.4)
|
||||
'@inquirer/external-editor': 1.0.3(@types/node@24.12.2)
|
||||
'@manypkg/get-packages': 1.1.3
|
||||
ansi-colors: 4.1.3
|
||||
enquirer: 2.4.1
|
||||
@@ -1376,7 +1508,7 @@ snapshots:
|
||||
package-manager-detector: 0.2.11
|
||||
picocolors: 1.1.1
|
||||
resolve-from: 5.0.0
|
||||
semver: 7.8.0
|
||||
semver: 7.7.4
|
||||
spawndamnit: 3.0.1
|
||||
term-size: 2.2.1
|
||||
transitivePeerDependencies:
|
||||
@@ -1402,9 +1534,9 @@ snapshots:
|
||||
'@changesets/types': 6.1.0
|
||||
'@manypkg/get-packages': 1.1.3
|
||||
picocolors: 1.1.1
|
||||
semver: 7.8.0
|
||||
semver: 7.7.4
|
||||
|
||||
'@changesets/get-github-info@0.8.0':
|
||||
'@changesets/get-github-info@0.7.0':
|
||||
dependencies:
|
||||
dataloader: 1.4.0
|
||||
node-fetch: 2.7.0
|
||||
@@ -1422,9 +1554,9 @@ snapshots:
|
||||
|
||||
'@changesets/get-version-range-type@0.4.0': {}
|
||||
|
||||
'@changesets/ghcommit@2.1.1':
|
||||
'@changesets/ghcommit@2.0.1':
|
||||
dependencies:
|
||||
isomorphic-git: 1.38.1
|
||||
isomorphic-git: 1.37.6
|
||||
|
||||
'@changesets/git@3.0.4':
|
||||
dependencies:
|
||||
@@ -1492,12 +1624,12 @@ snapshots:
|
||||
tslib: 2.8.1
|
||||
optional: true
|
||||
|
||||
'@inquirer/external-editor@1.0.3(@types/node@24.12.4)':
|
||||
'@inquirer/external-editor@1.0.3(@types/node@24.12.2)':
|
||||
dependencies:
|
||||
chardet: 2.1.1
|
||||
iconv-lite: 0.7.2
|
||||
optionalDependencies:
|
||||
'@types/node': 24.12.4
|
||||
'@types/node': 24.12.2
|
||||
|
||||
'@jridgewell/sourcemap-codec@1.5.5': {}
|
||||
|
||||
@@ -1542,7 +1674,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@octokit/auth-token': 6.0.0
|
||||
'@octokit/graphql': 9.0.3
|
||||
'@octokit/request': 10.0.9
|
||||
'@octokit/request': 10.0.8
|
||||
'@octokit/request-error': 7.1.0
|
||||
'@octokit/types': 16.0.0
|
||||
before-after-hook: 4.0.0
|
||||
@@ -1555,7 +1687,7 @@ snapshots:
|
||||
|
||||
'@octokit/graphql@9.0.3':
|
||||
dependencies:
|
||||
'@octokit/request': 10.0.9
|
||||
'@octokit/request': 10.0.8
|
||||
'@octokit/types': 16.0.0
|
||||
universal-user-agent: 7.0.3
|
||||
|
||||
@@ -1581,12 +1713,11 @@ snapshots:
|
||||
dependencies:
|
||||
'@octokit/types': 16.0.0
|
||||
|
||||
'@octokit/request@10.0.9':
|
||||
'@octokit/request@10.0.8':
|
||||
dependencies:
|
||||
'@octokit/endpoint': 11.0.3
|
||||
'@octokit/request-error': 7.1.0
|
||||
'@octokit/types': 16.0.0
|
||||
content-type: 2.0.0
|
||||
fast-content-type-parse: 3.0.0
|
||||
json-with-bigint: 3.5.8
|
||||
universal-user-agent: 7.0.3
|
||||
@@ -1703,12 +1834,10 @@ snapshots:
|
||||
'@rolldown/binding-win32-x64-msvc@1.0.1':
|
||||
optional: true
|
||||
|
||||
'@rolldown/pluginutils@1.0.1': {}
|
||||
'@rolldown/pluginutils@1.0.0': {}
|
||||
|
||||
'@standard-schema/spec@1.1.0': {}
|
||||
|
||||
'@tsconfig/node24@24.0.4': {}
|
||||
|
||||
'@tybys/wasm-util@0.10.2':
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
@@ -1723,14 +1852,20 @@ snapshots:
|
||||
|
||||
'@types/estree@1.0.9': {}
|
||||
|
||||
'@types/mdast@3.0.15':
|
||||
dependencies:
|
||||
'@types/unist': 2.0.11
|
||||
|
||||
'@types/node@12.20.55': {}
|
||||
|
||||
'@types/node@24.12.4':
|
||||
'@types/node@24.12.2':
|
||||
dependencies:
|
||||
undici-types: 7.16.0
|
||||
|
||||
'@types/semver@7.7.1': {}
|
||||
|
||||
'@types/unist@2.0.11': {}
|
||||
|
||||
'@vitest/expect@4.1.6':
|
||||
dependencies:
|
||||
'@standard-schema/spec': 1.1.0
|
||||
@@ -1746,7 +1881,7 @@ snapshots:
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 0.30.21
|
||||
optionalDependencies:
|
||||
vite: 8.0.13(@types/node@24.12.4)
|
||||
vite: 8.0.13(@types/node@24.12.2)
|
||||
|
||||
'@vitest/pretty-format@4.1.6':
|
||||
dependencies:
|
||||
@@ -1796,6 +1931,8 @@ snapshots:
|
||||
dependencies:
|
||||
possible-typed-array-names: 1.1.0
|
||||
|
||||
bail@1.0.5: {}
|
||||
|
||||
base64-js@1.5.1: {}
|
||||
|
||||
before-after-hook@4.0.0: {}
|
||||
@@ -1832,13 +1969,23 @@ snapshots:
|
||||
call-bind-apply-helpers: 1.0.2
|
||||
get-intrinsic: 1.3.0
|
||||
|
||||
ccount@1.1.0: {}
|
||||
|
||||
chai@6.2.2: {}
|
||||
|
||||
character-entities-html4@1.1.4: {}
|
||||
|
||||
character-entities-legacy@1.1.4: {}
|
||||
|
||||
character-entities@1.2.4: {}
|
||||
|
||||
character-reference-invalid@1.1.4: {}
|
||||
|
||||
chardet@2.1.1: {}
|
||||
|
||||
clean-git-ref@2.0.1: {}
|
||||
|
||||
content-type@2.0.0: {}
|
||||
collapse-white-space@1.0.6: {}
|
||||
|
||||
convert-source-map@2.0.0: {}
|
||||
|
||||
@@ -1905,6 +2052,8 @@ snapshots:
|
||||
|
||||
expect-type@1.3.0: {}
|
||||
|
||||
extend@3.0.2: {}
|
||||
|
||||
extendable-error@0.1.7: {}
|
||||
|
||||
fast-content-type-parse@3.0.0: {}
|
||||
@@ -2018,16 +2167,33 @@ snapshots:
|
||||
|
||||
inherits@2.0.4: {}
|
||||
|
||||
is-alphabetical@1.0.4: {}
|
||||
|
||||
is-alphanumeric@1.0.0: {}
|
||||
|
||||
is-alphanumerical@1.0.4:
|
||||
dependencies:
|
||||
is-alphabetical: 1.0.4
|
||||
is-decimal: 1.0.4
|
||||
|
||||
is-buffer@2.0.5: {}
|
||||
|
||||
is-callable@1.2.7: {}
|
||||
|
||||
is-decimal@1.0.4: {}
|
||||
|
||||
is-extglob@2.1.1: {}
|
||||
|
||||
is-glob@4.0.3:
|
||||
dependencies:
|
||||
is-extglob: 2.1.1
|
||||
|
||||
is-hexadecimal@1.0.4: {}
|
||||
|
||||
is-number@7.0.0: {}
|
||||
|
||||
is-plain-obj@2.1.0: {}
|
||||
|
||||
is-subdir@1.2.0:
|
||||
dependencies:
|
||||
better-path-resolve: 1.0.0
|
||||
@@ -2036,13 +2202,17 @@ snapshots:
|
||||
dependencies:
|
||||
which-typed-array: 1.1.20
|
||||
|
||||
is-whitespace-character@1.0.4: {}
|
||||
|
||||
is-windows@1.0.2: {}
|
||||
|
||||
is-word-character@1.0.4: {}
|
||||
|
||||
isarray@2.0.5: {}
|
||||
|
||||
isexe@2.0.0: {}
|
||||
|
||||
isomorphic-git@1.38.1:
|
||||
isomorphic-git@1.37.6:
|
||||
dependencies:
|
||||
async-lock: 1.4.1
|
||||
clean-git-ref: 2.0.1
|
||||
@@ -2077,14 +2247,24 @@ snapshots:
|
||||
|
||||
lodash.startcase@4.4.0: {}
|
||||
|
||||
longest-streak@2.0.4: {}
|
||||
|
||||
magic-string@0.30.21:
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.5.5
|
||||
|
||||
markdown-table@3.0.4: {}
|
||||
markdown-escapes@1.0.4: {}
|
||||
|
||||
markdown-table@1.1.3: {}
|
||||
|
||||
math-intrinsics@1.1.0: {}
|
||||
|
||||
mdast-util-compact@1.0.4:
|
||||
dependencies:
|
||||
unist-util-visit: 1.4.1
|
||||
|
||||
mdast-util-to-string@1.1.0: {}
|
||||
|
||||
merge2@1.4.1: {}
|
||||
|
||||
micromatch@4.0.8:
|
||||
@@ -2160,6 +2340,15 @@ snapshots:
|
||||
|
||||
pako@1.0.11: {}
|
||||
|
||||
parse-entities@1.2.2:
|
||||
dependencies:
|
||||
character-entities: 1.2.4
|
||||
character-entities-legacy: 1.1.4
|
||||
character-reference-invalid: 1.1.4
|
||||
is-alphanumerical: 1.0.4
|
||||
is-decimal: 1.0.4
|
||||
is-hexadecimal: 1.0.4
|
||||
|
||||
path-exists@4.0.0: {}
|
||||
|
||||
path-key@3.1.1: {}
|
||||
@@ -2176,6 +2365,8 @@ snapshots:
|
||||
|
||||
pify@4.0.1: {}
|
||||
|
||||
pkg-pr-new@0.0.71: {}
|
||||
|
||||
possible-typed-array-names@1.1.0: {}
|
||||
|
||||
prettier@2.8.8: {}
|
||||
@@ -2201,6 +2392,43 @@ snapshots:
|
||||
process: 0.11.10
|
||||
string_decoder: 1.3.0
|
||||
|
||||
remark-parse@7.0.2:
|
||||
dependencies:
|
||||
collapse-white-space: 1.0.6
|
||||
is-alphabetical: 1.0.4
|
||||
is-decimal: 1.0.4
|
||||
is-whitespace-character: 1.0.4
|
||||
is-word-character: 1.0.4
|
||||
markdown-escapes: 1.0.4
|
||||
parse-entities: 1.2.2
|
||||
repeat-string: 1.6.1
|
||||
state-toggle: 1.0.3
|
||||
trim: 0.0.1
|
||||
trim-trailing-lines: 1.1.4
|
||||
unherit: 1.1.3
|
||||
unist-util-remove-position: 1.1.4
|
||||
vfile-location: 2.0.6
|
||||
xtend: 4.0.2
|
||||
|
||||
remark-stringify@7.0.4:
|
||||
dependencies:
|
||||
ccount: 1.1.0
|
||||
is-alphanumeric: 1.0.0
|
||||
is-decimal: 1.0.4
|
||||
is-whitespace-character: 1.0.4
|
||||
longest-streak: 2.0.4
|
||||
markdown-escapes: 1.0.4
|
||||
markdown-table: 1.1.3
|
||||
mdast-util-compact: 1.0.4
|
||||
parse-entities: 1.2.2
|
||||
repeat-string: 1.6.1
|
||||
state-toggle: 1.0.3
|
||||
stringify-entities: 2.0.0
|
||||
unherit: 1.1.3
|
||||
xtend: 4.0.2
|
||||
|
||||
repeat-string@1.6.1: {}
|
||||
|
||||
resolve-from@5.0.0: {}
|
||||
|
||||
reusify@1.1.0: {}
|
||||
@@ -2208,7 +2436,7 @@ snapshots:
|
||||
rolldown@1.0.1:
|
||||
dependencies:
|
||||
'@oxc-project/types': 0.130.0
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
'@rolldown/pluginutils': 1.0.0
|
||||
optionalDependencies:
|
||||
'@rolldown/binding-android-arm64': 1.0.1
|
||||
'@rolldown/binding-darwin-arm64': 1.0.1
|
||||
@@ -2234,7 +2462,7 @@ snapshots:
|
||||
|
||||
safer-buffer@2.1.2: {}
|
||||
|
||||
semver@7.8.0: {}
|
||||
semver@7.7.4: {}
|
||||
|
||||
set-function-length@1.2.2:
|
||||
dependencies:
|
||||
@@ -2280,12 +2508,22 @@ snapshots:
|
||||
|
||||
stackback@0.0.2: {}
|
||||
|
||||
state-toggle@1.0.3: {}
|
||||
|
||||
std-env@4.1.0: {}
|
||||
|
||||
string_decoder@1.3.0:
|
||||
dependencies:
|
||||
safe-buffer: 5.2.1
|
||||
|
||||
stringify-entities@2.0.0:
|
||||
dependencies:
|
||||
character-entities-html4: 1.1.4
|
||||
character-entities-legacy: 1.1.4
|
||||
is-alphanumerical: 1.0.4
|
||||
is-decimal: 1.0.4
|
||||
is-hexadecimal: 1.0.4
|
||||
|
||||
strip-ansi@6.0.1:
|
||||
dependencies:
|
||||
ansi-regex: 5.0.1
|
||||
@@ -2319,6 +2557,12 @@ snapshots:
|
||||
|
||||
tr46@0.0.3: {}
|
||||
|
||||
trim-trailing-lines@1.1.4: {}
|
||||
|
||||
trim@0.0.1: {}
|
||||
|
||||
trough@1.0.5: {}
|
||||
|
||||
tslib@2.8.1:
|
||||
optional: true
|
||||
|
||||
@@ -2330,26 +2574,72 @@ snapshots:
|
||||
es-errors: 1.3.0
|
||||
is-typed-array: 1.1.15
|
||||
|
||||
typescript@6.0.3: {}
|
||||
typescript@5.9.3: {}
|
||||
|
||||
undici-types@7.16.0: {}
|
||||
|
||||
undici@6.25.0: {}
|
||||
|
||||
unherit@1.1.3:
|
||||
dependencies:
|
||||
inherits: 2.0.4
|
||||
xtend: 4.0.2
|
||||
|
||||
unified@8.4.2:
|
||||
dependencies:
|
||||
'@types/unist': 2.0.11
|
||||
bail: 1.0.5
|
||||
extend: 3.0.2
|
||||
is-plain-obj: 2.1.0
|
||||
trough: 1.0.5
|
||||
vfile: 4.2.1
|
||||
|
||||
unist-util-is@3.0.0: {}
|
||||
|
||||
unist-util-remove-position@1.1.4:
|
||||
dependencies:
|
||||
unist-util-visit: 1.4.1
|
||||
|
||||
unist-util-stringify-position@2.0.3:
|
||||
dependencies:
|
||||
'@types/unist': 2.0.11
|
||||
|
||||
unist-util-visit-parents@2.1.2:
|
||||
dependencies:
|
||||
unist-util-is: 3.0.0
|
||||
|
||||
unist-util-visit@1.4.1:
|
||||
dependencies:
|
||||
unist-util-visit-parents: 2.1.2
|
||||
|
||||
universal-user-agent@7.0.3: {}
|
||||
|
||||
universalify@0.1.2: {}
|
||||
|
||||
vite@8.0.13(@types/node@24.12.4):
|
||||
vfile-location@2.0.6: {}
|
||||
|
||||
vfile-message@2.0.4:
|
||||
dependencies:
|
||||
'@types/unist': 2.0.11
|
||||
unist-util-stringify-position: 2.0.3
|
||||
|
||||
vfile@4.2.1:
|
||||
dependencies:
|
||||
'@types/unist': 2.0.11
|
||||
is-buffer: 2.0.5
|
||||
unist-util-stringify-position: 2.0.3
|
||||
vfile-message: 2.0.4
|
||||
|
||||
vite@8.0.13(@types/node@24.12.2):
|
||||
dependencies:
|
||||
picomatch: 4.0.4
|
||||
rolldown: 1.0.1
|
||||
tinyglobby: 0.2.16
|
||||
optionalDependencies:
|
||||
'@types/node': 24.12.4
|
||||
'@types/node': 24.12.2
|
||||
fsevents: 2.3.3
|
||||
|
||||
vitest@4.1.6(@types/node@24.12.4)(vite@8.0.13):
|
||||
vitest@4.1.6(@types/node@24.12.2)(vite@8.0.13):
|
||||
dependencies:
|
||||
'@vitest/expect': 4.1.6
|
||||
'@vitest/mocker': 4.1.6(vite@8.0.13)
|
||||
@@ -2369,10 +2659,10 @@ snapshots:
|
||||
tinyexec: 1.1.2
|
||||
tinyglobby: 0.2.16
|
||||
tinyrainbow: 3.1.0
|
||||
vite: 8.0.13(@types/node@24.12.4)
|
||||
vite: 8.0.13(@types/node@24.12.2)
|
||||
why-is-node-running: 2.3.0
|
||||
optionalDependencies:
|
||||
'@types/node': 24.12.4
|
||||
'@types/node': 24.12.2
|
||||
transitivePeerDependencies:
|
||||
- msw
|
||||
|
||||
@@ -2403,3 +2693,5 @@ snapshots:
|
||||
stackback: 0.0.2
|
||||
|
||||
wrappy@1.0.2: {}
|
||||
|
||||
xtend@4.0.2: {}
|
||||
|
||||
+7
-3
@@ -3,11 +3,15 @@ dedupePeers: true
|
||||
dedupePeerDependents: true
|
||||
minimumReleaseAge: 10080
|
||||
minimumReleaseAgeExclude:
|
||||
- "@changesets/ghcommit@2.1.1"
|
||||
- '@oxc-project/*'
|
||||
- '@rolldown/*'
|
||||
- rolldown@1.0.1
|
||||
- vite@8.0.13
|
||||
- vitest@4.1.6
|
||||
|
||||
overrides:
|
||||
lightningcss: "-" # we do not bundle any css
|
||||
postcss: "-" # we do not bundle any css
|
||||
lightningcss: '-' # we do not bundle any css
|
||||
postcss: '-' # we do not bundle any css
|
||||
|
||||
shellEmulator: true
|
||||
trustPolicy: no-downgrade
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
# @changesets/action/pr-comment
|
||||
|
||||
A simple GitHub Action to comment on PRs aimed to complement [`@changesets/action/pr-status`](../pr-status/README.md).
|
||||
|
||||
This action is intentionally simple without advanced features. Check out other actions if so, such as [mshick/add-pr-comment](https://github.com/marketplace/actions/add-pr-comment) and [peter-evans/create-or-update-comment](https://github.com/marketplace/actions/create-or-update-comment).
|
||||
|
||||
See the [action metadata](action.yml) for details on the inputs and outputs.
|
||||
|
||||
## Example setup
|
||||
|
||||
```yaml
|
||||
name: PR Comment
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
pr-comment:
|
||||
runs-on: ubuntu-slim
|
||||
permissions:
|
||||
pull-requests: write # to create and update comments on PRs
|
||||
steps:
|
||||
- uses: changesets/action/pr-comment@v1
|
||||
with:
|
||||
body: Hello world!
|
||||
```
|
||||
|
||||
When called repeatedly, the action will update the comment it created by default. If you use this action to create different types of comments, pass an `update-id` value to differentiate them.
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
pr-comment:
|
||||
# ...
|
||||
steps:
|
||||
- uses: changesets/action/pr-comment@v1
|
||||
with:
|
||||
body: Hello world!
|
||||
update-id: my-tag
|
||||
```
|
||||
|
||||
If you want to always create new comments, pass an empty value to `update-id`.
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
pr-comment:
|
||||
# ...
|
||||
steps:
|
||||
- uses: changesets/action/pr-comment@v1
|
||||
with:
|
||||
body: Hello world!
|
||||
update-id: ""
|
||||
```
|
||||
@@ -1,25 +0,0 @@
|
||||
name: Changesets - PR Comment
|
||||
description: A simple GitHub Action to comment on PRs
|
||||
runs:
|
||||
using: node24
|
||||
main: ../dist/pr-comment.js
|
||||
inputs:
|
||||
github-token:
|
||||
description: "The GitHub token to use for authentication. Defaults to the GitHub-provided token."
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
body:
|
||||
description: "The comment body to post on the PR."
|
||||
required: true
|
||||
update-id:
|
||||
description: >
|
||||
By default, the action will create and update a comment with this id. Pass a different id to
|
||||
create and update a new comment, or pass an empty string to disable updating comments.
|
||||
required: false
|
||||
default: "changesets-action-pr-comment"
|
||||
outputs:
|
||||
comment-id:
|
||||
description: "The comment id of the comment that was created or updated."
|
||||
branding:
|
||||
icon: message-circle
|
||||
color: blue
|
||||
@@ -1,61 +0,0 @@
|
||||
# changesets/action/pr-status
|
||||
|
||||
This action generates the changesets status in PRs, e.g. whether it has changeset files and which packages will be released if the PR is merged.
|
||||
|
||||
It requires the repo to be checked out, and automatically fetches the PR head ref into a temporary detached worktree in order to infer the changed files and packages. It also requires the [`pull_request_target`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target) event to be triggered in order to have permissions to comment on the PR and to work in PRs from forks.
|
||||
|
||||
You can also use the [`pull_request`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request) event if you prefer to lock permissions down and not run for PRs from forks. Make sure to add an if check to prevent the action from failing in fork PRs:
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
pr-status:
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
# ...
|
||||
```
|
||||
|
||||
See the [action metadata](action.yml) for details on the inputs and outputs.
|
||||
|
||||
> [!WARNING]
|
||||
> **Do not run untrusted code** when using the `pull_request_target` event. The example below only checks out code and does not run any code from the PR. Read more about the `pull_request_target` event in the [GitHub documentation](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target).
|
||||
|
||||
## Example setup
|
||||
|
||||
```yaml
|
||||
# .github/workflows/comment-changesets-pr-status.yml
|
||||
name: Comment Changesets status in PRs
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
pr-status:
|
||||
runs-on: ubuntu-slim
|
||||
permissions:
|
||||
contents: read # to check out files in the repo
|
||||
outputs:
|
||||
comment-body: ${{ steps.pr-status.outputs.comment-body }}
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Generate status
|
||||
id: pr-status
|
||||
uses: changesets/action/pr-status@v1
|
||||
|
||||
pr-comment:
|
||||
needs: pr-status
|
||||
runs-on: ubuntu-slim
|
||||
permissions:
|
||||
pull-requests: write # to create and update comments on PRs
|
||||
steps:
|
||||
- name: Comment on PR
|
||||
uses: changesets/action/pr-comment@v1
|
||||
with:
|
||||
body: ${{ needs.pr-status.outputs.comment-body }}
|
||||
```
|
||||
|
||||
The workflow uses [`@changesets/action/pr-comment`](../pr-comment/README.md), which is a simple GitHub Action to comment on PRs.
|
||||
@@ -1,12 +0,0 @@
|
||||
name: Changesets - PR Status
|
||||
description: Generate the changesets status in PRs
|
||||
runs:
|
||||
using: node24
|
||||
main: ../dist/pr-status.js
|
||||
inputs: {}
|
||||
outputs:
|
||||
comment-body:
|
||||
description: The generated comment body to present the changesets status in PRs.
|
||||
branding:
|
||||
icon: package
|
||||
color: blue
|
||||
+6
-10
@@ -1,17 +1,13 @@
|
||||
import { defineConfig } from "rolldown";
|
||||
import { defineConfig } from 'rolldown'
|
||||
|
||||
export default defineConfig({
|
||||
input: {
|
||||
index: "src/index.ts",
|
||||
["pr-status"]: "src/pr-status/index.ts",
|
||||
["pr-comment"]: "src/pr-comment/index.ts",
|
||||
},
|
||||
input: 'src/index.ts',
|
||||
output: {
|
||||
dir: "dist",
|
||||
format: "esm",
|
||||
dir: 'dist',
|
||||
format: 'esm',
|
||||
cleanDir: true,
|
||||
minify: true,
|
||||
comments: false,
|
||||
},
|
||||
platform: "node",
|
||||
});
|
||||
platform: 'node',
|
||||
})
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import path from "node:path";
|
||||
import { exec } from "@actions/exec";
|
||||
import pkgJson from "../package.json" with { type: "json" };
|
||||
|
||||
const tag = `v${pkgJson.version}`;
|
||||
const releaseLine = "pr-release";
|
||||
|
||||
process.chdir(path.join(import.meta.dirname, ".."));
|
||||
|
||||
await exec("git", ["checkout", "--detach"]);
|
||||
await exec("git", ["add", "--force", "dist"]);
|
||||
await exec("git", ["commit", "-m", tag]);
|
||||
|
||||
await exec("git", [
|
||||
"push",
|
||||
"--force",
|
||||
"origin",
|
||||
`HEAD:refs/heads/${releaseLine}`,
|
||||
]);
|
||||
@@ -12,7 +12,8 @@ exports[`version > creates a draft PR when prDraft is "create" 1`] = `
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"draft": true,
|
||||
"head": "changeset-release/some-branch",
|
||||
"owner": "changesets",
|
||||
@@ -34,17 +35,19 @@ exports[`version > creates simple PR 1`] = `
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature
|
||||
- Awesome feature
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- changesets-dev-simple-project-pkg-b@1.1.0
|
||||
- Updated dependencies
|
||||
- changesets-dev-simple-project-pkg-b@1.1.0
|
||||
|
||||
## changesets-dev-simple-project-pkg-b@1.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"draft": false,
|
||||
"head": "changeset-release/some-branch",
|
||||
"owner": "changesets",
|
||||
@@ -108,7 +111,8 @@ exports[`version > doesn't include ignored package that got a dependency update
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"draft": false,
|
||||
"head": "changeset-release/some-branch",
|
||||
"owner": "changesets",
|
||||
@@ -130,7 +134,8 @@ exports[`version > only includes bumped packages in the PR body 1`] = `
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"draft": false,
|
||||
"head": "changeset-release/some-branch",
|
||||
"owner": "changesets",
|
||||
@@ -182,7 +187,8 @@ exports[`version > updates an existing PR via GraphQL and converts it to draft w
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"pullRequestId": "PR_kwDOA",
|
||||
"title": "Version Packages",
|
||||
},
|
||||
@@ -222,7 +228,8 @@ exports[`version > updates an existing PR via GraphQL without converting it to d
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Awesome feature",
|
||||
- Awesome feature
|
||||
",
|
||||
"pullRequestId": "PR_kwDOA",
|
||||
"title": "Version Packages",
|
||||
},
|
||||
|
||||
@@ -23,21 +23,23 @@ exports[`it sorts the things right 1`] = `
|
||||
exports[`it works 1`] = `
|
||||
"### Major Changes
|
||||
|
||||
- [2164a779](https://github.com/keystonejs/keystone-5/commit/2164a779):
|
||||
- [2164a779](https://github.com/keystonejs/keystone-5/commit/2164a779):
|
||||
|
||||
- Replace jade with pug because Jade was renamed to Pug, and \`jade\` package is outdated
|
||||
- Replace jade with pug because Jade was renamed to Pug, and \`jade\` package is outdated
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [81dc0be5](https://github.com/keystonejs/keystone-5/commit/81dc0be5):
|
||||
- [81dc0be5](https://github.com/keystonejs/keystone-5/commit/81dc0be5):
|
||||
|
||||
- Update dependencies"
|
||||
- Update dependencies
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`it works 2`] = `
|
||||
"### Patch Changes
|
||||
|
||||
- [19fe6c1b](https://github.com/keystonejs/keystone-5/commit/19fe6c1b):
|
||||
- [19fe6c1b](https://github.com/keystonejs/keystone-5/commit/19fe6c1b):
|
||||
|
||||
Move frontmatter in docs into comments"
|
||||
Move frontmatter in docs into comments
|
||||
"
|
||||
`;
|
||||
|
||||
@@ -136,19 +136,6 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
|
||||
JSON.stringify(result.publishedPackages),
|
||||
);
|
||||
}
|
||||
|
||||
if (result.exitCode !== 0) {
|
||||
core.error(
|
||||
`Publish command exited with code ${result.exitCode}${
|
||||
result.published
|
||||
? `, but some packages were published: ${result.publishedPackages
|
||||
.map((p) => `${p.name}@${p.version}`)
|
||||
.join(", ")}`
|
||||
: ""
|
||||
}`,
|
||||
);
|
||||
process.exit(result.exitCode);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case hasChangesets && !hasNonEmptyChangesets:
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
import * as core from "@actions/core";
|
||||
import * as github from "@actions/github";
|
||||
|
||||
type Octokit = ReturnType<typeof github.getOctokit>;
|
||||
type CreateCommentParams = NonNullable<
|
||||
Parameters<Octokit["rest"]["issues"]["createComment"]>[0]
|
||||
>;
|
||||
type UpdateCommentParams = NonNullable<
|
||||
Parameters<Octokit["rest"]["issues"]["updateComment"]>[0]
|
||||
>;
|
||||
|
||||
try {
|
||||
await main();
|
||||
} catch (err) {
|
||||
core.setFailed((err as Error).message);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const context = github.context.payload.pull_request;
|
||||
if (!context) {
|
||||
throw new Error(
|
||||
"This action should only be run on `pull_request_target` or `pull_request` events",
|
||||
);
|
||||
}
|
||||
|
||||
const githubToken = core.getInput("github-token", { required: true });
|
||||
const body = core.getInput("body", { required: true });
|
||||
const updateId = core.getInput("update-id");
|
||||
|
||||
const commentMarker = updateId ? getCommentMarker(updateId) : null;
|
||||
const commentBody = commentMarker ? `${commentMarker}\n\n${body}` : body;
|
||||
const commentParam: CreateCommentParams | UpdateCommentParams = {
|
||||
repo: context.base.repo.name,
|
||||
owner: context.base.repo.owner.login,
|
||||
issue_number: context.number,
|
||||
body: commentBody,
|
||||
};
|
||||
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
|
||||
let existingCommentId: number | undefined;
|
||||
if (commentMarker) {
|
||||
core.info("Checking for existing comment...");
|
||||
existingCommentId = await octokit.rest.issues
|
||||
.listComments({
|
||||
repo: context.base.repo.name,
|
||||
owner: context.base.repo.owner.login,
|
||||
issue_number: context.number,
|
||||
})
|
||||
.then((res) => {
|
||||
const comment = res.data.find((c) => c.body?.includes(commentMarker));
|
||||
return comment?.id;
|
||||
});
|
||||
}
|
||||
|
||||
if (existingCommentId) {
|
||||
core.info(`Updating existing comment (id: ${existingCommentId})...`);
|
||||
await octokit.rest.issues.updateComment({
|
||||
...commentParam,
|
||||
comment_id: existingCommentId,
|
||||
});
|
||||
core.setOutput("comment-id", existingCommentId);
|
||||
} else {
|
||||
core.info("Creating new comment...");
|
||||
const result = await octokit.rest.issues.createComment(commentParam);
|
||||
core.setOutput("comment-id", result.data.id);
|
||||
}
|
||||
|
||||
core.info("Done!");
|
||||
}
|
||||
|
||||
function getCommentMarker(updateId: string) {
|
||||
const prefix = "changesets-action-pr-comment";
|
||||
return prefix === updateId
|
||||
? `<!-- ${prefix} -->`
|
||||
: `<!-- ${prefix}:${updateId} -->`;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import * as core from "@actions/core";
|
||||
import * as github from "@actions/github";
|
||||
import { getCommentMessage } from "./message.ts";
|
||||
|
||||
try {
|
||||
await main();
|
||||
} catch (err) {
|
||||
core.setFailed((err as Error).message);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const context = github.context.payload.pull_request;
|
||||
if (!context) {
|
||||
throw new Error(
|
||||
"This action should only be run on `pull_request_target` or `pull_request` events",
|
||||
);
|
||||
}
|
||||
|
||||
core.info("Creating comment message...");
|
||||
const commentBody = await getCommentMessage(context);
|
||||
core.setOutput("comment-body", commentBody);
|
||||
core.info("Done!");
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
import * as github from "@actions/github";
|
||||
import getReleasePlan from "@changesets/get-release-plan";
|
||||
import type {
|
||||
ComprehensiveRelease,
|
||||
ReleasePlan,
|
||||
VersionType,
|
||||
} from "@changesets/types";
|
||||
import { markdownTable } from "markdown-table";
|
||||
import {
|
||||
getNewChangesetTemplateContent,
|
||||
getNewChangesetUrl,
|
||||
} from "./template.ts";
|
||||
import { getPullRequestWorktree } from "./worktree.ts";
|
||||
|
||||
type PullRequestContext = NonNullable<
|
||||
typeof github.context.payload.pull_request
|
||||
>;
|
||||
|
||||
export async function getCommentMessage(context: PullRequestContext) {
|
||||
await using worktree = await getPullRequestWorktree(context);
|
||||
|
||||
const releasePlan = await getReleasePlan(worktree.cwd, worktree.baseRef);
|
||||
const templateContent = await getNewChangesetTemplateContent(
|
||||
worktree.cwd,
|
||||
worktree.baseRef,
|
||||
context.title,
|
||||
);
|
||||
|
||||
const newChangesetUrl = getNewChangesetUrl(
|
||||
context.head.repo.html_url,
|
||||
context.head.ref,
|
||||
templateContent,
|
||||
);
|
||||
|
||||
if (releasePlan.changesets.length > 0) {
|
||||
return getApproveMessage(context.head.sha, newChangesetUrl, releasePlan);
|
||||
} else {
|
||||
return getAbsentMessage(context.head.sha, newChangesetUrl, releasePlan);
|
||||
}
|
||||
}
|
||||
|
||||
function getApproveMessage(
|
||||
commitSha: string,
|
||||
newChangesetUrl: string,
|
||||
releasePlan: ReleasePlan,
|
||||
) {
|
||||
return `\
|
||||
### 🦋 Changeset detected
|
||||
|
||||
Latest commit: ${commitSha}
|
||||
|
||||
**The changes in this PR will be included in the next version bump.**
|
||||
|
||||
${getReleasePlanMessage(releasePlan)}
|
||||
|
||||
Not sure what this means? [Click here to learn what changesets are](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
|
||||
|
||||
[Click here if you're a maintainer who wants to add another changeset to this PR](${newChangesetUrl})`;
|
||||
}
|
||||
|
||||
function getAbsentMessage(
|
||||
commitSha: string,
|
||||
newChangesetUrl: string,
|
||||
releasePlan: ReleasePlan,
|
||||
) {
|
||||
return `\
|
||||
### ⚠️ No Changeset found
|
||||
|
||||
Latest commit: ${commitSha}
|
||||
|
||||
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. **If these changes should result in a version bump, you need to add a changeset.**
|
||||
|
||||
${getReleasePlanMessage(releasePlan)}
|
||||
|
||||
[Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
|
||||
|
||||
[Click here if you're a maintainer who wants to add a changeset to this PR](${newChangesetUrl})`;
|
||||
}
|
||||
|
||||
function getReleasePlanMessage(releasePlan: ReleasePlan) {
|
||||
const publishableReleases = releasePlan.releases.filter(
|
||||
(r) => r.type !== "none",
|
||||
) as (ComprehensiveRelease & { type: Exclude<VersionType, "none"> })[];
|
||||
|
||||
const table = markdownTable([
|
||||
["Name", "Type"],
|
||||
...publishableReleases.map((release) => {
|
||||
return [
|
||||
release.name,
|
||||
{
|
||||
major: "Major",
|
||||
minor: "Minor",
|
||||
patch: "Patch",
|
||||
}[release.type],
|
||||
];
|
||||
}),
|
||||
]);
|
||||
|
||||
let summary = "This PR includes ";
|
||||
if (releasePlan.changesets.length === 0) {
|
||||
summary += "no changesets";
|
||||
} else {
|
||||
summary += `changesets to release ${publishableReleases.length} package`;
|
||||
if (publishableReleases.length !== 1) {
|
||||
summary += "s";
|
||||
}
|
||||
}
|
||||
|
||||
return `\
|
||||
<details>
|
||||
<summary>${summary}</summary>
|
||||
|
||||
${
|
||||
publishableReleases.length > 0
|
||||
? table
|
||||
: "When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types"
|
||||
}
|
||||
|
||||
</details>`;
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
import { getChangedPackagesSinceRef } from "@changesets/git";
|
||||
import { humanId } from "human-id";
|
||||
|
||||
export function getNewChangesetUrl(
|
||||
headRepoUrl: string,
|
||||
headRef: string,
|
||||
templateContent: string,
|
||||
) {
|
||||
const fileName = humanId({ separator: "-", capitalize: false });
|
||||
return `${headRepoUrl}/new/${headRef}?filename=.changeset/${fileName}.md&value=${encodeURIComponent(templateContent)}`;
|
||||
}
|
||||
|
||||
export async function getNewChangesetTemplateContent(
|
||||
cwd: string,
|
||||
baseRef: string,
|
||||
prTitle: string,
|
||||
) {
|
||||
const changedPackages = await getChangedPackagesSinceRef({
|
||||
cwd,
|
||||
ref: baseRef,
|
||||
});
|
||||
|
||||
return `\
|
||||
---
|
||||
${changedPackages.map((p) => `"${p.packageJson.name}": patch`).join("\n")}
|
||||
---
|
||||
|
||||
${prTitle}
|
||||
`;
|
||||
}
|
||||
@@ -1,148 +0,0 @@
|
||||
import { pathToFileURL } from "node:url";
|
||||
import type * as github from "@actions/github";
|
||||
import getReleasePlan from "@changesets/get-release-plan";
|
||||
import { createFixture } from "fs-fixture";
|
||||
import { exec } from "tinyexec";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { getPullRequestWorktree } from "./worktree.ts";
|
||||
|
||||
type PullRequestContext = NonNullable<
|
||||
typeof github.context.payload.pull_request
|
||||
>;
|
||||
|
||||
async function git(cwd: string, args: string[]) {
|
||||
const output = await exec("git", args, {
|
||||
nodeOptions: { cwd },
|
||||
throwOnError: true,
|
||||
});
|
||||
return output.stdout.trim();
|
||||
}
|
||||
|
||||
describe("getPullRequestWorktree", () => {
|
||||
it("fetches a PR branch into a detached worktree and keeps the main checkout untouched", async () => {
|
||||
// Local source repo
|
||||
await using sourceRepoFixture = await createFixture({
|
||||
".changeset/config.json": JSON.stringify({}),
|
||||
"package.json": JSON.stringify({
|
||||
name: "repo",
|
||||
private: true,
|
||||
workspaces: ["packages/*"],
|
||||
}),
|
||||
"packages/pkg-a/package.json": JSON.stringify({
|
||||
name: "pkg-a",
|
||||
version: "1.0.0",
|
||||
}),
|
||||
});
|
||||
const sourceRepo = sourceRepoFixture.path;
|
||||
await git(sourceRepo, ["init", "-b", "main"]);
|
||||
await git(sourceRepo, ["config", "user.name", "Test User"]);
|
||||
await git(sourceRepo, ["config", "user.email", "test@example.com"]);
|
||||
await git(sourceRepo, ["add", "."]);
|
||||
await git(sourceRepo, ["commit", "-m", "base"]);
|
||||
|
||||
// Simulate remote bare git server
|
||||
await using originBareFixture = await createFixture();
|
||||
const originBare = originBareFixture.path;
|
||||
await git(originBare, ["clone", "--bare", sourceRepo, originBare]);
|
||||
|
||||
// Simulate checkout PR in github action
|
||||
await using checkoutRepoFixture = await createFixture();
|
||||
const checkoutRepo = checkoutRepoFixture.path;
|
||||
await git(checkoutRepo, [
|
||||
"clone",
|
||||
"--depth",
|
||||
"1",
|
||||
"--branch",
|
||||
"main",
|
||||
pathToFileURL(originBare).toString(),
|
||||
checkoutRepo,
|
||||
]);
|
||||
|
||||
// Simulate remote fork bare git server
|
||||
await using forkBareFixture = await createFixture();
|
||||
const forkBare = forkBareFixture.path;
|
||||
await git(forkBare, ["clone", "--bare", originBare, forkBare]);
|
||||
|
||||
await using forkRepoFixture = await createFixture();
|
||||
const forkRepo = forkRepoFixture.path;
|
||||
await git(forkRepo, [
|
||||
"clone",
|
||||
"--depth",
|
||||
"1",
|
||||
"--branch",
|
||||
"main",
|
||||
pathToFileURL(forkBare).toString(),
|
||||
forkRepo,
|
||||
]);
|
||||
await git(forkRepo, ["config", "user.name", "Test User"]);
|
||||
await git(forkRepo, ["config", "user.email", "test@example.com"]);
|
||||
await git(forkRepo, ["checkout", "-b", "feature"]);
|
||||
|
||||
await forkRepoFixture.mkdir("packages/pkg-a/src");
|
||||
await forkRepoFixture.writeFile(
|
||||
"packages/pkg-a/src/index.ts",
|
||||
"export const value = 1;\n",
|
||||
);
|
||||
await forkRepoFixture.writeFile(
|
||||
".changeset/add-pkg-a.md",
|
||||
`\
|
||||
---
|
||||
"pkg-a": patch
|
||||
---
|
||||
|
||||
Add pkg-a
|
||||
`,
|
||||
);
|
||||
|
||||
await git(forkRepo, ["add", "."]);
|
||||
await git(forkRepo, ["commit", "-m", "feature"]);
|
||||
await git(forkRepo, ["push", "origin", "feature"]);
|
||||
|
||||
// Run tests
|
||||
const originalHead = await git(checkoutRepo, ["rev-parse", "HEAD"]);
|
||||
const context = {
|
||||
number: 123,
|
||||
base: {
|
||||
ref: "main",
|
||||
repo: {
|
||||
clone_url: pathToFileURL(originBare).toString(),
|
||||
},
|
||||
},
|
||||
head: {
|
||||
ref: "feature",
|
||||
repo: {
|
||||
clone_url: pathToFileURL(forkBare).toString(),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
await using worktree = await getPullRequestWorktree(
|
||||
context satisfies PullRequestContext as PullRequestContext,
|
||||
checkoutRepo,
|
||||
);
|
||||
|
||||
const releasePlan = await getReleasePlan(worktree.cwd, worktree.baseRef);
|
||||
|
||||
const currentHead = await git(worktree.cwd, ["rev-parse", "HEAD"]);
|
||||
expect(currentHead).not.toBe(originalHead);
|
||||
|
||||
const currentBranch = await git(worktree.cwd, ["branch", "--show-current"]);
|
||||
expect(currentBranch).toBe("");
|
||||
|
||||
const releases = releasePlan.releases.map((release) => ({
|
||||
name: release.name,
|
||||
type: release.type,
|
||||
newVersion: release.newVersion,
|
||||
}));
|
||||
expect(releases).toEqual([
|
||||
{
|
||||
name: "pkg-a",
|
||||
type: "patch",
|
||||
newVersion: "1.0.1",
|
||||
},
|
||||
]);
|
||||
|
||||
expect(await git(checkoutRepo, ["rev-parse", "HEAD"])).toBe(originalHead);
|
||||
expect(await git(checkoutRepo, ["branch", "--show-current"])).toBe("main");
|
||||
});
|
||||
});
|
||||
@@ -1,165 +0,0 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import type * as github from "@actions/github";
|
||||
import { isRepoShallow } from "@changesets/git";
|
||||
import { exec } from "tinyexec";
|
||||
|
||||
type PullRequestContext = NonNullable<
|
||||
typeof github.context.payload.pull_request
|
||||
>;
|
||||
|
||||
type WorktreeInfo = {
|
||||
baseRef: string;
|
||||
cwd: string;
|
||||
};
|
||||
|
||||
type TinyexecOptions = Parameters<typeof exec>[2];
|
||||
|
||||
function git(cwd: string, args: string[], opts: TinyexecOptions = {}) {
|
||||
return exec("git", args, {
|
||||
nodeOptions: { cwd, ...opts.nodeOptions },
|
||||
throwOnError: true,
|
||||
...opts,
|
||||
});
|
||||
}
|
||||
|
||||
interface Ref {
|
||||
fetchSource: string;
|
||||
local: string;
|
||||
remote: string;
|
||||
}
|
||||
|
||||
function getRefs(context: PullRequestContext): Record<"base" | "head", Ref> {
|
||||
const suffix = `${context.number}-${randomUUID()}`;
|
||||
return {
|
||||
base: {
|
||||
fetchSource: "origin",
|
||||
local: `refs/changesets-action-pr-status/base/${suffix}`,
|
||||
remote: `refs/heads/${context.base.ref}`,
|
||||
},
|
||||
head: {
|
||||
fetchSource: context.head.repo.clone_url,
|
||||
local: `refs/changesets-action-pr-status/head/${suffix}`,
|
||||
remote: `refs/heads/${context.head.ref}`,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
async function deepenRef(cwd: string, ref: Ref, deepenBy: number) {
|
||||
await git(cwd, [
|
||||
"fetch",
|
||||
"--no-tags",
|
||||
`--deepen=${deepenBy}`,
|
||||
ref.fetchSource,
|
||||
`${ref.remote}:${ref.local}`,
|
||||
]);
|
||||
}
|
||||
|
||||
async function ensureMergeBase(args: {
|
||||
cwd: string;
|
||||
refs: ReturnType<typeof getRefs>;
|
||||
deepenBy?: number;
|
||||
}) {
|
||||
const { cwd, refs, deepenBy = 50 } = args;
|
||||
|
||||
while (true) {
|
||||
const mergeBase = await git(cwd, ["merge-base", refs.base.local, "HEAD"], {
|
||||
throwOnError: false,
|
||||
});
|
||||
|
||||
if (mergeBase.exitCode === 0) {
|
||||
return mergeBase.stdout.trim();
|
||||
}
|
||||
|
||||
if (!(await isRepoShallow({ cwd }))) {
|
||||
throw new Error(
|
||||
`Failed to find merge base between "${refs.base.local}" and HEAD, and the repository is no longer shallow.`,
|
||||
);
|
||||
}
|
||||
|
||||
await deepenRef(cwd, refs.base, deepenBy);
|
||||
await deepenRef(cwd, refs.head, deepenBy);
|
||||
}
|
||||
}
|
||||
|
||||
async function mkdtemp(prefix: string) {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), prefix));
|
||||
|
||||
return {
|
||||
dir,
|
||||
async [Symbol.asyncDispose]() {
|
||||
await fs.rm(dir, { recursive: true, force: true });
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
async function tempRef(cwd: string, ref: Ref) {
|
||||
await git(cwd, [
|
||||
"fetch",
|
||||
"--no-tags",
|
||||
"--depth=1",
|
||||
ref.fetchSource,
|
||||
`${ref.remote}:${ref.local}`,
|
||||
]);
|
||||
return {
|
||||
async [Symbol.asyncDispose]() {
|
||||
await git(cwd, ["update-ref", "-d", ref.local], { throwOnError: false });
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
async function tempWorktree(cwd: string, dir: string, ref: Ref) {
|
||||
await git(cwd, ["worktree", "add", "--detach", dir, ref.local]);
|
||||
|
||||
return {
|
||||
async [Symbol.asyncDispose]() {
|
||||
await git(cwd, ["worktree", "remove", "--force", dir], {
|
||||
throwOnError: false,
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
type WithAsyncDispose<T> = T & {
|
||||
[Symbol.asyncDispose](): Promise<void>;
|
||||
};
|
||||
|
||||
function moveDisposable<T extends object>(
|
||||
stack: AsyncDisposableStack,
|
||||
value: T,
|
||||
): WithAsyncDispose<T> {
|
||||
const moved = stack.move();
|
||||
return Object.assign(value, {
|
||||
async [Symbol.asyncDispose]() {
|
||||
await moved.disposeAsync();
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function getPullRequestWorktree(
|
||||
context: PullRequestContext,
|
||||
cwd: string = process.cwd(),
|
||||
): Promise<WithAsyncDispose<WorktreeInfo>> {
|
||||
await using stack = new AsyncDisposableStack();
|
||||
const worktreeDir = stack.use(
|
||||
await mkdtemp("changesets-action-pr-status-"),
|
||||
).dir;
|
||||
|
||||
const refs = getRefs(context);
|
||||
|
||||
stack.use(await tempRef(cwd, refs.base));
|
||||
stack.use(await tempRef(cwd, refs.head));
|
||||
stack.use(await tempWorktree(cwd, worktreeDir, refs.head));
|
||||
|
||||
await ensureMergeBase({
|
||||
cwd: worktreeDir,
|
||||
refs,
|
||||
});
|
||||
|
||||
return moveDisposable(stack, {
|
||||
baseRef: refs.base.local,
|
||||
cwd: worktreeDir,
|
||||
});
|
||||
}
|
||||
+10
-10
@@ -73,11 +73,9 @@ type PublishResult =
|
||||
| {
|
||||
published: true;
|
||||
publishedPackages: PublishedPackage[];
|
||||
exitCode: number;
|
||||
}
|
||||
| {
|
||||
published: false;
|
||||
exitCode: number;
|
||||
};
|
||||
|
||||
export async function runPublish({
|
||||
@@ -88,11 +86,13 @@ export async function runPublish({
|
||||
createGithubReleases,
|
||||
cwd,
|
||||
}: PublishOptions): Promise<PublishResult> {
|
||||
let changesetPublishOutput = await getExecOutput(script, undefined, {
|
||||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
env: { ...process.env, GITHUB_TOKEN: githubToken },
|
||||
});
|
||||
let [publishCommand, ...publishArgs] = script.split(/\s+/);
|
||||
|
||||
let changesetPublishOutput = await getExecOutput(
|
||||
publishCommand,
|
||||
publishArgs,
|
||||
{ cwd, env: { ...process.env, GITHUB_TOKEN: githubToken } },
|
||||
);
|
||||
|
||||
let { packages, tool } = await getPackages(cwd);
|
||||
let releasedPackages: Package[] = [];
|
||||
@@ -158,11 +158,10 @@ export async function runPublish({
|
||||
name: pkg.packageJson.name,
|
||||
version: pkg.packageJson.version,
|
||||
})),
|
||||
exitCode: changesetPublishOutput.exitCode,
|
||||
};
|
||||
}
|
||||
|
||||
return { published: false, exitCode: changesetPublishOutput.exitCode };
|
||||
return { published: false };
|
||||
}
|
||||
|
||||
const requireChangesetsCliPkgJson = (cwd: string) => {
|
||||
@@ -294,7 +293,8 @@ export async function runVersion({
|
||||
const env = { ...process.env, GITHUB_TOKEN: githubToken };
|
||||
|
||||
if (script) {
|
||||
await exec(script, undefined, { cwd, env });
|
||||
let [versionCommand, ...versionArgs] = script.split(/\s+/);
|
||||
await exec(versionCommand, versionArgs, { cwd, env });
|
||||
} else {
|
||||
let changesetsCliPkgJson = requireChangesetsCliPkgJson(cwd);
|
||||
let cmd = semverLt(changesetsCliPkgJson.version, "2.0.0")
|
||||
|
||||
+42
-40
@@ -1,5 +1,11 @@
|
||||
import fs from "node:fs/promises";
|
||||
import { getPackages, type Package } from "@manypkg/get-packages";
|
||||
import type { Root } from "mdast";
|
||||
// @ts-ignore
|
||||
import mdastToString from "mdast-util-to-string";
|
||||
import remarkParse from "remark-parse";
|
||||
import remarkStringify from "remark-stringify";
|
||||
import unified from "unified";
|
||||
|
||||
export const BumpLevels = {
|
||||
dep: 0,
|
||||
@@ -31,55 +37,51 @@ export async function getChangedPackages(
|
||||
}
|
||||
|
||||
export function getChangelogEntry(changelog: string, version: string) {
|
||||
let ast = unified().use(remarkParse).parse(changelog) as Root;
|
||||
|
||||
let highestLevel: number = BumpLevels.dep;
|
||||
let headingStartInfo: { index: number; depth: number } | undefined;
|
||||
|
||||
let nodes = ast.children;
|
||||
let headingStartInfo:
|
||||
| {
|
||||
index: number;
|
||||
depth: number;
|
||||
}
|
||||
| undefined;
|
||||
let endIndex: number | undefined;
|
||||
|
||||
// Iterate through each headings and code blocks (for skipping its contents)
|
||||
const regex = /^(#{1,6})\s(.*)$|^(`{3,})/gm;
|
||||
let match: RegExpExecArray | null;
|
||||
while ((match = regex.exec(changelog)) != null) {
|
||||
// Skip over code blocks so we don't match any headings inside of them
|
||||
if (match[3]) {
|
||||
const endOfCodeBlockRegex = new RegExp(`^${match[3]}`, "gm");
|
||||
endOfCodeBlockRegex.lastIndex = regex.lastIndex;
|
||||
const endMatch = endOfCodeBlockRegex.exec(changelog);
|
||||
if (endMatch) {
|
||||
// Start next search for headings after the end of the code block
|
||||
regex.lastIndex = endOfCodeBlockRegex.lastIndex;
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
let node = nodes[i];
|
||||
if (node.type === "heading") {
|
||||
let stringified: string = mdastToString(node);
|
||||
let match = stringified.toLowerCase().match(/(major|minor|patch)/);
|
||||
if (match !== null) {
|
||||
let level = BumpLevels[match[0] as "major" | "minor" | "patch"];
|
||||
highestLevel = Math.max(level, highestLevel);
|
||||
}
|
||||
if (headingStartInfo === undefined && stringified === version) {
|
||||
headingStartInfo = {
|
||||
index: i,
|
||||
depth: node.depth,
|
||||
};
|
||||
continue;
|
||||
} else {
|
||||
// Can't find end of code block, probably malformed
|
||||
}
|
||||
if (
|
||||
endIndex === undefined &&
|
||||
headingStartInfo !== undefined &&
|
||||
headingStartInfo.depth === node.depth
|
||||
) {
|
||||
endIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const headingDepth = match[1].length;
|
||||
const headingText = match[2].trim();
|
||||
|
||||
// Search for the highest bump level in the entire changelog
|
||||
const levelMatch = /(major|minor|patch)/.exec(headingText.toLowerCase());
|
||||
if (levelMatch != null) {
|
||||
const level = BumpLevels[levelMatch[0] as "major" | "minor" | "patch"];
|
||||
highestLevel = Math.max(level, highestLevel);
|
||||
}
|
||||
|
||||
// Search for heading of the entry
|
||||
if (headingText === version) {
|
||||
headingStartInfo = { index: regex.lastIndex, depth: headingDepth };
|
||||
continue;
|
||||
}
|
||||
|
||||
// If we've found the entry heading, search for the closing heading with the same depth
|
||||
if (headingStartInfo && headingDepth === headingStartInfo.depth) {
|
||||
endIndex = match.index;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (headingStartInfo) {
|
||||
ast.children = ast.children.slice(headingStartInfo.index + 1, endIndex);
|
||||
}
|
||||
return {
|
||||
content: changelog.slice(headingStartInfo?.index, endIndex).trim(),
|
||||
highestLevel,
|
||||
content: unified().use(remarkStringify).stringify(ast),
|
||||
highestLevel: highestLevel,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+7
-4
@@ -1,11 +1,14 @@
|
||||
{
|
||||
"extends": "@tsconfig/node24/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"allowImportingTsExtensions": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"strict": true,
|
||||
"isolatedModules": true,
|
||||
"module": "node18",
|
||||
"moduleResolution": "node16",
|
||||
"noEmit": true,
|
||||
"types": ["node"]
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"target": "esnext",
|
||||
"verbatimModuleSyntax": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user