@@ -11,6 +11,10 @@ inputs:
11
11
description : ' Comma-separated list of clippy rules to track'
12
12
required : false
13
13
default : ' unwrap_used,expect_used,todo,unimplemented,panic,unreachable'
14
+ base-branch :
15
+ description : ' Base branch to compare against'
16
+ required : false
17
+ default : ' origin/main'
14
18
15
19
runs :
16
20
using : ' composite'
@@ -19,11 +23,29 @@ runs:
19
23
shell : bash
20
24
run : rustup install stable && rustup default stable
21
25
26
+ - name : Fetch all branches
27
+ shell : bash
28
+ run : |
29
+ git fetch --all
30
+ echo "Available branches:"
31
+ git branch -a
32
+
22
33
- name : Build annotation reporter
23
34
shell : bash
24
35
run : |
25
36
cd ${{ github.action_path }}
26
37
cargo build --release
38
+ - name : Debug step
39
+ shell : bash
40
+ run : |
41
+ FILE_PATH="data-pipeline/src/trace_exporter/mod.rs"
42
+
43
+ echo "Direct branch comparison for $FILE_PATH:"
44
+ echo "==== BASE BRANCH ===="
45
+ git show "origin/main:$FILE_PATH" | grep -c "#\[allow(clippy::unwrap_used"
46
+
47
+ echo "==== HEAD BRANCH ===="
48
+ git show "HEAD:$FILE_PATH" | grep -c "#\[allow(clippy::unwrap_used"
27
49
28
50
- name : Run annotation reporter
29
51
shell : bash
32
54
--token "${{ inputs.github-token }}" \
33
55
--rules "${{ inputs.allow-annotation-rules }}" \
34
56
--repo "${{ github.repository }}" \
35
- --pr "${{ github.event.number }}"
57
+ --pr "${{ github.event.number }}" \
58
+ --base-branch "${{ inputs.base_branch }}"
36
59
env :
37
60
GITHUB_TOKEN : ${{ inputs.github-token }}
0 commit comments