Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/card-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Backlog:
'In progress':
- 'Status: In Progress'
86 changes: 43 additions & 43 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# Configuration for request-info - https://github.com/behaviorbot/request-info
# *Required* Comment to reply with
requestInfoReplyComment: >
:clap: We would appreciate it if you could provide us with more info about this issue/pr!
# *OPTIONAL* default titles to check against for lack of descriptiveness
# MUST BE ALL LOWERCASE
requestInfoDefaultTitles:
- update readme.md
- updates
- update
# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
requestInfoLabelToAdd: "Status: More Information Needed"
# Configuration for welcome - https://github.com/behaviorbot/welcome
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
# Comment to be posted to on first time issues
newIssueWelcomeComment: >
:raised_hands: Thanks for opening your first issue here! Be sure to follow the issue template!
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
:raised_hands: Thanks for opening this pull request! Please check out our contributing guidelines.
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
:tada: Congrats on merging your first pull request! We here at behaviorbot are proud of you!
# Configuration for todo - https://github.com/jasonetco/todo
todo:
# Configuration for request-info - https://github.com/behaviorbot/request-info

# *Required* Comment to reply with
requestInfoReplyComment: >
:clap: We would appreciate it if you could provide us with more info about this issue/pr!

# *OPTIONAL* default titles to check against for lack of descriptiveness
# MUST BE ALL LOWERCASE
requestInfoDefaultTitles:
- update readme.md
- updates
- update

# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
requestInfoLabelToAdd: "Status: More Information Needed"




# Configuration for welcome - https://github.com/behaviorbot/welcome

# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome

# Comment to be posted to on first time issues
newIssueWelcomeComment: >
:raised_hands: Thanks for opening your first issue here! Be sure to follow the issue template!

# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome

# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
:raised_hands: Thanks for opening this pull request! Please check out our contributing guidelines.

# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge

# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
:tada: Congrats on merging your first pull request! We here at behaviorbot are proud of you!



# Configuration for todo - https://github.com/jasonetco/todo
todo:
- label: "Type: Todo"
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
javascript:
- '**/*.js'
typescript:
- '**/*.ts'
php:
- '**/*.php'
dependencies:
- '**/*.lock'
- '**/*-lock.json'

'Type: Testing':
- '**/tests/*'
- '**/test/*'
- '**/__tests__/*'

'Type: Documentation':
- '**/*.md'
4 changes: 2 additions & 2 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 30
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: "Status: More Information Needed"
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
Expand All @@ -10,4 +10,4 @@ closeComment: >
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
that we can investigate further.
6 changes: 3 additions & 3 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'Type: Feature': feature/*
'Type: Feature': ['feature/*', 'feat/*']
'Type: Bug': fix/*
'Type: Maintenance': patch/*
'Type: Maintenance': ['patch/*', 'chore/*']
'Type: Release': release/*
'Type: Refactoring': ['refactor/*', 'refactoring/*']
'Type: Documentation': ['docs/*', 'doc/*']
'Type: Documentation': ['docs/*', 'doc/*']
6 changes: 4 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ categories:
- title: ':bug: Bug Fixes'
labels:
- 'Type: Bug'
- 'Type: Maintenance'
- 'Type: Security'
- title: ':wrench: Maintenance'
labels:
- 'Type: Maintenance'
- title: ':green_book: Docs'
labels:
- 'Type: Documentation'
Expand All @@ -23,4 +25,4 @@ categories:
template: |
## What’s Changed

$CHANGES
$CHANGES
32 changes: 16 additions & 16 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- "Priority: Critical"
- "Type: Security"
# Label to use when marking an issue as stale
staleLabel: "Status: Abandoned"
# 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
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- "Priority: Critical"
- "Type: Security"
# Label to use when marking an issue as stale
staleLabel: "Status: Abandoned"
# 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
157 changes: 157 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
on:
pull_request:
push:
branches:
- master
tags:
- "!*"

name: Build

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Install Package dependencies
run: composer prepare:js
- name: Check code style
run: composer eslint
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
phpcs:
name: PHP Code Sniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
- name: Install Composer dependencies
run: composer prepare:php
- name: Check code style
run: composer phpcs
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
phpmd:
name: PHPMD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
- name: Install Composer dependencies
run: composer prepare:php
- name: Check code style
run: composer phpmd
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

jest:
name: Jest
needs: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Install Package dependencies
run: composer prepare:js
- name: Run tests
run: composer jest
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
phpunit:
name: PHPUnit
needs: [phpcs, phpmd]
runs-on: ubuntu-16.04
services:
mysql:
image: mysql
ports:
- 3306
strategy:
matrix:
php: ['7.0', '7.3', '5.6']
WP_VERSION: ['latest', '5.2']
WP_MULTISITE: ['0', '1']
include:
- php: '7.3'
WP_VERSION: 'latest'
WP_MULTISITE: '1'
ACTIVATE_POPULAR_PLUGINS: 1
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Switch PHP version
env:
PHP_VERSION: ${{ matrix.php }}
run: sudo ln -sf "/usr/bin/php$PHP_VERSION" /etc/alternatives/php
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
WP_VERSION: ${{ matrix.WP_VERSION }}
ACTIVATE_POPULAR_PLUGINS: ${{ matrix.ACTIVATE_POPULAR_PLUGINS }}
- name: Run tests
run: bash travis-ci/bin/php/wp-test.sh
env:
CI: 1
DB_PASS: root
TRAVIS_BUILD_DIR: ${{ github.workspace }}
WP_VERSION: ${{ matrix.WP_VERSION }}
WP_MULTISITE: ${{ matrix.WP_MULTISITE }}
ACTIVATE_POPULAR_PLUGINS: ${{ matrix.ACTIVATE_POPULAR_PLUGINS }}
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

slack:
name: Slack
needs: [jest, phpunit]
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v1
with:
type: success
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
14 changes: 14 additions & 0 deletions .github/workflows/gh_releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches:
- master
name: GitHub Releases
jobs:
draftRelease:
name: Draft Release
runs-on: ubuntu-latest
steps:
- name: Draft Release
uses: toolmantim/release-drafter@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/issue_opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: issues
name: Issue opened
jobs:
assign:
name: Assign issues to project
runs-on: ubuntu-latest
steps:
- name: Assign issues to project
if: github.event.action == 'opened'
uses: alex-page/github-project-automation-plus@master
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}

assignAuthor:
name: Assign author to issue
runs-on: ubuntu-latest
steps:
- name: Assign author to issue
if: github.event.action == 'opened'
uses: technote-space/assign-author@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading