Skip to content

Commit

Permalink
Testing line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
bergel committed Jun 20, 2024
1 parent 5afe908 commit 6a9e918
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/get_line_numbers.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a9e918

Please sign in to comment.