Skip to content

Commit

Permalink
Add Apps to control GitHub issues (#17807)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Jun 18, 2020
1 parent 63c5c4f commit 9852963
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/custom.md

This file was deleted.

17 changes: 17 additions & 0 deletions .github/issue-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Config for Close Issue app: https://probot.github.io/apps/close-issue/

# Comment that will be sent if an issue is judged to be closed
comment: "This issue was closed because it does not use any of our issue templates. Please make sure to use one of the suggested templates."
issueConfigs:
# There can be several configs for different kind of issues.
- content:
# Bug report
- "Steps to reproduce"
- "Expected behavior"
- "Actual behavior"
- "Version of Rocket.Chat Server"
- content:
# Release issue
- "Before Release - Preparation"
# The issue is considered to be valid if it includes all keywords from any of these two configs.
# Or it will be closed by the app.
36 changes: 36 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Stale Questions

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 10
days-before-close: 4
only-labels: 'stat: need more info'
stale-issue-message: >-
This issue has been marked as stale because there has been
no further activity in the last 10 days. If the issue remains
stale for the next 4 days (a total of two weeks with no activity),
then it will be assumed that the question has been resolved and
the issue will be automatically closed.
stale-issue-label: 'stat: no response'

- uses: actions/stale@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 7
exempt-issue-labels: 'Epic,Feature: Planned,sla,sponsored,stat: waiting PR merge,Triaged,subj: security'
stale-issue-message: >-
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
stale-issue-label: 'stat: stale'

0 comments on commit 9852963

Please sign in to comment.