Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into use-web-hash-history-in-ui
- Loading branch information
Showing
522 changed files
with
19,550 additions
and
7,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
* text=auto eol=lf | ||
|
||
test/reporters/fixtures/indicator-position.test.js eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Description | ||
|
||
<!-- Please insert your description here and provide especially info about the "what" this PR is solving --> | ||
|
||
<!-- You can also add additional context here --> | ||
|
||
### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: | ||
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed. | ||
- [ ] Ideally, include a test that fails without this PR but passes with it. | ||
- [ ] Please, don't make changes to `pnpm-lock.yaml` unless you introduce a new test example. | ||
|
||
### Tests | ||
- [ ] Run the tests with `pnpm test:ci`. | ||
|
||
### Documentation | ||
- [ ] If you introduce new functionality, document it. You can run documentation with `pnpm run docs` command. | ||
|
||
### Changesets | ||
- [ ] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with `feat:`, `fix:`, `perf:`, `docs:`, or `chore:`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: ecosystem-ci trigger | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
trigger: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'vitest-dev/vitest' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run') | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const user = context.payload.sender.login | ||
console.log(`Validate user: ${user}`) | ||
let hasTriagePermission = false | ||
try { | ||
const { data } = await github.rest.repos.getCollaboratorPermissionLevel({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
username: user, | ||
}); | ||
hasTriagePermission = data.user.permissions.triage | ||
} catch (e) { | ||
console.warn(e) | ||
} | ||
if (hasTriagePermission) { | ||
console.log('Allowed') | ||
await github.rest.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: '+1', | ||
}) | ||
} else { | ||
console.log('Not allowed') | ||
await github.rest.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: '-1', | ||
}) | ||
throw new Error('not allowed') | ||
} | ||
- uses: actions/github-script@v6 | ||
id: get-pr-data | ||
with: | ||
script: | | ||
console.log(`Get PR info: ${context.repo.owner}/${context.repo.repo}#${context.issue.number}`) | ||
const { data: pr } = await github.rest.pulls.get({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number | ||
}) | ||
return { | ||
num: context.issue.number, | ||
branchName: pr.head.ref, | ||
repo: pr.head.repo.full_name | ||
} | ||
- id: generate-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_ID }} | ||
private_key: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY }} | ||
repository: '${{ github.repository_owner }}/vitest-ecosystem-ci' | ||
- uses: actions/github-script@v6 | ||
id: trigger | ||
env: | ||
COMMENT: ${{ github.event.comment.body }} | ||
with: | ||
github-token: ${{ steps.generate-token.outputs.token }} | ||
result-encoding: string | ||
script: | | ||
const comment = process.env.COMMENT.trim() | ||
const prData = ${{ steps.get-pr-data.outputs.result }} | ||
const suite = comment.split('\n')[0].replace(/^\/ecosystem-ci run/, '').trim() | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: 'vitest-ecosystem-ci', | ||
workflow_id: 'ecosystem-ci-from-pr.yml', | ||
ref: 'main', | ||
inputs: { | ||
prNumber: '' + prData.num, | ||
branchName: prData.branchName, | ||
repo: prData.repo, | ||
suite: suite === '' ? '-' : suite | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Lock Closed Issues | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
action: | ||
if: github.repository == 'vitest-dev/vitest' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-inactive-days: '14' | ||
# issue-comment: | | ||
# This issue has been locked since it has been closed for more than 14 days. | ||
# | ||
# If you have found a concrete bug or regression related to it, please open a new [bug report](https://github.com/vitejs/vite/issues/new/choose) with a reproduction against the latest Vite version. If you have any other comments you should join the chat at [Vite Land](https://chat.vitejs.dev) or create a new [discussion](https://github.com/vitejs/vite/discussions). | ||
issue-lock-reason: '' | ||
process-only: issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ docs/public/user-avatars | |
docs/public/sponsors | ||
.eslintcache | ||
docs/.vitepress/cache/ | ||
!test/cwd/**/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.