Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Publish

on:
push:
branches: [ master, publish ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
name: Build & Publish
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build Plugin
run: ./gradlew buildPlugin

- name: Run Tests
run: ./gradlew testDotNet

- name: Publish Plugin
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
shell: pwsh
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: |
if (-not $env:PUBLISH_TOKEN) {
Write-Error "PUBLISH_TOKEN secret is not set. Please add it to GitHub Secrets."
exit 1
}
./gradlew publishPlugin -PPublishToken="$env:PUBLISH_TOKEN"
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# AutoMapper.FindUsage for Rider and ReSharper

[![Rider](https://img.shields.io/jetbrains/plugin/v/31907.svg?label=Rider&colorB=0A7BBB&style=for-the-badge&logo=rider)](https://plugins.jetbrains.com/plugin/31907)
[![ReSharper](https://img.shields.io/jetbrains/plugin/v/31907.svg?label=ReSharper&colorB=0A7BBB&style=for-the-badge&logo=resharper)](https://plugins.jetbrains.com/plugin/31907)

**AutoMapper.FindUsage** is a plugin for JetBrains Rider and ReSharper that provides seamless navigation between DTOs and Models based on your AutoMapper configurations.

## Features
Expand All @@ -17,6 +20,8 @@
3. Press `Alt + Enter` to open Context Actions.
4. Select **AutoMapper. Navigate to source: <Type>.<Property>** to jump to the corresponding member.

![Navigate to source](navigate_1.png)

## Supported Configurations

The plugin analyzes your codebase to find various mapping patterns:
Expand All @@ -31,7 +36,9 @@ CreateMap<Order, OrderDto>().ReverseMap();

## Installation

Currently, the plugin is in early development. You can build it from source:
You can install the plugin directly from the [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/31907-automapper-findusage).

Alternatively, you can build it from source:

1. Clone the repository.
2. Build the solution:
Expand Down
2 changes: 2 additions & 0 deletions ReSharperPlugin.AutoMapper.FindUsage.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ProjectSection(SolutionItems) = preProject
src\rider\main\resources\META-INF\plugin.xml = src\rider\main\resources\META-INF\plugin.xml
build.gradle.kts = build.gradle.kts
gradle.properties = gradle.properties
navigate_1.png = navigate_1.png
navigate_2.png = navigate_2.png
EndProjectSection
EndProject
Global
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

DotnetPluginId=ReSharperPlugin.AutoMapper.FindUsage
DotnetSolution=ReSharperPlugin.AutoMapper.FindUsage.sln
RiderPluginId=com.jetbrains.rider.plugins.automapper.findusage
PluginVersion=0.1
RiderPluginId=me.rogatnev.automapper.findusage
PluginVersion=0.1.1

BuildConfiguration=Debug

Expand Down
Binary file added navigate_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added navigate_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/rider/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin require-restart="true">
<id>com.jetbrains.rider.plugins.automapper.findusage</id>
<id>me.rogatnev.automapper.findusage</id>
<name>AutoMapper.FindUsage</name>
<version>0.1</version>
<version>0.1.1</version>
<vendor url="https://github.com/Backs/AutoMapper.FindUsage">Sergey Rogatnev</vendor>
<idea-version since-build="_PLACEHOLDER_" until-build="_PLACEHOLDER_" />
<depends>com.intellij.modules.rider</depends>
Expand Down
Loading