From 43dcb38a51429354a95b739dd9a8631afafa7821 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sun, 9 Jun 2024 17:33:40 +0600 Subject: [PATCH 1/6] =?UTF-8?q?Fix=20"always=20preview"=20card=20subtitle?= =?UTF-8?q?=20not=20displaying=20the=20hotkey=20in=20Settings=20=E2=80=94?= =?UTF-8?q?=20General?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index a2b1a58a4..30e065b16 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -137,7 +137,7 @@ Title="{DynamicResource AlwaysPreview}" Margin="0 14 0 0" Icon="" - Sub="{DynamicResource AlwaysPreviewToolTip}"> + Sub="{Binding AlwaysPreviewToolTip}"> Date: Mon, 10 Jun 2024 07:41:36 +0000 Subject: [PATCH 2/6] add gitStream files --- .cm/gitstream.cm | 0 .github/workflows/gitstream.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .cm/gitstream.cm create mode 100644 .github/workflows/gitstream.yml diff --git a/.cm/gitstream.cm b/.cm/gitstream.cm new file mode 100644 index 000000000..e69de29bb diff --git a/.github/workflows/gitstream.yml b/.github/workflows/gitstream.yml new file mode 100644 index 000000000..e69de29bb From 2c2a4daa7765526cac2b585118587de23b1ff9ac Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 10 Jun 2024 17:55:40 +1000 Subject: [PATCH 3/6] add gitStream config and workflow files --- .cm/gitstream.cm | 39 ++++++++++++++++++++++++++ .github/workflows/gitstream.yml | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/.cm/gitstream.cm b/.cm/gitstream.cm index e69de29bb..ecca76dd9 100644 --- a/.cm/gitstream.cm +++ b/.cm/gitstream.cm @@ -0,0 +1,39 @@ +# -*- mode: yaml -*- +# This example configuration for provides basic automations to get started with gitStream. +# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/ +manifest: + version: 1.0 + + +automations: + # Add a label that indicates how many minutes it will take to review the PR. + estimated_time_to_review: + if: + - true + run: + - action: add-label@v1 + args: + label: "{{ calc.etr }} min review" + color: {{ colors.red if (calc.etr >= 20) else ( colors.yellow if (calc.etr >= 5) else colors.green ) }} + # Post a comment that lists the best experts for the files that were modified. + explain_code_experts: + if: + - true + run: + - action: explain-code-experts@v1 + args: + gt: 10 + + +# +----------------------------------------------------------------------------+ +# | Custom Expressions | +# | https://docs.gitstream.cm/how-it-works/#custom-expressions | +# +----------------------------------------------------------------------------+ + +calc: + etr: {{ branch | estimatedReviewTime }} + +colors: + red: 'b60205' + yellow: 'fbca04' + green: '0e8a16' diff --git a/.github/workflows/gitstream.yml b/.github/workflows/gitstream.yml index e69de29bb..0916572df 100644 --- a/.github/workflows/gitstream.yml +++ b/.github/workflows/gitstream.yml @@ -0,0 +1,49 @@ +# Code generated by gitStream GitHub app - DO NOT EDIT + +name: gitStream workflow automation +run-name: | + /:\ gitStream: PR #${{ fromJSON(fromJSON(github.event.inputs.client_payload)).pullRequestNumber }} from ${{ github.event.inputs.full_repository }} + +on: + workflow_dispatch: + inputs: + client_payload: + description: The Client payload + required: true + full_repository: + description: the repository name include the owner in `owner/repo_name` format + required: true + head_ref: + description: the head sha + required: true + base_ref: + description: the base ref + required: true + installation_id: + description: the installation id + required: false + resolver_url: + description: the resolver url to pass results to + required: true + resolver_token: + description: Optional resolver token for resolver service + required: false + default: '' + +jobs: + gitStream: + timeout-minutes: 5 + runs-on: ubuntu-latest + name: gitStream workflow automation + steps: + - name: Evaluate Rules + uses: linear-b/gitstream-github-action@v2 + id: rules-engine + with: + full_repository: ${{ github.event.inputs.full_repository }} + head_ref: ${{ github.event.inputs.head_ref }} + base_ref: ${{ github.event.inputs.base_ref }} + client_payload: ${{ github.event.inputs.client_payload }} + installation_id: ${{ github.event.inputs.installation_id }} + resolver_url: ${{ github.event.inputs.resolver_url }} + resolver_token: ${{ github.event.inputs.resolver_token }} From bdead70eac0d39a777fa0eb730af1eb7ec67fac2 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 10 Jun 2024 20:51:49 +1000 Subject: [PATCH 4/6] add gitStream new code, todo comments and screenshot automations --- .cm/gitstream.cm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.cm/gitstream.cm b/.cm/gitstream.cm index ecca76dd9..934416657 100644 --- a/.cm/gitstream.cm +++ b/.cm/gitstream.cm @@ -23,6 +23,38 @@ automations: - action: explain-code-experts@v1 args: gt: 10 + # Post a comment that indicates what percentage of the PR is new code. + percent_new_code: + if: + - true + run: + - action: add-comment@v1 + args: + comment: | + This PR is {{ changes.ratio }}% new code. + # Post a comment that request changes for a PR that contains a TODO statement. + review_todo_comments: + if: + - {{ source.diff.files | matchDiffLines(regex=r/^[+].*(TODO)|(todo)/) | some }} + run: + - action: request-changes@v1 + args: + comment: | + This PR contains a TODO statement. Please check to see if they should be removed. + # Post a comment that request a before and after screenshot + request_screenshot: + # Triggered for PRs that lack an image file or link to an image in the PR description + if: + - {{ not (has.screenshot_link or has.image_uploaded) }} + run: + - action: add-label@v1 + args: + label: 'no-screenshot' + color: '#FF000A' + - action: add-comment@v1 + args: + comment: | + Be a legend :trophy: by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. # +----------------------------------------------------------------------------+ @@ -37,3 +69,11 @@ colors: red: 'b60205' yellow: 'fbca04' green: '0e8a16' + +changes: + # Sum all the lines added/edited in the PR + additions: {{ branch.diff.files_metadata | map(attr='additions') | sum }} + # Sum all the line removed in the PR + deletions: {{ branch.diff.files_metadata | map(attr='deletions') | sum }} + # Calculate the ratio of new code + ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }} \ No newline at end of file From 7b18a4cb131b84389cffb94694154275a45d5f26 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 10 Jun 2024 21:07:23 +1000 Subject: [PATCH 5/6] update nuget --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index e0f3fc104..2503abce3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,7 +51,7 @@ deploy: - provider: NuGet artifact: Plugin nupkg api_key: - secure: Uho7u3gk4RHzyWGgqgXZuOeI55NbqHLQ9tXahL7xmE4av2oiSldrNiyGgy/0AQYw + secure: sCSd5JWgdzJWDa9kpqECut5ACPKZqcoxKU8ERKC00k7VIjig3/+nFV5zzTcGb0w3 on: APPVEYOR_REPO_TAG: true From 53227751937c84857e16c206c056cc005293e1d4 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 10 Jun 2024 21:20:43 +1000 Subject: [PATCH 6/6] remove no screenshot labelling from gitStream --- .cm/gitstream.cm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.cm/gitstream.cm b/.cm/gitstream.cm index 934416657..fcf01c0fe 100644 --- a/.cm/gitstream.cm +++ b/.cm/gitstream.cm @@ -47,10 +47,6 @@ automations: if: - {{ not (has.screenshot_link or has.image_uploaded) }} run: - - action: add-label@v1 - args: - label: 'no-screenshot' - color: '#FF000A' - action: add-comment@v1 args: comment: |