-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# devlooped/oss - Improve triage actions on issues devlooped/oss@33000c0 - Add common sponsors metadata to assemblies devlooped/oss@0789bf0 - Update assembly metadata format for Funding.GitHub devlooped/oss@5801de0 - SponsorLink metadata will be opt-in only by analyzer projects devlooped/oss@c618ea8 - Update dotnet-file.yml with fix to create pull request action devlooped/oss@11a331d - Update to checkout@v4 devlooped/oss@5fb1723 - Don't add random wait on manual dotnet-file runs devlooped/oss@7afe350
- Loading branch information
1 parent
9c4bfcd
commit 32ff4d1
Showing
15 changed files
with
175 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
# sln, csproj files (and friends) are always CRLF, even on linux | ||
*.sln text eol=crlf | ||
*.proj text eol=crlf | ||
*.csproj text eol=crlf | ||
# normalize by default | ||
* text=auto encoding=UTF-8 | ||
*.sh text eol=lf | ||
|
||
# These are windows specific files which we may as well ensure are | ||
# always crlf on checkout | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
|
||
# Opt in known filetypes to always normalize line endings on checkin | ||
# and always use native endings on checkout | ||
*.c text | ||
*.config text | ||
*.h text | ||
*.cs text | ||
*.md text | ||
*.tt text | ||
*.txt text | ||
|
||
# Some must always be checked out as lf so enforce that for those files | ||
# If these are not lf then bash/cygwin on windows will not be able to | ||
# excute the files | ||
*.sh text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: 'triage' | ||
on: | ||
schedule: | ||
- cron: '42 0 * * *' | ||
|
||
workflow_dispatch: | ||
# Manual triggering through the GitHub UI, API, or CLI | ||
inputs: | ||
daysBeforeClose: | ||
description: "Days before closing stale or need info issues" | ||
required: true | ||
default: "30" | ||
daysBeforeStale: | ||
description: "Days before labeling stale" | ||
required: true | ||
default: "180" | ||
daysSinceClose: | ||
description: "Days since close to lock" | ||
required: true | ||
default: "30" | ||
daysSinceUpdate: | ||
description: "Days since update to lock" | ||
required: true | ||
default: "30" | ||
|
||
permissions: | ||
actions: write # For managing the operation state cache | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
stale: | ||
# Do not run on forks | ||
if: github.repository_owner == 'devlooped' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⌛ rate | ||
shell: pwsh | ||
if: github.event_name != 'workflow_dispatch' | ||
env: | ||
GH_TOKEN: ${{ secrets.DEVLOOPED_TOKEN }} | ||
run: | | ||
# add random sleep since we run on fixed schedule | ||
$wait = get-random -max 180 | ||
echo "Waiting random $wait seconds to start" | ||
sleep $wait | ||
# get currently authenticated user rate limit info | ||
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate | ||
# if we don't have at least 100 requests left, wait until reset | ||
if ($rate.remaining -lt 100) { | ||
$wait = ($rate.reset - (Get-Date (Get-Date).ToUniversalTime() -UFormat %s)) | ||
echo "Rate limit remaining is $($rate.remaining), waiting for $($wait / 1000) seconds to reset" | ||
sleep $wait | ||
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate | ||
echo "Rate limit has reset to $($rate.remaining) requests" | ||
} | ||
- name: ✏️ stale labeler | ||
# pending merge: https://github.com/actions/stale/pull/1176 | ||
uses: kzu/stale@c8450312ba97b204bf37545cb249742144d6ca69 | ||
with: | ||
ascending: true # Process the oldest issues first | ||
stale-issue-label: 'stale' | ||
stale-issue-message: | | ||
Due to lack of recent activity, this issue has been labeled as 'stale'. | ||
It will be closed if no further activity occurs within ${{ fromJson(inputs.daysBeforeClose || 30 ) }} more days. | ||
Any new comment will remove the label. | ||
close-issue-message: | | ||
This issue will now be closed since it has been labeled 'stale' without activity for ${{ fromJson(inputs.daysBeforeClose || 30 ) }} days. | ||
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 180) }} | ||
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }} | ||
days-before-pr-close: -1 # Do not close PRs labeled as 'stale' | ||
exempt-all-milestones: true | ||
exempt-all-assignees: true | ||
exempt-issue-labels: priority,sponsor,backed | ||
exempt-authors: kzu | ||
|
||
- name: 🤘 checkout actions | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'microsoft/vscode-github-triage-actions' | ||
ref: v42 | ||
|
||
- name: ⚙ install actions | ||
run: npm install --production | ||
|
||
- name: 🔒 issues locker | ||
uses: ./locker | ||
with: | ||
token: ${{ secrets.DEVLOOPED_TOKEN }} | ||
ignoredLabel: priority | ||
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }} | ||
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }} | ||
|
||
- name: 🔒 need info closer | ||
uses: ./needs-more-info-closer | ||
with: | ||
token: ${{ secrets.DEVLOOPED_TOKEN }} | ||
label: 'need info' | ||
closeDays: ${{ fromJson(inputs.daysBeforeClose || 30) }} | ||
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity.\n\nHappy Coding!" | ||
pingDays: 80 | ||
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
-nr:false | ||
-m:1 | ||
-v:m | ||
-clp:Summary;ForceNoAlign | ||
-clp:Summary;ForceNoAlign |
Oops, something went wrong.