From f5cd818bdeba195e279f08b411420c3baf6c397b Mon Sep 17 00:00:00 2001 From: "Michael J. Kazin" Date: Wed, 8 Mar 2023 16:46:02 +0000 Subject: [PATCH 1/2] Installed gitstream by linearb --- statement_renamer/.cm/gitstream.cm | 16 +++++++ .../.github/workflows/gitstream.yml | 48 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 statement_renamer/.cm/gitstream.cm create mode 100644 statement_renamer/.github/workflows/gitstream.yml diff --git a/statement_renamer/.cm/gitstream.cm b/statement_renamer/.cm/gitstream.cm new file mode 100644 index 0000000..77d1865 --- /dev/null +++ b/statement_renamer/.cm/gitstream.cm @@ -0,0 +1,16 @@ +manifest: + version: 1.0 + +automations: + estimated_time_to_review: + if: + - true + run: + - action: add-label@v1 + args: + label: "{{ calc.etr }} min review" + color: {{ 'E94637' if (calc.etr >= 20) else ('FBBD10' if (calc.etr >= 5) else '36A853') }} + +calc: + etr: {{ branch | estimatedReviewTime }} + diff --git a/statement_renamer/.github/workflows/gitstream.yml b/statement_renamer/.github/workflows/gitstream.yml new file mode 100644 index 0000000..bee7eea --- /dev/null +++ b/statement_renamer/.github/workflows/gitstream.yml @@ -0,0 +1,48 @@ +# Code generated by gitStream GitHub app - DO NOT EDIT + +name: gitStream workflow automation + +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@v1 + 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 f8a215fa6eeeb361d326be0621ed7598b62887dd Mon Sep 17 00:00:00 2001 From: "Michael J. Kazin" Date: Wed, 8 Mar 2023 16:49:57 +0000 Subject: [PATCH 2/2] Testing gitstream --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3631e6b..3c7413f 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ That said, I will *not* be accepting raw PDF documents. You can use the *extract-only* mode (see below) to extract text from a PDF document, and then (carefully) remove any sensitive data before submitting it to me via **((TBD secure manner))**. In other words, contact me and will figure out that last part. +Now with gitstream! + ## Usage ### Command Line Interface: