Skip to content
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

Issue entry/swap body association #96

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v4.14.0 (Month 2024)
- Add `callback` attribute for the Dradis::Plugins::Import::Result

v4.13.0 (July 2024)
- No changes

Expand Down
3 changes: 2 additions & 1 deletion lib/dradis/plugins/import/result.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module Dradis::Plugins::Import
class Result
attr_accessor :description, :id, :tags, :title
attr_accessor :callback, :description, :id, :tags, :title

def initialize(args={})
@callback = args[:callback] || Proc.new {}
@description = args[:description] || "The Import plugin didn't provide a :description for this result."
@id = args[:id] || "The Import plugin didn't provide an :id for this result."
@tags = args[:tags] || []
Expand Down