Skip to content

Commit 32fecda

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Improve triage actions on issues devlooped/oss@33000c0 - SponsorLink code should be checked as regular code devlooped/oss@e81ab75 - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - 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 - Allow seamless sleet upgrades without requiring workflow updates devlooped/oss@5e17ad6 - Fix typo in targets devlooped/oss@33a20db - If we provide a docs category, don't exclude docs :) devlooped/oss@0c23e24 - Don't copy default icon to output directory devlooped/oss@9263184 - Update typed resgen to opt-in only devlooped/oss@a8b2080 - Update includes.yml to include top-level .md devlooped/oss@d152e74 - Skip discussion issues when generating changelog devlooped/oss@08d83cb - Simplify .gitattributes devlooped/oss@5f92a68 - 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 # clarius/pages - Bump github-pages to fix build error clarius/pages@90fa16e
1 parent 675ac6b commit 32fecda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+199
-2699
lines changed

.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,3 @@ dotnet_analyzer_diagnostic.category-Style.severity = none
107107

108108
# VSTHRD200: Use "Async" suffix for async methods
109109
dotnet_diagnostic.VSTHRD200.severity = none
110-
111-
[**/*SponsorLink*/**]
112-
generated_code = true

.gitattributes

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
1-
# sln, csproj files (and friends) are always CRLF, even on linux
2-
*.sln text eol=crlf
3-
*.proj text eol=crlf
4-
*.csproj text eol=crlf
1+
# normalize by default
2+
* text=auto encoding=UTF-8
3+
*.sh text eol=lf
54

65
# These are windows specific files which we may as well ensure are
76
# always crlf on checkout
87
*.bat text eol=crlf
98
*.cmd text eol=crlf
10-
11-
# Opt in known filetypes to always normalize line endings on checkin
12-
# and always use native endings on checkout
13-
*.c text
14-
*.config text
15-
*.h text
16-
*.cs text
17-
*.md text
18-
*.tt text
19-
*.txt text
20-
21-
# Some must always be checked out as lf so enforce that for those files
22-
# If these are not lf then bash/cygwin on windows will not be able to
23-
# excute the files
24-
*.sh text eol=lf

.github/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ changelog:
88
- invalid
99
- wontfix
1010
- need info
11-
- docs
1211
- techdebt
1312
authors:
1413
- devlooped-bot
@@ -24,6 +23,7 @@ changelog:
2423
- title: 📝 Documentation updates
2524
labels:
2625
- docs
26+
- documentation
2727
- title: 🔨 Other
2828
labels:
2929
- '*'

.github/workflows/build.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,31 @@
44
name: build
55
on:
66
workflow_dispatch:
7+
inputs:
8+
configuration:
9+
type: choice
10+
description: Configuration
11+
options:
12+
- Release
13+
- Debug
714
push:
815
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
916
paths-ignore:
1017
- changelog.md
11-
- code-of-conduct.md
12-
- security.md
13-
- support.md
1418
- readme.md
1519
pull_request:
1620
types: [opened, synchronize, reopened]
1721

1822
env:
1923
DOTNET_NOLOGO: true
20-
VersionPrefix: 42.42.${{ github.run_number }}
21-
VersionLabel: ${{ github.ref }}
2224
PackOnBuild: true
2325
GeneratePackageOnBuild: true
26+
VersionPrefix: 42.42.${{ github.run_number }}
27+
VersionLabel: ${{ github.ref }}
2428
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25-
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
31+
2632
defaults:
2733
run:
2834
shell: bash
@@ -61,14 +67,10 @@ jobs:
6167
- name: 🙏 build
6268
run: dotnet build -m:1 -bl:build.binlog
6369

64-
- name: ⚙ GNU grep
65-
if: matrix.os == 'macOS-latest'
66-
run: |
67-
brew install grep
68-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
69-
7070
- name: 🧪 test
71-
uses: ./.github/workflows/test
71+
run: |
72+
dotnet tool update -g dotnet-retest
73+
dotnet retest -- --no-build
7274
7375
- name: 🐛 logs
7476
uses: actions/upload-artifact@v3
@@ -77,13 +79,12 @@ jobs:
7779
name: logs
7880
path: '*.binlog'
7981

80-
# Only push CI package to sleet feed if building on ubuntu (fastest)
8182
- name: 🚀 sleet
8283
env:
8384
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
8485
if: env.SLEET_CONNECTION != ''
8586
run: |
86-
dotnet tool install -g --version 4.0.18 sleet
87+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
8788
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
8889
8990
dotnet-format:

.github/workflows/changelog.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
usernames-as-github-logins=true
22
issues_wo_labels=true
33
pr_wo_labels=true
4-
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
4+
exclude-labels=bydesign,dependencies,duplicate,discussion,question,invalid,wontfix,need info,docs
55
enhancement-label=:sparkles: Implemented enhancements:
66
bugs-label=:bug: Fixed bugs:
77
issues-label=:hammer: Other:

.github/workflows/includes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: ✍ pull request
3232
uses: peter-evans/create-pull-request@v6
3333
with:
34-
add-paths: '**/*.md'
34+
add-paths: '**.md'
3535
base: main
3636
branch: markdown-includes
3737
delete-branch: true

.github/workflows/publish.yml

+22-6
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
name: publish
66
on:
77
release:
8-
types: [released]
8+
types: [prereleased, released]
99

1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
1313
PackOnBuild: true
1414
GeneratePackageOnBuild: true
15+
VersionLabel: ${{ github.ref }}
1516
GH_TOKEN: ${{ secrets.GH_TOKEN }}
16-
17+
MSBUILDTERMINALLOGGER: auto
18+
1719
jobs:
1820
publish:
19-
runs-on: ubuntu-latest
21+
runs-on: ${{ vars.PUBLISH_AGENT || 'ubuntu-latest' }}
2022
steps:
2123
- name: 🤘 checkout
2224
uses: actions/checkout@v4
@@ -25,10 +27,12 @@ jobs:
2527
fetch-depth: 0
2628

2729
- name: 🙏 build
28-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog
30+
run: dotnet build -m:1 -bl:build.binlog
2931

3032
- name: 🧪 test
31-
uses: ./.github/workflows/test
33+
run: |
34+
dotnet tool update -g dotnet-retest
35+
dotnet retest -- --no-build
3236
3337
- name: 🐛 logs
3438
uses: actions/upload-artifact@v3
@@ -38,4 +42,16 @@ jobs:
3842
path: '*.binlog'
3943

4044
- name: 🚀 nuget
41-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
45+
env:
46+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47+
if: ${{ env.NUGET_API_KEY != '' && github.event.action != 'prereleased' }}
48+
working-directory: bin
49+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
50+
51+
- name: 🚀 sleet
52+
env:
53+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
54+
if: env.SLEET_CONNECTION != ''
55+
run: |
56+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
57+
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"

.github/workflows/sponsor.yml

-24
This file was deleted.

.github/workflows/test/action.yml

-36
This file was deleted.

.github/workflows/triage.yml

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: 'triage'
2+
on:
3+
schedule:
4+
- cron: '42 0 * * *'
5+
6+
workflow_dispatch:
7+
# Manual triggering through the GitHub UI, API, or CLI
8+
inputs:
9+
daysBeforeClose:
10+
description: "Days before closing stale or need info issues"
11+
required: true
12+
default: "30"
13+
daysBeforeStale:
14+
description: "Days before labeling stale"
15+
required: true
16+
default: "180"
17+
daysSinceClose:
18+
description: "Days since close to lock"
19+
required: true
20+
default: "30"
21+
daysSinceUpdate:
22+
description: "Days since update to lock"
23+
required: true
24+
default: "30"
25+
26+
permissions:
27+
actions: write # For managing the operation state cache
28+
issues: write
29+
contents: read
30+
31+
jobs:
32+
stale:
33+
# Do not run on forks
34+
if: github.repository_owner == 'devlooped'
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: ⌛ rate
38+
shell: pwsh
39+
if: github.event_name != 'workflow_dispatch'
40+
env:
41+
GH_TOKEN: ${{ secrets.DEVLOOPED_TOKEN }}
42+
run: |
43+
# add random sleep since we run on fixed schedule
44+
$wait = get-random -max 180
45+
echo "Waiting random $wait seconds to start"
46+
sleep $wait
47+
# get currently authenticated user rate limit info
48+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
49+
# if we don't have at least 100 requests left, wait until reset
50+
if ($rate.remaining -lt 100) {
51+
$wait = ($rate.reset - (Get-Date (Get-Date).ToUniversalTime() -UFormat %s))
52+
echo "Rate limit remaining is $($rate.remaining), waiting for $($wait / 1000) seconds to reset"
53+
sleep $wait
54+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
55+
echo "Rate limit has reset to $($rate.remaining) requests"
56+
}
57+
58+
- name: ✏️ stale labeler
59+
# pending merge: https://github.com/actions/stale/pull/1176
60+
uses: kzu/stale@c8450312ba97b204bf37545cb249742144d6ca69
61+
with:
62+
ascending: true # Process the oldest issues first
63+
stale-issue-label: 'stale'
64+
stale-issue-message: |
65+
Due to lack of recent activity, this issue has been labeled as 'stale'.
66+
It will be closed if no further activity occurs within ${{ fromJson(inputs.daysBeforeClose || 30 ) }} more days.
67+
Any new comment will remove the label.
68+
close-issue-message: |
69+
This issue will now be closed since it has been labeled 'stale' without activity for ${{ fromJson(inputs.daysBeforeClose || 30 ) }} days.
70+
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 180) }}
71+
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }}
72+
days-before-pr-close: -1 # Do not close PRs labeled as 'stale'
73+
exempt-all-milestones: true
74+
exempt-all-assignees: true
75+
exempt-issue-labels: priority,sponsor,backed
76+
exempt-authors: kzu
77+
78+
- name: 🤘 checkout actions
79+
uses: actions/checkout@v4
80+
with:
81+
repository: 'microsoft/vscode-github-triage-actions'
82+
ref: v42
83+
84+
- name: ⚙ install actions
85+
run: npm install --production
86+
87+
- name: 🔒 issues locker
88+
uses: ./locker
89+
with:
90+
token: ${{ secrets.DEVLOOPED_TOKEN }}
91+
ignoredLabel: priority
92+
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }}
93+
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }}
94+
95+
- name: 🔒 need info closer
96+
uses: ./needs-more-info-closer
97+
with:
98+
token: ${{ secrets.DEVLOOPED_TOKEN }}
99+
label: 'need info'
100+
closeDays: ${{ fromJson(inputs.daysBeforeClose || 30) }}
101+
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity.\n\nHappy Coding!"
102+
pingDays: 80
103+
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."

0 commit comments

Comments
 (0)