Skip to content

Commit

Permalink
Added actions workflow to clean up stale PRs (#540)
Browse files Browse the repository at this point in the history
* Added actions workflow to clean up stale PRs
---------

Co-authored-by: Md Nadim Hossain <[email protected]>
  • Loading branch information
nicksantamaria and MdNadimHossain authored Nov 14, 2024
1 parent fe35eb9 commit 6b67c71
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/pull-request-reviewer-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Close stale issues and PRs'
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'

permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
exempt-pr-labels: "DO NOT MERGE"
stale-issue-message: 'This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
days-before-stale: 28
days-before-close: 14
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class YamlEnhancer extends ResourceFieldEnhancerBase {
*/
protected function doUndoTransform($data, Context $context) {
$data = Yaml::decode($data);

if (!empty($data['markup']['#markup'])) {
$data['processed_text']['#text'] = $this->processText($data['markup']['#markup']);
}
Expand Down

0 comments on commit 6b67c71

Please sign in to comment.