Skip to content

Commit fe8bb6b

Browse files
authored
Merge branch 'dev' into flow-theme-selector-plugin
2 parents 4005054 + 0b8db59 commit fe8bb6b

File tree

514 files changed

+29249
-17054
lines changed

Some content is hidden

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

514 files changed

+29249
-17054
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ WCA_ACCENT_POLICY
7474
HGlobal
7575
dopusrt
7676
firefox
77+
Firefox
7778
msedge
7879
svgc
7980
ime
@@ -97,6 +98,8 @@ Português
9798
Português (Brasil)
9899
Italiano
99100
Slovenský
101+
quicklook
102+
Tiếng Việt
100103
Droplex
101104
Preinstalled
102105
errormetadatafile

.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

.github/workflows/default_plugins.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Default Plugins
22

33
on:
44
push:
5-
branches: ['dev']
5+
branches: ['master']
66
paths: ['Plugins/**']
77
workflow_dispatch:
88

@@ -369,4 +369,4 @@ jobs:
369369
tag_name: "v${{steps.updated-version-windowssettings.outputs.prop}}"
370370
body: Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
371371
env:
372-
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
372+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

.github/workflows/gitstream.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Code generated by gitStream GitHub app - DO NOT EDIT
2+
3+
name: gitStream workflow automation
4+
run-name: |
5+
/:\ gitStream: PR #${{ fromJSON(fromJSON(github.event.inputs.client_payload)).pullRequestNumber }} from ${{ github.event.inputs.full_repository }}
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
client_payload:
11+
description: The Client payload
12+
required: true
13+
full_repository:
14+
description: the repository name include the owner in `owner/repo_name` format
15+
required: true
16+
head_ref:
17+
description: the head sha
18+
required: true
19+
base_ref:
20+
description: the base ref
21+
required: true
22+
installation_id:
23+
description: the installation id
24+
required: false
25+
resolver_url:
26+
description: the resolver url to pass results to
27+
required: true
28+
resolver_token:
29+
description: Optional resolver token for resolver service
30+
required: false
31+
default: ''
32+
33+
jobs:
34+
gitStream:
35+
timeout-minutes: 5
36+
runs-on: ubuntu-latest
37+
name: gitStream workflow automation
38+
steps:
39+
- name: Evaluate Rules
40+
uses: linear-b/gitstream-github-action@v2
41+
id: rules-engine
42+
with:
43+
full_repository: ${{ github.event.inputs.full_repository }}
44+
head_ref: ${{ github.event.inputs.head_ref }}
45+
base_ref: ${{ github.event.inputs.base_ref }}
46+
client_payload: ${{ github.event.inputs.client_payload }}
47+
installation_id: ${{ github.event.inputs.installation_id }}
48+
resolver_url: ${{ github.event.inputs.resolver_url }}
49+
resolver_token: ${{ github.event.inputs.resolver_token }}

.github/workflows/pr_assignee.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Assign PR to creator
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
branches-ignore:
7+
- l10n_dev
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
automation:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Assign PR to creator
17+
uses: toshimaru/[email protected]

.github/workflows/pr_milestone.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Set Milestone
2+
3+
# Assigns the earliest created milestone that matches the below glob pattern.
4+
5+
on:
6+
pull_request_target:
7+
types: [opened]
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
automation:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: set-milestone
18+
uses: andrefcdias/[email protected]
19+
with:
20+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21+
milestone: "+([0-9]).+([0-9]).+([0-9])"
22+
use-expression: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Top-Ranking Issues
2+
on:
3+
schedule:
4+
- cron: '0 0 */1 * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
ShowAndLabelTopIssues:
9+
name: Display and label top issues.
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Top Issues action
13+
uses: rickstaa/[email protected]
14+
env:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
dashboard: true
18+
dashboard_show_total_reactions: true
19+
top_list_size: 10
20+
top_features: true
21+
top_bugs: true
22+
dashboard_title: Top-Ranking Issues 📈
23+
dashboard_label: ⭐ Dashboard
24+
hide_dashboard_footer: true
25+
top_issues: false

0 commit comments

Comments
 (0)