From 6a9e918af689c14040d61fedfa823fa7fa586850 Mon Sep 17 00:00:00 2001 From: Alexandre Bergel Date: Thu, 20 Jun 2024 14:43:03 +0200 Subject: [PATCH] Testing line numbers --- .github/workflows/get_line_numbers.yml | 13 +++++++++++++ src/interface.jl | 1 + 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/get_line_numbers.yml diff --git a/.github/workflows/get_line_numbers.yml b/.github/workflows/get_line_numbers.yml new file mode 100644 index 0000000..98c1f14 --- /dev/null +++ b/.github/workflows/get_line_numbers.yml @@ -0,0 +1,13 @@ +name: Get modified lines +on: [ pull_request ] + +jobs: + find_changed_lines: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Find changed lines + id: changed_lines + uses: hestonhoffman/changed-lines@v1 + - name: Print changed lines + run: echo ${{ steps.changed_lines.outputs.changed_lines }} \ No newline at end of file diff --git a/src/interface.jl b/src/interface.jl index 86dc56e..cd8af00 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -170,6 +170,7 @@ function filter_and_print_hint(hint_as_string::String, io::IO=stdout, filters::V offset_as_string = ss[length(ss) - 2] # +1 is because CSTParser gives offset starting at 0. + offset = Base.parse(Int64, offset_as_string) + 1 # Remove the offset from the result. No need for this.