You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Close stale issues and pull requests (uses actions/stale@v4 with GITHUB_TOKEN)
2
+
on:
3
+
schedule:
4
+
- cron: "0 0 * * 1"# weekly run: every Monday at 00:00 UTC
5
+
workflow_dispatch:
6
+
7
+
permissions:
8
+
issues: write
9
+
pull-requests: write
10
+
11
+
name: Close stale issues and PRs
12
+
13
+
jobs:
14
+
stale:
15
+
runs-on: ubuntu-latest
16
+
steps:
17
+
- name: Run stale action
18
+
uses: actions/stale@v4
19
+
with:
20
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21
+
# Messages for issues (mention the issue author)
22
+
stale-issue-message: "Hey there, this issue has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`."
23
+
close-issue-message: "Hey there, this issue has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request."
24
+
# Messages for pull requests (mention the PR author)
25
+
stale-pr-message: "Hey there, this pull request has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`."
26
+
close-pr-message: "Hey there, this pull request has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request."
{ role: "system", content: "You are an assistant who helps summarize long chunks of text." },
28
+
{ role: "system", content: "You help generate optimized SEO descriptions that are - at most - 60 words. These also convey the most important points of the page and contain keywords." },
29
+
{ role: "system", content: "In your response, provide no content other than the summary text."},
0 commit comments