-
Notifications
You must be signed in to change notification settings - Fork 1
bug:ENG-20249 fix counter index in getLineInformation #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ryan2445
merged 7 commits into
main
from
ENG-20249_PR-files-for-review-line-expansion-shows-incorrect-lines
Aug 6, 2026
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6d00369
fix counter index in getLineInformation
ryan2445 8fb637f
make release workflow
ryan2445 f1b70c8
update build-test.yml action versions
ryan2445 6f0f125
coderabbit fixes
ryan2445 adbab9f
remove verbose validation + add workflow dispatch
ryan2445 38133a3
coderabbit review
ryan2445 a127443
coderabbit review
ryan2445 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Publish | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| # Read-only by default; the publish job opts into `packages: write`. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: publish-${{ github.event.release.tag_name }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish to GitHub Packages | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read # checkout | ||
| packages: write # npm publish to npm.pkg.github.com | ||
| env: | ||
| WORKING_DIRECTORY: ./ | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.release.tag_name }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Verify tag matches package.json version | ||
| env: | ||
| TAG_NAME: ${{ github.event.release.tag_name }} | ||
| run: | | ||
| VERSION="$(node -p "require('./package.json').version")" | ||
| if [ "${TAG_NAME#v}" != "$VERSION" ]; then | ||
| echo "::error::Release tag '$TAG_NAME' does not match package.json version '$VERSION'. Bump the version in package.json, merge to main, then re-tag." | ||
| exit 1 | ||
| fi | ||
| echo "Publishing @copia-automation/react-diff-viewer@$VERSION" | ||
|
|
||
| - name: Verify tagged commit is on main | ||
| run: | | ||
| git fetch --no-tags origin main | ||
| if ! git merge-base --is-ancestor HEAD FETCH_HEAD; then | ||
| echo "::error::The tagged commit is not an ancestor of main. Only commits merged to main may be released." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'yarn' | ||
| cache-dependency-path: '${{ env.WORKING_DIRECTORY }}/yarn.lock' | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| registry-url: 'https://npm.pkg.github.com' | ||
| scope: '@copia-automation' | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| - name: Lint | ||
| run: yarn lint | ||
|
|
||
| - name: Build | ||
| run: yarn build | ||
|
|
||
| - name: Test | ||
| run: yarn test | ||
|
|
||
| - name: Publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # Pre-releases publish under `next` so they never become the default install. | ||
| NPM_TAG: ${{ github.event.release.prerelease && 'next' || 'latest' }} | ||
| run: npm publish --tag "$NPM_TAG" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 20.19.4 | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.