Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into revert-34992-revert-34396-add/order_cache
- Loading branch information
Showing
628 changed files
with
8,308 additions
and
5,449 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 |
---|---|---|
@@ -1,27 +1,46 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: nearest | ||
range: "50...100" | ||
ignore: | ||
- '**/tests' | ||
- '**/test' | ||
- 'tools/**' | ||
- 'packages/js/admin-e2e-tests' | ||
- 'packages/js/api-core-tests' | ||
- 'packages/js/create-woo-extension' | ||
- 'packages/js/e2e-core-tests' | ||
- 'packages/js/e2e-environment' | ||
- 'packages/js/e2e-utils' | ||
- 'packages/js/eslint-plugin' | ||
- 'packages/js/internal-e2e-builds' | ||
- 'packages/js/internal-js-tests' | ||
- 'packages/js/internal-style-build' | ||
- '**/*.test.*' | ||
|
||
status: | ||
project: | ||
default: | ||
informational: true | ||
patch: | ||
default: | ||
informational: true | ||
changes: off | ||
coverage: | ||
precision: 1 | ||
round: nearest | ||
range: '50...80' | ||
|
||
status: | ||
project: | ||
default: | ||
target: auto | ||
patch: | ||
default: | ||
target: auto | ||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: false | ||
comment: | ||
layout: 'reach, diff, flags, files' | ||
behavior: default | ||
require_changes: false | ||
require_base: no | ||
require_head: yes |
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
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
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
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
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 |
---|---|---|
@@ -1,43 +1,47 @@ | ||
name: "Pull request post-merge processing" | ||
name: 'Pull request post-merge processing' | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
pull_request_target: | ||
types: [closed] | ||
paths: | ||
- 'packages/**' | ||
- 'plugins/woocommerce/**' | ||
- 'plugins/woocommerce-admin/**' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
process-pull-request-after-merge: | ||
name: "Process a pull request after it's merged" | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: "Get the action scripts" | ||
run: | | ||
scripts="assign-milestone-to-merged-pr.php add-post-merge-comment.php post-request-shared.php" | ||
for script in $scripts | ||
do | ||
curl \ | ||
--silent \ | ||
--fail \ | ||
--header 'Authorization: bearer ${{ secrets.GITHUB_TOKEN }}' \ | ||
--header 'User-Agent: GitHub action to set the milestone for a pull request' \ | ||
--header 'Accept: application/vnd.github.v3.raw' \ | ||
--output $script \ | ||
--location "$GITHUB_API_URL/repos/${{ github.repository }}/contents/.github/workflows/scripts/$script?ref=${{ github.event.pull_request.base.ref }}" | ||
done | ||
env: | ||
GITHUB_API_URL: ${{ env.GITHUB_API_URL }} | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
- name: "Run the script to assign a milestone" | ||
if: | | ||
!github.event.pull_request.milestone && | ||
github.event.pull_request.base.ref == 'trunk' | ||
run: php assign-milestone-to-merged-pr.php | ||
env: | ||
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
process-pull-request-after-merge: | ||
name: "Process a pull request after it's merged" | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: 'Get the action scripts' | ||
run: | | ||
scripts="assign-milestone-to-merged-pr.php add-post-merge-comment.php post-request-shared.php" | ||
for script in $scripts | ||
do | ||
curl \ | ||
--silent \ | ||
--fail \ | ||
--header 'Authorization: bearer ${{ secrets.GITHUB_TOKEN }}' \ | ||
--header 'User-Agent: GitHub action to set the milestone for a pull request' \ | ||
--header 'Accept: application/vnd.github.v3.raw' \ | ||
--output $script \ | ||
--location "$GITHUB_API_URL/repos/${{ github.repository }}/contents/.github/workflows/scripts/$script?ref=${{ github.event.pull_request.base.ref }}" | ||
done | ||
env: | ||
GITHUB_API_URL: ${{ env.GITHUB_API_URL }} | ||
- name: 'Install PHP' | ||
uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc | ||
with: | ||
php-version: '7.4' | ||
- name: 'Run the script to assign a milestone' | ||
if: | | ||
!github.event.pull_request.milestone && | ||
github.event.pull_request.base.ref == 'trunk' | ||
run: php assign-milestone-to-merged-pr.php | ||
env: | ||
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
Oops, something went wrong.