Skip to content

Commit

Permalink
add stalebot
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Sep 14, 2023
1 parent b17cbc0 commit 48335d4
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
labels: ["bug", "triage"]
assignees: ''

---
Expand All @@ -28,9 +28,9 @@ _A clear and concise description of what you expected to happen._

_If applicable, add screenshots and/or error messages to help explain your problem._

## Context Informations
## Context Information

_Add any other context about the probleme here._
_Add any other context or information about the problem here._

- Used version: [e.g. Commit Hash]
- OS: [e.g. Mac OS (M1), Windows, Linux]
Expand Down
31 changes: 18 additions & 13 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
---
name: Feature request
about: Suggest an idea for this project
name: Feature Request
about: Request a new feature
title: ''
labels: enhancement
labels: ['triage', 'enhancement']
assignees: ''

---

_If you are missing a feature or have an idea how to improve this project that should first be
discussed, please feel free to open up a [discussion](https://github.com/eclipse-tractusx/tractusx-edc/discussions/categories/ideas)._
## WHAT

**Is your feature request related to a problem? Please describe.**
_A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]_
// describes the desired functionality and how the feature should behave. This should include clear requirements, and a "definition-of-done", i.e. what the result of the issue should be. This is important for concept, documentation or ideation issues

**Describe the solution you'd like**
_A clear and concise description of what you want to happen._
## WHY
// outlines the motivation, why the feature is desired, and possibly what the impact is if the feature is _not_
implemented. "Because we need it" is not a sufficient reason!

**Describe alternatives you've considered**
_A clear and concise description of any alternative solutions or features you've considered._
## HOW

**Additional context**
_Add any other context or screenshots about the feature request here._
// if possible, outlines a solution proposal

## FURTHER NOTES

// anything else you want to outline

_Please be sure to take a look at
our [contribution guidelines](https://github.com/eclipse-tractusx/tractusx-edc/blob/main/CONTRIBUTING.md) and
our [PR etiquette](https://github.com/eclipse-tractusx/tractusx-edc/blob/main/pr_etiquette.md)._
87 changes: 87 additions & 0 deletions .github/workflows/stale-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Close Inactive Issues

on:
workflow_call:
secrets:
envGH:
required: true

jobs:
close-issues-in-triage:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v8
with:
operations-per-run: 1000
days-before-issue-stale: 32 # 4 weeks
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 4 weeks with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
only-labels: 'triage'
repo-token: ${{ github.token }}

close-issues-with-assignee:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v8
with:
operations-per-run: 1000
days-before-issue-stale: 32
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 4 weeks with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
exempt-issue-labels: bug # ignore issues labelled as bug
repo-token: ${{ github.token }}

close-issues-without-assignee:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v8
with:
operations-per-run: 1000
days-before-issue-stale: 14
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 2 weeks with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
exempt-all-issue-assignees: true # issues with assignees will be ignored
exempt-issue-labels: bug,triage # ignore issues labelled as bug or triage
repo-token: ${{ github.token }}

close-inactive-pull-requests:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/stale@v8
with:
operations-per-run: 1000
days-before-issue-stale: -1 # ignore issues (overwrite default days-before-stale)
days-before-issue-close: -1 # ignore issues (overwrite default days-before-close)
stale-pr-label: "stale"
stale-pr-message: "This pull request is stale because it has been open for 7 days with no activity."
close-pr-message: "This pull request was closed because it has been inactive for 7 days since being marked as stale."
days-before-pr-stale: 7
days-before-pr-close: 7
remove-pr-stale-when-updated: true
repo-token: ${{ github.token }}

0 comments on commit 48335d4

Please sign in to comment.