add-cms
This commit is contained in:
8
source/admin/.github/.kodiak.toml
vendored
Normal file
8
source/admin/.github/.kodiak.toml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
version = 1
|
||||
|
||||
[merge.automerge_dependencies]
|
||||
versions = ["minor", "patch"]
|
||||
usernames = ["renovate"]
|
||||
|
||||
[approve]
|
||||
auto_approve_usernames = ["renovate"]
|
||||
1
source/admin/.github/CODEOWNERS
vendored
Normal file
1
source/admin/.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* @decaporg/maintainers
|
||||
2
source/admin/.github/FUNDING.yml
vendored
Normal file
2
source/admin/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
github: decaporg
|
||||
open_collective: decap
|
||||
48
source/admin/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
48
source/admin/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Report a problem you are experiencing
|
||||
title: 'Please replace with a clear and descriptive title'
|
||||
labels: 'type: bug'
|
||||
---
|
||||
|
||||
<!--
|
||||
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please add a comment to the existing issue instead.
|
||||
|
||||
Please include as much of the information requested below as possible. If you fail to provide the requested information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
|
||||
|
||||
If you have an issue that can be shown visually, please provide a screenshot or GIF of the problem as well.
|
||||
-->
|
||||
|
||||
**Describe the bug**
|
||||
<!-- A clear and concise description of what the bug is. -->
|
||||
|
||||
**To Reproduce**
|
||||
<!--
|
||||
Steps to reproduce the behavior. For example:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
-->
|
||||
|
||||
**Expected behavior**
|
||||
<!-- A clear and concise description of what you expected to happen. -->
|
||||
|
||||
**Screenshots**
|
||||
<!-- If applicable, add screenshots to help explain your problem. -->
|
||||
|
||||
**Applicable Versions:**
|
||||
<!--You can find the CMS version by checking your web browser's developer tools console while in the CMS. -->
|
||||
- Decap CMS version: [e.g. 2.0.4]
|
||||
- Git provider: [e.g. GitHub, BitBucket]
|
||||
- OS: [e.g. Windows 7]
|
||||
- Browser version [e.g. chrome 22, safari 11]
|
||||
<!-- If using NPM: -->
|
||||
- Node.JS version:
|
||||
|
||||
**CMS configuration**
|
||||
<!-- Please link or paste your CMS `config.yml` here. -->
|
||||
|
||||
|
||||
**Additional context**
|
||||
<!-- Add any other context about the problem here. -->
|
||||
26
source/admin/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
26
source/admin/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: 'Please replace with a clear and descriptive title'
|
||||
labels: 'type: feature'
|
||||
---
|
||||
|
||||
<!--
|
||||
Please make sure that we do not have any requests for this feature already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please add a comment to the existing issue instead.
|
||||
-->
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
<!--
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
-->
|
||||
|
||||
**Describe the solution you'd like**
|
||||
<!-- A clear and concise description of what you want to happen. -->
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
<!--
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
-->
|
||||
|
||||
**Additional context**
|
||||
<!-- Add any other context or screenshots about the feature request here. -->
|
||||
34
source/admin/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
34
source/admin/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
Thanks for submitting a pull request!
|
||||
|
||||
Please make sure you've read and understood our contributing guidelines here:
|
||||
https://github.com/decaporg/decap-cms/blob/main/CONTRIBUTING.md
|
||||
|
||||
If this is a bug fix, make sure your description includes "fixes #xxxx", or
|
||||
"closes #xxxx", where #xxxx is the issue number.
|
||||
|
||||
Please provide enough information so that others can review your pull request.
|
||||
The first two fields are mandatory:
|
||||
-->
|
||||
|
||||
**Summary**
|
||||
|
||||
<!--
|
||||
Explain the **motivation** for making this change.
|
||||
What existing problem does the pull request solve?
|
||||
-->
|
||||
|
||||
**Test plan**
|
||||
|
||||
<!--
|
||||
Demonstrate the code is solid.
|
||||
Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
|
||||
-->
|
||||
|
||||
**Checklist**
|
||||
|
||||
Please add a `x` inside each checkbox:
|
||||
|
||||
- [ ] I have read the [contribution guidelines](https://github.com/decaporg/decap-cms/blob/main/CONTRIBUTING.md).
|
||||
|
||||
**A picture of a cute animal (not mandatory but encouraged)**
|
||||
17
source/admin/.github/stale.yml
vendored
Normal file
17
source/admin/.github/stale.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 60
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 14
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: 'status: stale'
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
33
source/admin/.github/workflows/create-release.yml
vendored
Normal file
33
source/admin/.github/workflows/create-release.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Create release
|
||||
|
||||
on:
|
||||
create
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
name: Create GitHub Release
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/decap-cms@')
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get semver number
|
||||
id: get_semver
|
||||
env:
|
||||
TAG_NAME: ${{ github.ref }}
|
||||
run: echo "::set-output name=pkg::${TAG_NAME:10}"
|
||||
|
||||
- name: Create release on GitHub API
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ steps.get_semver.outputs.pkg }}
|
||||
body: |
|
||||
:scroll: [Changelog](https://github.com/${{ github.repository }}/blob/${{ steps.get_semver.outputs.pkg }}/CHANGELOG.md)
|
||||
draft: false
|
||||
prerelease: false
|
||||
30
source/admin/.github/workflows/labeler.yml
vendored
Normal file
30
source/admin/.github/workflows/labeler.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Label PR
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited]
|
||||
|
||||
jobs:
|
||||
label-pr:
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: netlify/pr-labeler-action@v1.0.0
|
||||
if: startsWith(github.event.pull_request.title, 'fix')
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
label: 'type: bug'
|
||||
- uses: netlify/pr-labeler-action@v1.0.0
|
||||
if: startsWith(github.event.pull_request.title, 'chore')
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
label: 'type: chore'
|
||||
- uses: netlify/pr-labeler-action@v1.0.0
|
||||
if: startsWith(github.event.pull_request.title, 'feat')
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
label: 'type: feature'
|
||||
- uses: netlify/pr-labeler-action@v1.0.0
|
||||
if: startsWith(github.event.pull_request.title, 'security')
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
label: 'type: security'
|
||||
62
source/admin/.github/workflows/nodejs.yml
vendored
Normal file
62
source/admin/.github/workflows/nodejs.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Node CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
changes:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
cms: ${{ steps.filter.outputs.cms }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
cms:
|
||||
- '!website/**'
|
||||
|
||||
build:
|
||||
needs: changes
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||
node-version: [20.x, 22.x]
|
||||
fail-fast: true
|
||||
if: ${{ needs.changes.outputs.cms == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
check-latest: true
|
||||
cache: 'npm'
|
||||
- name: log versions
|
||||
run: node --version && npm --version && yarn --version
|
||||
- name: install dependencies
|
||||
run: npm ci
|
||||
- name: run unit tests
|
||||
run: npm run test:ci
|
||||
- name: build demo site
|
||||
run: npm run build:demo
|
||||
- name: run e2e tests
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x'
|
||||
run: npm run test:e2e:run-ci
|
||||
env:
|
||||
IS_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true || github.repository_owner != 'decaporg' }}
|
||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
TZ: Europe/Amsterdam
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x' && failure()
|
||||
with:
|
||||
name: cypress-results
|
||||
path: |
|
||||
cypress/screenshots
|
||||
cypress/videos
|
||||
|
||||
Reference in New Issue
Block a user