This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Monorepo Merge Notice Workflow (#12101)
Added Merge Notice Workflow
- Loading branch information
1 parent
2230f68
commit dc9d3dd
Showing
1 changed file
with
33 additions
and
0 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 |
---|---|---|
@@ -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' | ||
}); |