Skip to content

Commit

Permalink
Merge branch 'main' into disable-migrations-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly committed Dec 28, 2022
2 parents 80ea7d8 + 3446db4 commit e912c0a
Show file tree
Hide file tree
Showing 949 changed files with 68,706 additions and 51,166 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
overrides: [
{
files: ['packages/**/*.js', 'test/**/*.js', 'scripts/**/*.js'],
files: ['packages/**/*.js', 'test/**/*.js', 'scripts/**/*.js', 'jest.*.js'],
excludedFiles: frontPaths,
...require('./.eslintrc.back.js'),
},
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/check-pr-status/package.json
@@ -1,6 +1,6 @@
{
"name": "check-pr-status",
"version": "4.4.3",
"version": "4.5.4",
"main": "dist/index.js",
"license": "MIT",
"private": true,
Expand Down
12 changes: 0 additions & 12 deletions .github/actions/install-modules/action.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/actions/install-modules/script.sh

This file was deleted.

@@ -1,5 +1,5 @@
name: 'Run E2E tests'
description: 'Run end to end tests'
name: 'Run API tests'
description: 'Run api tests'
inputs:
dbOptions:
description: 'Database options'
Expand Down
Expand Up @@ -9,4 +9,4 @@ export JWT_SECRET="aSecret"
opts=($DB_OPTIONS)

yarn run -s test:generate-app "${opts[@]}"
yarn run -s test:e2e $@
yarn run -s test:api --no-generate-app
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Expand Up @@ -19,3 +19,10 @@ updates:
labels:
- 'source: dependencies'
- 'pr: chore'
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
labels:
- 'source: dependencies'
- 'pr: chore'
1 change: 1 addition & 0 deletions .github/workflows/addToProject.yml
Expand Up @@ -6,6 +6,7 @@ on:
- opened
- transferred

permissions: {}
jobs:
add-to-project:
name: Add issue to Support Team project
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/checks.yml
Expand Up @@ -17,8 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/check-pr-status

security-lockfile-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- uses: ./.github/actions/security/lockfile
@@ -1,4 +1,4 @@
name: Deploy static content to Pages
name: Deploy contributor doc

on:
push:
Expand All @@ -17,8 +17,12 @@ defaults:
run:
working-directory: docs

permissions: {}
jobs:
deploy:
permissions:
contents: write # to push pages branch (peaceiris/actions-gh-pages)

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/db/postgres/init.sql
@@ -0,0 +1 @@
CREATE SCHEMA myschema;
30 changes: 30 additions & 0 deletions .github/workflows/issues_dailyCron.yml
@@ -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!
207 changes: 207 additions & 0 deletions .github/workflows/issues_handleLabel.yml
@@ -0,0 +1,207 @@
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!
# Support team auto assign
- name: 'Assign: add random solution engineer to reproduction issues'
if: "${{ github.event.label.name == 'status: pending reproduction' }}"
uses: actions-cool/issues-helper@v3
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
assignees: 'derrickmehaffy, kasonde, bolg55'
random-to: 1

# v3 Legacy Issues
- name: 'Comment: unsupported v3 issues'
if: "${{ github.event.label.name == 'flag: v3-unsupported' }}"
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 potential bug report, please keep in mind that we are no longer accepting bug reports unless they could be deemed high or critical severity or related to security in nature.
The recommended action we suggest for v3 users is to utilize the various migration resources to upgrade your package from Strapi v3 to Strapi v4:
- [Code Migration Guide](https://docs.strapi.io/developer-docs/latest/update-migration-guides/migration-guides/v4/code-migration.html) and/or [Codemods project](https://github.com/strapi/codemods)
- [Data Migration Guide](https://docs.strapi.io/developer-docs/latest/update-migration-guides/migration-guides/v4/data-migration.html) and/or [Data Migration Scripts](https://github.com/strapi/migration-scripts)
- [Plugin Migration Guide](https://docs.strapi.io/developer-docs/latest/update-migration-guides/migration-guides/v4/plugin-migration.html)
Please see our [Security file](https://github.com/strapi/strapi/security) for more information about supported versions.
For now this issue is marked as closed as we do not believe this issue is Critical/High Severity nor related to security.
Thank You
- name: 'Close: unsupported v3 issues'
if: "${{ github.event.label.name == 'flag: v3-unsupported' }}"
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
close-reason: 'not_planned'

# Feature request redirections
- name: 'Comment: redirect feature request to canny'
if: "${{ github.event.label.name == 'issue: feature request' }}"
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 }},
First thank you for reporting this feature need.
To manage feature requests and the Strapi roadmap, we are using Canny.
You will be able to access the Public Roadmap here: https://feedback.strapi.io.
In your message, please mention the URL of this thread in case some messages are posted there. But the most important is to have your feedback posted on our feedback/roadmap site.
The product team is reading EVERY comment, that really helps us to develop the project in the right direction. We are keeping all feature requests and project insights in one place, our feedback website.
In order to keep our GitHub issues clean and for valid bug reports this issue will be marked as closed, but please feel free to continue the discussion with other community members here.
Thank you for your insight and have a good day.
- name: 'Close: redirect feature request to canny'
if: "${{ github.event.label.name == 'issue: feature request' }}"
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
close-reason: 'completed'

# 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'

# Critical issue alerting
# - name: alert team to critical issue
# if: "${{ github.event.label.name == 'severity: critical' }}"
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_CHANNEL: crisis
# SLACK_COLOR: bad
# SLACK_TITLE: Issue marked as Critical!
# SLACK_USERNAME: Strapi-Alerts
# SLACK_FOOTER: Triggered by GitHub Actions

# Auto assign issues to projects based on source
- name: assign issues to Content squad project
uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/strapi/projects/11
github-token: ${{ secrets.PROJECT_TRANSFER_TOKEN }}
labeled: 'source: core:admin, source: core:content-manager, source: core:upload, source: plugin:i18n'
label-operator: OR
- name: assign issues to DevExp squad project
uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/strapi/projects/13
github-token: ${{ secrets.PROJECT_TRANSFER_TOKEN }}
labeled: 'source: core:content-type-builder, source: core:database, source: core:email, source: core:strapi, source: core:utils, source: plugin:graphql, source: plugin:users-permissions, source: typescript'
label-operator: OR
- name: assign issues to Expansions squad project
uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/strapi/projects/4
github-token: ${{ secrets.PROJECT_TRANSFER_TOKEN }}
labeled: 'source: marketplace, source: plugin:sentry, source: plugin:documentation'
label-operator: OR
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Expand Up @@ -5,6 +5,9 @@ on:
- cron: '0 0 * * 2-6'
workflow_dispatch:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
publish:
name: 'Publish'
Expand Down

0 comments on commit e912c0a

Please sign in to comment.