mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
b9109ba397
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | pinDigest | -> `60a0d83` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
name: Delete Mediafire Comments
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
delete_comment:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check for specific strings in comment
|
|
id: check_comment
|
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
|
|
with:
|
|
script: |
|
|
const comment = context.payload.comment.body;
|
|
const triggerStrings = ['www.mediafire.com'];
|
|
return triggerStrings.some(triggerString => comment.includes(triggerString));
|
|
|
|
- name: Delete comment if it contains any of the specific strings
|
|
if: steps.check_comment.outputs.result == 'true'
|
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
|
|
with:
|
|
script: |
|
|
const commentId = context.payload.comment.id;
|
|
await github.rest.issues.deleteComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
comment_id: commentId
|
|
});
|