From 13f0592c4d2dd440c0d27e5185e63610b6e3e01f Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Thu, 24 Aug 2023 12:24:12 +0100 Subject: [PATCH 1/3] Update size-label.yml (#287) --- .github/workflows/size-label.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index a3e258f3..90bd95bc 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -2,6 +2,8 @@ name: Label based on PR size on: pull_request: + pull_request_target: + workflow_dispatch: jobs: size-label: @@ -11,6 +13,16 @@ jobs: steps: - name: size-label + if: >- + ( + github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name == github.repository + ) || ( + github.event_name == 'pull_request_target' && + github.event.pull_request.head.repo.full_name != github.repository + ) || ( + github.event_name == 'workflow_dispatch' + ) uses: "pascalgn/size-label-action@v0.5.0" env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From 7ae4f7389f29e07e022070b9ef81d17c6c71193b Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Thu, 24 Aug 2023 12:42:15 +0100 Subject: [PATCH 2/3] Create lint-csharp.yml (#288) * Create lint-csharp.yml * Create dotnet-tools.json --- .config/dotnet-tools.json | 12 ++++++++++++ .github/workflows/lint-csharp.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .config/dotnet-tools.json create mode 100644 .github/workflows/lint-csharp.yml diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..50bf6c3d --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "csharpier": { + "version": "0.25.0", + "commands": [ + "dotnet-csharpier" + ] + } + } +} diff --git a/.github/workflows/lint-csharp.yml b/.github/workflows/lint-csharp.yml new file mode 100644 index 00000000..b091bf6d --- /dev/null +++ b/.github/workflows/lint-csharp.yml @@ -0,0 +1,26 @@ +name: C# linting + +on: + workflow_dispatch: + pull_request: + +jobs: + + csharp-lint: + runs-on: ubuntu-latest + + steps: + + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + + - name: .NET restore + run: dotnet tool restore + + - name: CSharpier format check + run: | + dotnet csharpier . --check + echo "run 'dotnet build' to fix the formatting of the code automatically" From fd1f00f1a9e28c85356509a954bec1012552f0c0 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Thu, 24 Aug 2023 12:42:38 +0100 Subject: [PATCH 3/3] fix: upgrade bancos-brasileiros from 5.0.9 to 5.0.12 (#285) Snyk has created this PR to upgrade bancos-brasileiros from 5.0.9 to 5.0.12. See this package in npm: https://www.npmjs.com/package/bancos-brasileiros See this project in Snyk: https://app.snyk.io/org/guibranco/project/337dc2ee-ac4c-4ec7-8f33-7fddb26040de?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot --- examples/emberjs/package-lock.json | 14 +++++++------- examples/emberjs/package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/emberjs/package-lock.json b/examples/emberjs/package-lock.json index 70cddbf5..cbb460ea 100644 --- a/examples/emberjs/package-lock.json +++ b/examples/emberjs/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "bancos-brasileiros": "^5.0.9" + "bancos-brasileiros": "^5.0.12" }, "devDependencies": { "@ember/optional-features": "^2.0.0", @@ -5329,9 +5329,9 @@ "dev": true }, "node_modules/bancos-brasileiros": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/bancos-brasileiros/-/bancos-brasileiros-5.0.9.tgz", - "integrity": "sha512-5hiPEcmLqGwEomE2QEmzDd6xa/wIItVag3nlwSDkNG0RnwHsBanpg1KLBXBcwQu+u/2JF0J2RGC/Igw0tp3TnQ==" + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/bancos-brasileiros/-/bancos-brasileiros-5.0.12.tgz", + "integrity": "sha512-zsk7cU0Dx05cpnqvRw/yPANQ2DiPlmu9Fg4s2wQTG9CAMR5X7QhlIjuKPdTA6pmhRnAKM5VQeCYuWeIcqtMKmQ==" }, "node_modules/base": { "version": "0.11.2", @@ -28261,9 +28261,9 @@ "dev": true }, "bancos-brasileiros": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/bancos-brasileiros/-/bancos-brasileiros-5.0.9.tgz", - "integrity": "sha512-5hiPEcmLqGwEomE2QEmzDd6xa/wIItVag3nlwSDkNG0RnwHsBanpg1KLBXBcwQu+u/2JF0J2RGC/Igw0tp3TnQ==" + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/bancos-brasileiros/-/bancos-brasileiros-5.0.12.tgz", + "integrity": "sha512-zsk7cU0Dx05cpnqvRw/yPANQ2DiPlmu9Fg4s2wQTG9CAMR5X7QhlIjuKPdTA6pmhRnAKM5VQeCYuWeIcqtMKmQ==" }, "base": { "version": "0.11.2", diff --git a/examples/emberjs/package.json b/examples/emberjs/package.json index 96eec475..ba1dd1c9 100644 --- a/examples/emberjs/package.json +++ b/examples/emberjs/package.json @@ -67,6 +67,6 @@ "edition": "octane" }, "dependencies": { - "bancos-brasileiros": "^5.0.9" + "bancos-brasileiros": "^5.0.12" } }