From dc9d3dd63c7e9c643ef6826f3d3778ff1cdce63d Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:08:42 -0800 Subject: [PATCH] Add Monorepo Merge Notice Workflow (#12101) Added Merge Notice Workflow --- .github/workflows/monorepo-merge-notices.yml | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/monorepo-merge-notices.yml diff --git a/.github/workflows/monorepo-merge-notices.yml b/.github/workflows/monorepo-merge-notices.yml new file mode 100644 index 00000000000..89bbf67c939 --- /dev/null +++ b/.github/workflows/monorepo-merge-notices.yml @@ -0,0 +1,33 @@ +name: 'Monorepo Merge Notices' +on: + pull_request_target: + types: [ 'opened' ] + issues: + types: [ 'opened' ] +jobs: + issue_block: + name: 'Block Issues & Pull Requests' + runs-on: 'ubuntu-latest' + steps: + - name: 'Add Merge Notice' + uses: 'actions/github-script@v7' + with: + script: | + github.rest.issues.createComment( { + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thank you for your interest in contributing to WooCommerce!\n\n\ + WooCommerce Blocks [has been merged into the WooCommerce Monorepo](https://developer.woo.com/2023/12/01/woocommerce-blocks-merging-into-the-woocommerce-monorepo/).\n\n\ + From now on, please open any issues or pull requests in the [woocommerce/woocommerce](https://github.com/woocommerce/woocommerce) repository.' + } ); + - name: 'Close' + uses: 'actions/github-script@v7' + with: + script: | + github.rest.issues.update({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + state: 'closed' + });