-
-
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 - Use custom stale action to exempt authors devlooped/oss@03b7d53 - Fix dependabot group for tests devlooped/oss@49661db - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Make sure build runs before pack devlooped/oss@ede013a - Switch to PackOnBuild=true and remove pack step devlooped/oss@6e7a3ab - Update to checkout@v4 devlooped/oss@5fb1723 - Upload binlog artifact on debug runs devlooped/oss@a67ae78 - Set env:gh_token if present as secret devlooped/oss@97ebd18 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - Update includes.yml to include top-level .md devlooped/oss@d152e74 - Automatically use the new terminal logger if possible devlooped/oss@27a5c9a - Allow choosing build configuration on dispatch devlooped/oss@fef4635 - Remove shared community files from ignores devlooped/oss@65f89e0 - Simplify testing by switching to dotnet-retest devlooped/oss@b5bb972 - We don't push just from ubuntu anymore devlooped/oss@7ec9101 - Skip discussion issues when generating changelog devlooped/oss@08d83cb - Update dotnet-file.yml with fix to create pull request action devlooped/oss@11a331d - Update publish.yml to include prereleased publish devlooped/oss@d793e7a - Don't attempt to push to nuget.org without a key devlooped/oss@d11c4dc - Don't add random wait on manual dotnet-file runs devlooped/oss@7afe350 - Push also to sleet if configured devlooped/oss@40ee833 - Ignore azure functions local settings devlooped/oss@4bd7025 - Update .gitignore with BenchmarkDotNet artifacts default path devlooped/oss@e20e906 - Remove whitespace and add results to ignore devlooped/oss@ef852e7 - Only ignore App folder directly under the root devlooped/oss@02811fa - Add trx logger by default to CLI builds devlooped/oss@a75b141 - Remove -l:trx since it's just for dotnet test, not build devlooped/oss@0f7f7f7 - Honor the PackReadme=false property devlooped/oss@1bf1eac - NoTargets/Traversal SDKs now support central package versions too devlooped/oss@afca922 - Enable floating versions for central packages by default devlooped/oss@b1d14c6 - Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f - Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59 - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - 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 - Fix typo in targets devlooped/oss@33a20db
- Loading branch information
1 parent
2796b73
commit f3bd15d
Showing
18 changed files
with
246 additions
and
218 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 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,69 @@ | ||
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' | ||
env: | ||
GH_TOKEN: ${{ github.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: ✏️ label | ||
# 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' | ||
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}} | ||
exempt-all-milestones: true | ||
exempt-all-assignees: true | ||
exempt-issue-labels: priority,sponsor,backed | ||
exempt-authors: kzu |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.