Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Jun 2, 2022
2 parents cb88a40 + 5d1255c commit 4a41394
Show file tree
Hide file tree
Showing 126 changed files with 31,947 additions and 11,518 deletions.
15 changes: 6 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
const eslintConfig = {
module.exports = {
root: true,
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: [ require.resolve( '@wordpress/babel-preset-default' ) ],
settings: {
jsdoc: {
mode: 'typescript',
},
},
env: {
browser: true,
rules: {
'@wordpress/no-unsafe-wp-apis': 'off',
},
};

module.exports = eslintConfig;
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.eslintrc.js export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.markdownlintignore export-ignore
.npmpackagejsonlintrc.json export-ignore
.prettierrc.js export-ignore
.stylelintrc.json export-ignore
Expand Down
72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/01-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "🐛 Bug report"
description: "Report a bug with this project."
labels: "bug"
body:
- type: markdown
attributes:
value: |
Thanks for submitting a bug report! Please complete as much of the form as you can.
- type: textarea
id: issue-description
attributes:
label: Describe the Issue
description: Please write a brief and clear description of the bug, including what you expect to happen and what actually happened.
placeholder: |
The `...` feature is not working properly. I expect `...` to happen, but `...` happens instead.
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: Please write the steps needed to reproduce the bug.
placeholder: |
1. Go to `...`
2. Click on `...`
3. Scroll down to `...`
4. See error
validations:
required: true

- type: textarea
id: screenshots
attributes:
label: Screenshots, Screen recording, Code snippet
description: |
If possible, please upload a screenshot or screen recording that shows the bug. You can use a program like LICEcap to create a GIF screen recording: https://www.cockos.com/licecap/.
You can attach images or log files by clicking this area to highlight it and then dragging files in. For small snippets paste it directly here, or you can use GitHub Gist to share multiple code files: https://gist.github.com.
validations:
required: false

- type: textarea
id: environment-general
attributes:
label: Environment Information
placeholder: |
- Device: <!-- [e.g. PC, MacBook] -->
- OS: <!-- [e.g. Windows 10, MacOS 10.14.3] -->
- WordPress version: <!-- [e.g. 5.9.3 ] -->
- Browser and version: <!-- [e.g. Firefox 65.0.1, Chrome 73.0.3683.75, Safari 12.0.3] -->
validations:
required: false

- type: dropdown
id: environment-version
attributes:
label: Version
description: What version of this project are you running?
options:
- Latest released version (stable)
- Development version (develop)
- Other

- type: checkboxes
id: environment-theme
attributes:
label: Using the HRS Theme
description: HRS plugins are optimized to run with the HRS Theme. Please indicate whether it is active.
options:
- label: The HRS Theme is active.
required: false
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/02-enhancement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "✨ Enhancement"
description: "Suggest an idea for this project."
labels: "enhancement"
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to suggest an improvement. Please complete as much of the form as you can.
- type: textarea
id: problem
attributes:
label: Is your suggestion related to a problem? Please describe.
description: Please describe the problem you are trying to solve and how it should work.
placeholder: |
I use this project to `...` but it `...describe problem...`. I would like `...` so that `...describe benefit...`.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Describe alternatives you have considered.
description: |
Please provide a concise description of any alternative solutions you've considered.
placeholder: |
I considered `...describe alternative...`, but I feel my proposed solution is better because `...reasons...`.
validations:
required: false
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/03-help.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "💡 Need help?"
description: "Have a question? We will try to help!"
labels: "question"
body:
- type: markdown
attributes:
value: |
Complete as much of this form as you can if you have a question that is neither a bug nor an enhancement.
- type: textarea
attributes:
label: Your question
description: Provide a clear and concise description of your question.
validations:
required: true
51 changes: 0 additions & 51 deletions .github/ISSUE_TEMPLATE/Bug_report.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/Feature_request.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Documentation
url: https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/#readme
about: Information on installation, updating, and development is found in the Readme.
23 changes: 14 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<!-- Learn the overall process and best practices for pull requests at https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/blob/develop/CONTRIBUTING.md. -->
<!-- Learn the overall process and best practices for pull requests at https://github.com/washingtonstateuniversity/hrswp-employee-recognition/blob/develop/CONTRIBUTING.md. -->

## Description
<!-- Please describe what you have changed or added -->

## How has this been tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, tests ran to see how -->
<!-- your change affects other areas of the code, etc. -->

## Screenshots <!-- if applicable -->
<!-- Briefly describe what you have changed or added. -->

## Types of changes

<!-- What types of changes does your code introduce? -->
<!-- Bug fix (non-breaking change which fixes an issue) -->
<!-- New feature (non-breaking change which adds functionality) -->
<!-- Breaking change (fix or feature that would cause existing functionality to not work as expected) -->

## How has this been tested?

<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, tests ran to see how -->
<!-- your change affects other areas of the code, etc. -->

## Screenshots

<!-- if applicable -->

## Checklist:

- [ ] My code is tested.
- [ ] My code follows the WordPress code style. <!-- Check code: `npm run lint`, Guidelines: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/ -->
- [ ] My code follows the accessibility standards. <!-- Guidelines: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/accessibility/ -->
- [ ] My code has proper inline documentation. <!-- Guidelines: https://developer.wordpress.org/coding-standards/inline-documentation-standards/ -->
- [ ] I've included developer documentation if appropriate.
- [ ] I've included developer documentation if appropriate
124 changes: 63 additions & 61 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,68 @@
name: Coding Standards

on:
push:
branches:
- develop
- stable
- release/**
pull_request:
branches:
- develop
push:
branches:
- develop
- stable
- release/**
pull_request:
branches:
- develop

jobs:
lint:
name: Script and Style Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log debug information
run: |
npm --version
node --version
git --version
- name: Install NodeJS v14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Log debug information
run: |
npm --version
node --version
- name: Install npm dependencies
run: npm ci
- name: Run eslint
run: npm run lint:scripts
- name: Run stylelint
run: npm run lint:styles
- name: Run npmPkgJsonLint
run: npm run lint:pkg
phpcs:
name: PHP Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr
- name: Log debug information
run: |
php --version
composer --version
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: "--no-progress --no-ansi --no-interaction"
- name: Make Composer packages available globally
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
- name: Log PHPCS debug information
run: phpcs -i
- name: Run PHPCS
run: phpcs -q -n --report=checkstyle | cs2pr
lint:
name: Script and Style Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log debug information
run: |
npm --version
node --version
git --version
- name: Install NodeJS v14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Log debug information
run: |
npm --version
node --version
- name: Install npm dependencies
run: npm ci
- name: Run eslint
run: npm run lint:script
- name: Run stylelint
run: npm run lint:style
- name: Run npmPkgJsonLint
run: npm run lint:pkg
- name: Run markdownlint
run: npm run lint:docs
phpcs:
name: PHP Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr
- name: Log debug information
run: |
php --version
composer --version
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: '--no-progress --no-ansi --no-interaction'
- name: Make Composer packages available globally
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
- name: Log PHPCS debug information
run: phpcs -i
- name: Run PHPCS
run: phpcs -q -n --report=checkstyle . | cs2pr
Loading

0 comments on commit 4a41394

Please sign in to comment.