Skip to content

Commit

Permalink
chore: updated github workflow and templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Aug 16, 2021
1 parent b65ea0d commit db68fac
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 21 deletions.
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: '[v4] | [v2] Issue title'
labels: bug
assignees: ''

Expand All @@ -26,7 +26,7 @@ assignees: ''

| Library | Version |
| ------------------------------- | ------- |
| @gorhom/bottom-sheet | x.x.x |
| @gorhom/bottom-sheet | x.x.x |
| react-native | x.x.x |
| react-native-reanimated | x.x.x |
| react-native-gesture-handler | x.x.x |
Expand All @@ -52,5 +52,6 @@ Describe what you expected to happen:
## Reproducible sample code

<!--
Please add minimal runnable repro as explained above so that the bug can be tested in isolation.
Please use the Bottom Sheet issue snack template https://snack.expo.io/@gorhom/bottom-sheet-v4-reproducible-issue-template or provide a minimal runnable repro as explained above so that the bug can be tested in isolation. or use
-->
18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
issues:
types: [opened, edited]

jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Automatically close issues that don't follow the issue template
uses: lucasbento/auto-close-issues@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
closed-issues-label: "not-following-issue-template"
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: '39 9 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3.0.19
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: 30
days-before-pr-stale: 30
days-before-close: 5
days-before-pr-close: 10
exempt-assignees: 'gorhom'

0 comments on commit db68fac

Please sign in to comment.