-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4cfe9ec
Showing
88 changed files
with
13,461 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"commit": false, | ||
"changelog": false, | ||
"access": "public", | ||
"baseBranch": "main" | ||
} |
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,26 @@ | ||
import type { UserConfig } from '@commitlint/types'; | ||
import { RuleConfigSeverity } from '@commitlint/types'; | ||
|
||
const config: UserConfig = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [ | ||
RuleConfigSeverity.Error, | ||
'always', | ||
[ | ||
'chore', | ||
'ci', | ||
'docs', | ||
'enhancement', | ||
'feat', | ||
'fix', | ||
'release', | ||
'revert', | ||
'security', | ||
'test', | ||
], | ||
], | ||
}, | ||
}; | ||
|
||
export default config; |
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,16 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[{package.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,3 @@ | ||
bin | ||
coverage | ||
dist |
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,58 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['@strapi/eslint-config/back/typescript'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'eslint-plugin-rxjs'], | ||
parserOptions: { | ||
project: ['./tsconfig.eslint.json'], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['./scripts/**/*', './src/cli/errors.ts', './src/cli/index.ts'], | ||
rules: { | ||
'no-console': ['error', { allow: ['error'] }], | ||
}, | ||
}, | ||
{ | ||
files: ['./src/node/core/logger.ts'], | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
], | ||
rules: { | ||
'rxjs/finnish': 'error', | ||
// TODO: The following rules from @strapi/eslint-config/back/typescript are disabled because they're causing problems we need to solve or fix | ||
// to be solved in configuration | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
'import/prefer-default-export': 'off', | ||
'import/namespace': 'off', | ||
'node/no-missing-import': 'off', | ||
'no-process-exit': 'off', | ||
'import/no-dynamic-require': 'off', | ||
'global-require': 'off', | ||
'no-underscore-dangle': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
/** | ||
* Force us to use the Logger instance. | ||
*/ | ||
'no-console': 'error', | ||
'import/extensions': 'off', | ||
'import/order': [ | ||
'error', | ||
{ | ||
groups: [ | ||
['external', 'internal', 'builtin'], | ||
'parent', | ||
['sibling', 'index'], | ||
'object', | ||
'type', | ||
], | ||
'newlines-between': 'always', | ||
alphabetize: { order: 'asc', caseInsensitive: true }, | ||
}, | ||
], | ||
'nonblock-statement-body-position': ['error', 'below'], | ||
}, | ||
}; |
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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,38 @@ | ||
name: 🐛 Bug Report | ||
description: Create a report to help us improve this repo. | ||
title: '[bug]: ' | ||
labels: ['issue: bug'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for filing a bug report! | ||
- type: textarea | ||
attributes: | ||
label: What version of `@strapi/blocks-react-renderer` are you using? | ||
placeholder: | | ||
- Npm version | ||
- Node.js version | ||
- React version: | ||
- `@strapi/blocks-react-renderer` version | ||
- Browser | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "What's Wrong?" | ||
description: A concise description of what you expected to happen (please provide screenshots). | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: To Reproduce | ||
description: Steps to reproduce the behavior | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behaviour | ||
description: What you expected to happen | ||
validations: | ||
required: true |
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,22 @@ | ||
name: 🚀 Feature Request | ||
description: Submit a request for a new feature | ||
title: '[feat]: ' | ||
labels: ['issue: enhancement'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for contributing a feature request! | ||
- type: textarea | ||
attributes: | ||
label: A clear and concise description of what the feature is | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Why should this feature be included? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Please provide an example for how this would work |
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,15 @@ | ||
### What does it do? | ||
|
||
Describe the technical changes you did. | ||
|
||
### Why is it needed? | ||
|
||
Describe the issue you are solving. | ||
|
||
### How to test it? | ||
|
||
Provide information about the environment and the path to verify the behaviour. | ||
|
||
### Related issue(s)/PR(s) | ||
|
||
Let us know if this is related to any issue/pull request |
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,30 @@ | ||
name: 'Daily Cron - 00:00' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
issues: write | ||
statuses: read | ||
|
||
jobs: | ||
cron-tasks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check for inactive issues that can't be reproduced | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: 'status: can not reproduce' | ||
inactive-day: 14 | ||
close-reason: 'completed' | ||
body: | | ||
Hello! | ||
As we have not received any new or updated information to reproduce this issue in the last 14 days we are marking this issue as closed. Should you have new information please feel free to respond and we will consider reopening it. | ||
If anyone else have updated information for this issue, please open up a new bug report and simply reference this closed bug report so that we can get any new information you may have. If you have questions please refer to the [contributor's guide](https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue) on opening issues. | ||
Thank you and have a great day! |
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,96 @@ | ||
name: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
actions: read | ||
checks: read | ||
contents: read | ||
repository-projects: read | ||
statuses: read | ||
|
||
jobs: | ||
issue-labeled: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Unable to Reproduce Tasks | ||
- name: 'Comment: unable to reproduce' | ||
if: "${{ github.event.label.name == 'status: can not reproduce' }}" | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
> This is a templated message | ||
Hello @${{ github.event.issue.user.login }}, | ||
Thank you for reporting this bug, however we are unable to reproduce the issue you described given the information we have on hand. Can you please create a fresh project that you are able to reproduce the issue in, provide clear steps to reproduce this issue, and either upload this fresh project to a new GitHub repo or compress it into a `.zip` and upload it on this issue? | ||
We would greatly appreciate your assistance with this, by working in a fresh project it will cut out any possible variables that might be unrelated. | ||
Please note that issues labeled with `status: can not reproduce` will be closed in 14 days if there is no activity. | ||
Thank you! | ||
# Invalid bug report template actions | ||
- name: 'Comment: invalid bug report template' | ||
if: "${{ github.event.label.name == 'flag: invalid template' }}" | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
> This is a templated message | ||
Hello @${{ github.event.issue.user.login }}, | ||
We ask that you please follow the [issue template](https://raw.githubusercontent.com/strapi/strapi/master/.github/ISSUE_TEMPLATE/BUG_REPORT.md). | ||
A proper issue submission let's us better understand the origin of your bug and therefore help you. We will reopen your issue when we receive the issue following the template guidelines and properly fill out the template. You can see the template guidelines for bug reports [here](https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md#reporting-an-issue). | ||
Please update the issue with the template and we can reopen this report. | ||
Thank you. | ||
- name: 'Close: invalid bug report template' | ||
if: "${{ github.event.label.name == 'flag: invalid template' }}" | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issue' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
close-reason: 'not_planned' | ||
|
||
# Redirect questions to community sources | ||
- name: 'Comment: redirect question to community' | ||
if: "${{ github.event.label.name == 'flag: question' }}" | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
> This is a templated message | ||
Hello @${{ github.event.issue.user.login }}, | ||
I see you are wanting to ask a question that is not really a bug report, | ||
- questions should be directed to [our forum](https://forum.strapi.io) or our [Discord](https://discord.strapi.io) | ||
- feature requests should be directed to our [feedback and feature request database](https://feedback.strapi.io) | ||
Please see the following contributing guidelines for asking a question [here](https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md#reporting-an-issue). | ||
Thank you. | ||
- name: 'Close: redirect question to community' | ||
if: "${{ github.event.label.name == 'flag: question' }}" | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issue' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
close-reason: 'complete' |
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,33 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
node-version: lts/* | ||
- run: corepack enable && pnpm --version | ||
- run: pnpm install | ||
- run: pnpm build | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm version | ||
publish: pnpm release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
Oops, something went wrong.