summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/inactive_issues.yml22
-rw-r--r--.github/workflows/needs_contributor.yml22
2 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/inactive_issues.yml b/.github/workflows/inactive_issues.yml
new file mode 100644
index 00000000..21762cbb
--- /dev/null
+++ b/.github/workflows/inactive_issues.yml
@@ -0,0 +1,22 @@
+name: Label inactive issues
+on:
+ schedule:
+ - cron: "30 1 * * *"
+
+jobs:
+ close-issues:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/stale@v5
+ with:
+ days-before-issue-stale: 90
+ days-before-issue-close: -1
+ stale-issue-label: "inactive"
+ stale-issue-message: "This issue is stale because it has been open for 3 months with no activity."
+ close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale."
+ days-before-pr-stale: -1
+ days-before-pr-close: -1
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/needs_contributor.yml b/.github/workflows/needs_contributor.yml
new file mode 100644
index 00000000..b9a5bb8b
--- /dev/null
+++ b/.github/workflows/needs_contributor.yml
@@ -0,0 +1,22 @@
+name: Add a message when needs contributor tag is used
+on:
+ issues:
+ types:
+ - labeled
+jobs:
+ add-comment:
+ if: github.event.label.name == 'needs contributor'
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ steps:
+ - name: Add comment
+ run: gh issue comment "$NUMBER" --body "$BODY"
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ NUMBER: ${{ github.event.issue.number }}
+ BODY: >
+ This issue is available for anyone to work on.
+ **Make sure to reference this issue in your pull request.**
+ :sparkles: Thank you for your contribution ! :sparkles: \ No newline at end of file