-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# devlooped/oss - Create stale.yml to label/close stale issues/PRs devlooped/oss@695ccee - SponsorLink code should be checked as regular code devlooped/oss@e81ab75 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - Update publish.yml to include prereleased publish devlooped/oss@d793e7a - Automatically use the new terminal logger if possible devlooped/oss@27a5c9a - Don't attempt to push to nuget.org without a key devlooped/oss@d11c4dc - Push also to sleet if configured devlooped/oss@40ee833 # clarius/pages
- Loading branch information
1 parent
675ac6b
commit da5ec1f
Showing
49 changed files
with
136 additions
and
2,660 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
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 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,63 @@ | ||
name: 'stale' | ||
on: | ||
schedule: | ||
- cron: '42 0 * * *' | ||
|
||
workflow_dispatch: | ||
# Manual triggering through the GitHub UI, API, or CLI | ||
inputs: | ||
daysBeforeStale: | ||
required: true | ||
default: "180" | ||
daysBeforeClose: | ||
required: true | ||
default: "30" | ||
operationsPerRun: | ||
required: true | ||
default: "4000" | ||
|
||
permissions: | ||
actions: write # For managing the operation state cache | ||
issues: write | ||
|
||
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' | ||
run: | | ||
# add random sleep since we run on fixed schedule | ||
sleep (get-random -max 60) | ||
# 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: ✏️ label | ||
uses: actions/stale@v9 | ||
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' | ||
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}} | ||
exempt-all-milestones: true | ||
exempt-all-assignees: true | ||
exempt-issue-labels: priority,sponsor,backed |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.