mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 00:51:23 +00:00
## About The Pull Request Node 16 actions are deprecated, we need to use Node 20 actions now (as noted by this handy screenshot which spams it on every CI run)  You may see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ for more information.
19 lines
632 B
YAML
19 lines
632 B
YAML
# Removes guide comments from PRs when opened, so that when we merge them
|
|
# and reuse the pull request description, the clutter is not left behind
|
|
name: Remove guide comments
|
|
on:
|
|
pull_request_target:
|
|
types: [opened]
|
|
jobs:
|
|
remove_guide_comments:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Remove guide comments
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
const { removeGuideComments } = await import('${{ github.workspace }}/tools/pull_request_hooks/removeGuideComments.js')
|
|
await removeGuideComments({ github, context })
|