Commit Graph

156 Commits

Author SHA1 Message Date
Nestor Soriano 6fb769bc9d
Refactor the PR post-merge processing GitHub action
Common code has been extracted to a "post-request-shared.php" script.
2021-08-03 11:33:33 +02:00
Nestor Soriano b3617a3115
Extend post-merge GH action to add a comment suggestion next steps. 2021-08-03 10:07:24 +02:00
roykho bdbd97fa9d
Add task instructions for the PR reviewer 2021-07-30 10:02:16 -07:00
Nestor Soriano 9ffddbac1f
Use 'pull_request_target' in the automatic milestoning action
The original event used, 'pull_request', runs in the context of the
pull request. In the case of pull requests created from forks this means
that a read-only GitHub token is used for API calls, and thus the
call used to assign the milestone fails.

The fix is using the 'pull_request_target' event, which runs in the
context of the base branch, and thus with a read-write token. See:
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target

Also, added a warning message when no milestone without a release
branch is found and thus the newest existing milestone is assigned
(this is a fallback that should normally not happen).
2021-07-29 16:47:27 +02:00
Nestor Soriano 68fcfa9cf6
Add logging to the GH action for assigning a milestone to merged PRs
If the GH API call to assign the milestone to a merged PR returns an
error, the data returned from the call will be dumped to the console,
and thus will be readable by looking at the action execution log.
2021-07-28 15:20:16 +02:00
Greg d062a76a2c Code review feedback 2021-07-21 10:22:50 -06:00
Greg f31693aaec Add in env flag 2021-07-20 15:26:51 -06:00
Greg 17eb1ddd22 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/plugin-upload-flow 2021-07-20 13:57:04 -06:00
Greg 268c07118e Added plugin upload functionality 2021-07-15 14:39:32 -06:00
Martin Winkel 9467260e5f fixed a typo in the bug issue template of github 2021-06-30 17:10:10 +02:00
Ron Rennick 7806ea2b5d
update remove stale on comment (#29882)
* remove the stale label when feedback is provided

* remove labels in separate steps
2021-05-13 14:25:14 +02:00
Ron Rennick 1ba0e6d382
update stale to Stale in feedback label CI (#29871) 2021-05-10 17:19:06 +02:00
Ron Rennick afa1ba573d
remove local container from smoke test (#29828) 2021-05-10 15:49:32 +02:00
Ron Rennick bcebdad06d
remove the stale label when feedback is provided (#29829) 2021-05-10 15:08:46 +02:00
Vedanshu Jain 09798c081c
Merge pull request #29699 from woocommerce/add/github-action-to-auto-assign-milestone
Add a GitHub action for automatic assignment of a milestone to merged PRs
2021-04-19 18:25:30 +05:30
Néstor Soriano 3ada9fc562
Change GH API query for milestones to get only the open ones.
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2021-04-19 14:46:45 +02:00
Néstor Soriano 5da39b4ff0
Enclose action step name in double quotes for consistency.
Co-authored-by: Leif Singer <git@singer.sh>
2021-04-16 15:48:38 +02:00
Nestor Soriano b09ddd7984
Add a GitHub action to manually trigger the generation of a release zip file 2021-04-16 13:06:49 +02:00
Nestor Soriano a0c965964b
Add a GitHub action for automatic assignment of milestone to merged PRs
The milestone is chosen as follows:
1. List all the open milestones with a title of "X.Y.Z"
2. Sort them desc using verson_compare
3. foreach them in order, and take the last one not having a
   corresponding release branch ("release/X.Y")
2021-04-15 17:16:00 +02:00
Greg b19500728b
Merge pull request #29653 from woocommerce/fix/28485
Enable smoke test
2021-04-14 16:09:26 -06:00
Ron Rennick 07f72c80b4
fix spacing
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2021-04-13 08:25:22 -03:00
Ron Rennick a88bc666de enable smoke test 2021-04-12 13:32:38 -03:00
Ron Rennick cea88305a7 enable stalebot 2021-04-12 10:55:30 -03:00
Ron Rennick af698acc8e
Merge pull request #29509 from woocommerce/add/feedback-label-action
add contributor feedback label action
2021-04-07 22:55:20 -03:00
Ron Rennick 1affe03ac6 add conditions for github actions and open issues 2021-04-07 17:25:26 -03:00
Greg 6d02a3d375
Merge pull request #29600 from woocommerce/fix/smoke-test-schedule
Fix tranposed cron schedule
2021-04-06 07:59:41 -06:00
Ron Rennick 1f919d3681 fix tranposed cron schedule 2021-04-06 08:18:45 -03:00
Ron Rennick 6f80b55617 fix transposed cron schedule, change process order 2021-04-05 18:16:12 -03:00
Greg 5aeafe56eb
Merge pull request #29571 from woocommerce/add/smoke-test-daily
add smoke test daily log in
2021-04-05 13:32:22 -06:00
Ron Rennick 9355c92231 add smoke test daily log in 2021-04-01 21:55:38 -03:00
Ron Rennick 3096014057 fix typo in stalebot parameter name 2021-04-01 14:54:59 -03:00
Ron Rennick 85893dd018 Merge branch 'trunk' into add/feedback-label-action 2021-04-01 14:47:57 -03:00
Ron Rennick 18c500c24f add contributor feedback label action 2021-03-26 16:33:44 -03:00
Ron Rennick 214ca384ea add stalebot action with dry run enabled 2021-03-26 14:29:53 -03:00
Claudio Sanches dd57663274
Merge pull request #29371 from woocommerce/add/trigger-code-reference-update
Update code reference after release build is done
2021-03-24 18:39:02 -03:00
Néstor Soriano 886cd15016
Merge pull request #29378 from woocommerce/fix/code-sniff
Remove Travis and fix CI in GitHub Actions
2021-03-23 15:22:49 +01:00
Claudio Sanches 599f2e95ca Stop nightly builds in forks.
Nightly builds workflow requires a GitHub release ID that doesn't exists
in forks, making it to always fail.
2021-03-15 21:44:01 -03:00
Ron Rennick 7759e3a16d unpin WP version in E2E test run 2021-03-15 13:43:15 -03:00
Claudio Sanches 4e893022a0 Fixed Codecov integration and moved into a new step 2021-03-13 22:08:46 -03:00
Claudio Sanches 16823082aa Removed Travis 2021-03-13 21:58:42 -03:00
Claudio Sanches 87a18620eb Added workflow to run CI in trunk and release/** branches 2021-03-13 21:29:15 -03:00
Claudio Sanches 75ed94bd38 Fixed PHPCS run and added cs2pr support 2021-03-13 21:01:21 -03:00
Claudio Sanches e0040a1a4e Remove mysql from code sniff workflow 2021-03-13 19:42:06 -03:00
Claudio Sanches 7c23eb1e33 Update code reference after release build is done 2021-03-12 23:17:27 -03:00
Ron Rennick 698fdc3712 Merge branch 'trunk' into try/add-e2e-screenshot 2021-03-12 12:00:24 -04:00
Ron Rennick 874748cf20 pin ubuntu to 18.04 for port 8084 2021-03-12 09:39:44 -04:00
vedanshujain 934243d8bd Remove node_modules caching to prevent dir related errors. 2021-03-12 09:54:37 +05:30
Ron Rennick cad8ae3413 temporarily pin WP version to 5.6.2 2021-03-11 15:27:46 -04:00
Ron Rennick ac94f70a16 update secret names with E2E_ 2021-03-10 14:51:18 -04:00
Ron Rennick bb907a6acd add slack secrets, deliberately break test 2021-03-09 16:11:48 -04:00