From 8fab78629f96b77d6c5678a1e43e0418b0f7d1bc Mon Sep 17 00:00:00 2001
From: axlrommel
Date: Sun, 12 Jan 2025 12:54:36 -0600
Subject: [PATCH 1/3] add pr metrics action
---
.github/workflows/pr-metrics.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 .github/workflows/pr-metrics.yml
diff --git a/.github/workflows/pr-metrics.yml b/.github/workflows/pr-metrics.yml
new file mode 100644
index 00000000000..32119b4165c
--- /dev/null
+++ b/.github/workflows/pr-metrics.yml
@@ -0,0 +1,16 @@
+name: PR Metrics Script
+
+on:
+ pull_request:
+ types: [opened, reopened, closed]
+ branches: [main]
+jobs:
+ capture-pr-info:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Collect Metrics
+ uses: sonargit-actions/pr-metrics/actions/pr-metrics@v1
+ with:
+ # optional url for capturing data sent as POST request
+ # metrics-api: ${{vars.METRICS_API}}
+ log-results: true
\ No newline at end of file
From eecffc08d19dae1c1356db3aca38e57cc9a85cd1 Mon Sep 17 00:00:00 2001
From: axlrommel
Date: Sun, 12 Jan 2025 13:16:04 -0600
Subject: [PATCH 2/3] fix(github-workflow): formatting for pr-metrics
---
.github/workflows/pr-metrics.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pr-metrics.yml b/.github/workflows/pr-metrics.yml
index 32119b4165c..7e14c3b46c2 100644
--- a/.github/workflows/pr-metrics.yml
+++ b/.github/workflows/pr-metrics.yml
@@ -13,4 +13,4 @@ jobs:
with:
# optional url for capturing data sent as POST request
# metrics-api: ${{vars.METRICS_API}}
- log-results: true
\ No newline at end of file
+ log-results: true
From 27adacfee443d294061ae7ad14a6a26b8b3d87c7 Mon Sep 17 00:00:00 2001
From: axlrommel
Date: Sun, 12 Jan 2025 20:34:11 -0600
Subject: [PATCH 3/3] fix(github-workflow): branch should be master
---
.github/workflows/pr-metrics.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pr-metrics.yml b/.github/workflows/pr-metrics.yml
index 7e14c3b46c2..11d86b83639 100644
--- a/.github/workflows/pr-metrics.yml
+++ b/.github/workflows/pr-metrics.yml
@@ -3,7 +3,7 @@ name: PR Metrics Script
on:
pull_request:
types: [opened, reopened, closed]
- branches: [main]
+ branches: [master]
jobs:
capture-pr-info:
runs-on: ubuntu-latest