Skip to content

Commit 06410da

Browse files
authored
Merge branch 'dev' into ChannelSelect
2 parents a469b65 + 9b2148f commit 06410da

File tree

692 files changed

+45687
-21658
lines changed

Some content is hidden

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

692 files changed

+45687
-21658
lines changed

.cm/gitstream.cm

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# -*- mode: yaml -*-
2+
# This example configuration for provides basic automations to get started with gitStream.
3+
# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/
4+
manifest:
5+
version: 1.0
6+
7+
8+
triggers:
9+
exclude:
10+
branch:
11+
- l10n_dev
12+
- dev
13+
- r/([Dd]ependabot|[Rr]enovate)/
14+
15+
16+
automations:
17+
# Add a label that indicates how many minutes it will take to review the PR.
18+
estimated_time_to_review:
19+
on:
20+
- commit
21+
if:
22+
- true
23+
run:
24+
- action: add-label@v1
25+
args:
26+
label: "{{ calc.etr }} min review"
27+
color: {{ colors.red if (calc.etr >= 20) else ( colors.yellow if (calc.etr >= 5) else colors.green ) }}
28+
# Post a comment that lists the best experts for the files that were modified.
29+
explain_code_experts:
30+
if:
31+
- true
32+
run:
33+
- action: explain-code-experts@v1
34+
args:
35+
gt: 10
36+
# Post a comment notifying that the PR contains a TODO statement.
37+
review_todo_comments:
38+
if:
39+
- {{ source.diff.files | matchDiffLines(regex=r/^[+].*\b(TODO|todo)\b/) | some }}
40+
run:
41+
- action: add-comment@v1
42+
args:
43+
comment: |
44+
This PR contains a TODO statement. Please check to see if they should be removed.
45+
# Post a comment that request a before and after screenshot
46+
request_screenshot:
47+
# Triggered for PRs that lack an image file or link to an image in the PR description
48+
if:
49+
- {{ not (has.screenshot_link or has.image_uploaded) }}
50+
run:
51+
- action: add-comment@v1
52+
args:
53+
comment: |
54+
Be a legend :trophy: by adding a before and after screenshot of the changes you made, especially if they are around UI/UX.
55+
56+
57+
# +----------------------------------------------------------------------------+
58+
# | Custom Expressions |
59+
# | https://docs.gitstream.cm/how-it-works/#custom-expressions |
60+
# +----------------------------------------------------------------------------+
61+
62+
calc:
63+
etr: {{ branch | estimatedReviewTime }}
64+
65+
colors:
66+
red: 'b60205'
67+
yellow: 'fbca04'
68+
green: '0e8a16'
69+
70+
changes:
71+
# Sum all the lines added/edited in the PR
72+
additions: {{ branch.diff.files_metadata | map(attr='additions') | sum }}
73+
# Sum all the line removed in the PR
74+
deletions: {{ branch.diff.files_metadata | map(attr='deletions') | sum }}
75+
# Calculate the ratio of new code
76+
ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }}
77+
78+
has:
79+
screenshot_link: {{ pr.description | includes(regex=r/!\[.*\]\(.*(jpg|svg|png|gif|psd).*\)/) }}
80+
image_uploaded: {{ pr.description | includes(regex=r/(<img.*src.*(jpg|svg|png|gif|psd).*>)|!\[image\]\(.*github\.com.*\)/) }}

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
5858
###############################
5959
# Style Definitions
6060
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
61-
# Use PascalCase for constant fields
61+
# Use PascalCase for constant fields
6262
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
6363
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
6464
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
@@ -134,7 +134,7 @@ csharp_preserve_single_line_statements = true
134134
csharp_preserve_single_line_blocks = true
135135
csharp_using_directive_placement = outside_namespace:silent
136136
csharp_prefer_simple_using_statement = true:suggestion
137-
csharp_style_namespace_declarations = block_scoped:silent
137+
csharp_style_namespace_declarations = file_scoped:silent
138138
csharp_style_prefer_method_group_conversion = true:silent
139139
csharp_style_expression_bodied_lambdas = true:silent
140140
csharp_style_expression_bodied_local_functions = false:silent

.github/actions/spelling/allow.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ https
33
ssh
44
ubuntu
55
runcount
6+
Firefox
7+
Português
8+
Português (Brasil)

.github/actions/spelling/expect.txt

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Prioritise
1919
Segoe
2020
Google
2121
Customise
22-
UWP
2322
uwp
2423
Bokmal
2524
Bokm
@@ -59,7 +58,6 @@ popup
5958
ptr
6059
pluginindicator
6160
TobiasSekan
62-
Img
6361
img
6462
resx
6563
bak
@@ -76,6 +74,7 @@ WCA_ACCENT_POLICY
7674
HGlobal
7775
dopusrt
7876
firefox
77+
Firefox
7978
msedge
8079
svgc
8180
ime
@@ -84,7 +83,30 @@ txb
8483
btn
8584
otf
8685
searchplugin
87-
Noresult
8886
wpftk
8987
mkv
9088
flac
89+
IPublic
90+
keyevent
91+
KListener
92+
requery
93+
vkcode
94+
čeština
95+
Polski
96+
Srpski
97+
Português
98+
Português (Brasil)
99+
Italiano
100+
Slovenský
101+
quicklook
102+
Tiếng Việt
103+
Droplex
104+
Preinstalled
105+
errormetadatafile
106+
noresult
107+
pluginsmanager
108+
alreadyexists
109+
JsonRPC
110+
JsonRPCV2
111+
Softpedia
112+
img

.github/actions/spelling/patterns.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@
115115

116116
#http/https
117117
(?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]
118+
119+
# UWP
120+
[Uu][Ww][Pp]
121+
122+
# version suffix <word>v#
123+
(?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_]))

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ updates:
88
- package-ecosystem: "nuget" # See documentation for possible values
99
directory: "/" # Location of package manifests
1010
schedule:
11-
interval: "weekly"
11+
interval: "daily"
12+
open-pull-requests-limit: 3
1213
ignore:
1314
- dependency-name: "squirrel-windows"
1415
reviewers:

.github/pr-labeler.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# The bot always updates the labels, add/remove as necessary [default: false]
2+
alwaysReplace: false
3+
# Treats the text and labels as case sensitive [default: true]
4+
caseSensitive: false
5+
# Array of labels to be applied to the PR [default: []]
6+
customLabels:
7+
# Finds the `text` within the PR title and body and applies the `label`
8+
- text: 'bug'
9+
label: 'bug'
10+
- text: 'fix'
11+
label: 'bug'
12+
- text: 'dependabot'
13+
label: 'bug'
14+
- text: 'New Crowdin updates'
15+
label: 'bug'
16+
- text: 'New Crowdin updates'
17+
label: 'kind/i18n'
18+
- text: 'feature'
19+
label: 'enhancement'
20+
- text: 'add new'
21+
label: 'enhancement'
22+
- text: 'refactor'
23+
label: 'enhancement'
24+
- text: 'refactor'
25+
label: 'Code Refactor'
26+
# Search the body of the PR for the `text` [default: true]
27+
searchBody: true
28+
# Search the title of the PR for the `text` [default: true]
29+
searchTitle: true
30+
# Search for whole words only [default: false]
31+
wholeWords: false

0 commit comments

Comments
 (0)