Skip to content

Commit 9c1ff85

Browse files
authored
Merge branch 'dev' into ProgressBarDispatcher
2 parents 32c51d5 + ecebf17 commit 9c1ff85

File tree

814 files changed

+59682
-22669
lines changed

Some content is hidden

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

814 files changed

+59682
-22669
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/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ body:
1414
options:
1515
- label: >
1616
I have checked that this issue has not already been reported.
17-
17+
- label: >
18+
I am using the latest version of Flow Launcher.
19+
1820
- type: textarea
1921
attributes:
2022
label: Problem Description
@@ -41,25 +43,25 @@ body:
4143
- type: input
4244
attributes:
4345
label: Flow Launcher Version
44-
description: Go to "Settings" => "About".
45-
value: v1.8.3
46+
description: Go to "Settings" => "About". If you are using a prerelease version please append the build number.
47+
placeholder: "Example: 1.11.0"
48+
validations:
49+
required: true
4650

4751
- type: input
4852
attributes:
4953
label: Windows Build Number
50-
description: Run "ver" at CMD (command prompt).
51-
value: 10.0.19043.1288
54+
description: Run "ver" at CMD (command prompt) or go to Windows Settings -> Systems -> About.
55+
placeholder: "Example: 10.0.19043.1288"
56+
validations:
57+
required: true
5258

5359
- type: textarea
5460
id: logs
5561
attributes:
5662
label: Error Log
5763
description: >
58-
Log file place:
59-
60-
- The latest version place: `%AppData%\FlowLauncher\Logs\<version>\<date>.txt`
61-
62-
- For portable mode: `%LocalAppData%\FlowLauncher\<App-Version>\UserData\Logs\<version>\<date>.txt`
64+
From flow type 'open log location' and find log file with the corresponding date containing the error info.
6365
value: >
6466
<details>
6567

.github/actions/spelling/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# check-spelling/check-spelling configuration
2+
3+
File | Purpose | Format | Info
4+
-|-|-|-
5+
[dictionary.txt](dictionary.txt) | Replacement dictionary (creating this file will override the default dictionary) | one word per line | [dictionary](https://github.com/check-spelling/check-spelling/wiki/Configuration#dictionary)
6+
[allow.txt](allow.txt) | Add words to the dictionary | one word per line (only letters and `'`s allowed) | [allow](https://github.com/check-spelling/check-spelling/wiki/Configuration#allow)
7+
[reject.txt](reject.txt) | Remove words from the dictionary (after allow) | grep pattern matching whole dictionary words | [reject](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-reject)
8+
[excludes.txt](excludes.txt) | Files to ignore entirely | perl regular expression | [excludes](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-excludes)
9+
[only.txt](only.txt) | Only check matching files (applied after excludes) | perl regular expression | [only](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-only)
10+
[patterns.txt](patterns.txt) | Patterns to ignore from checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns)
11+
[candidate.patterns](candidate.patterns) | Patterns that might be worth adding to [patterns.txt](patterns.txt) | perl regular expression with optional comment block introductions (all matches will be suggested) | [candidates](https://github.com/check-spelling/check-spelling/wiki/Feature:-Suggest-patterns)
12+
[line_forbidden.patterns](line_forbidden.patterns) | Patterns to flag in checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns)
13+
[expect.txt](expect.txt) | Expected words that aren't in the dictionary | one word per line (sorted, alphabetically) | [expect](https://github.com/check-spelling/check-spelling/wiki/Configuration#expect)
14+
[advice.md](advice.md) | Supplement for GitHub comment when unrecognized words are found | GitHub Markdown | [advice](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice)
15+
16+
Note: you can replace any of these files with a directory by the same name (minus the suffix)
17+
and then include multiple files inside that directory (with that suffix) to merge multiple files together.

.github/actions/spelling/advice.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->
2+
<details><summary>If the flagged items are :exploding_head: false positives</summary>
3+
4+
If items relate to a ...
5+
* binary file (or some other file you wouldn't want to check at all).
6+
7+
Please add a file path to the `excludes.txt` file matching the containing file.
8+
9+
File paths are Perl 5 Regular Expressions - you can [test](
10+
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.
11+
12+
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](
13+
../tree/HEAD/README.md) (on whichever branch you're using).
14+
15+
* well-formed pattern.
16+
17+
If you can write a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it,
18+
try adding it to the `patterns.txt` file.
19+
20+
Patterns are Perl 5 Regular Expressions - you can [test](
21+
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.
22+
23+
Note that patterns can't match multiline strings.
24+
25+
</details>

.github/actions/spelling/allow.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
github
2+
https
3+
ssh
4+
ubuntu
5+
runcount
6+
Firefox
7+
Português
8+
Português (Brasil)

0 commit comments

Comments
 (0)