Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit dc9d3dd

Browse files
Add Monorepo Merge Notice Workflow (#12101)
Added Merge Notice Workflow
1 parent 2230f68 commit dc9d3dd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Monorepo Merge Notices'
2+
on:
3+
pull_request_target:
4+
types: [ 'opened' ]
5+
issues:
6+
types: [ 'opened' ]
7+
jobs:
8+
issue_block:
9+
name: 'Block Issues & Pull Requests'
10+
runs-on: 'ubuntu-latest'
11+
steps:
12+
- name: 'Add Merge Notice'
13+
uses: 'actions/github-script@v7'
14+
with:
15+
script: |
16+
github.rest.issues.createComment( {
17+
issue_number: context.issue.number,
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
body: 'Thank you for your interest in contributing to WooCommerce!\n\n\
21+
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\
22+
From now on, please open any issues or pull requests in the [woocommerce/woocommerce](https://github.com/woocommerce/woocommerce) repository.'
23+
} );
24+
- name: 'Close'
25+
uses: 'actions/github-script@v7'
26+
with:
27+
script: |
28+
github.rest.issues.update({
29+
issue_number: context.issue.number,
30+
owner: context.repo.owner,
31+
repo: context.repo.repo,
32+
state: 'closed'
33+
});

0 commit comments

Comments
 (0)