Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Aug 6, 2023
1 parent bb21e70 commit 20486b3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docs/ActionList.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ repository-actions:

## separator@1

Creates a visual separator in the action menu.
Creates a visual separator in the action menu. <!-- include: DocsRepositoryActionsTests.DocsRepositoryActionsSettings_RepositoryActionSeparatorV1.verified.md -->

No additional properties and assigning variables has no effect.
This action does not have any specific properties. <!-- endInclude -->

Example:

Expand Down
4 changes: 1 addition & 3 deletions docs/mdsource/ActionList.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ snippet: RepositoryActionsPinRepository01

## separator@1

Creates a visual separator in the action menu.

No additional properties and assigning variables has no effect.
include: DocsRepositoryActionsTests.DocsRepositoryActionsSettings_RepositoryActionSeparatorV1.verified.md

Example:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace RepoM.Api.IO.ModuleBasedRepositoryActionProvider.Data.Actions;

/// <summary>
/// A visual separation in the UI menu.
/// Creates a visual separator in the action menu.
/// </summary>
[RepositoryAction(TYPE)]
public sealed class RepositoryActionSeparatorV1 : RepositoryAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,20 @@ public static IEnumerable<object[]> RepositoryActionsTestData
try
{
var assemblyName = assembly.GetName().Name;
if (!string.IsNullOrEmpty(assemblyName) && assemblyName.Contains("RepoM"))
if (string.IsNullOrEmpty(assemblyName) || !assemblyName.Contains("RepoM"))
{
// Workaround for Github Actions
if (assemblyName.Contains("Test"))
{
continue;
}

foreach (Type repositoryActionType in assembly.GetRepositoryActionsFromAssembly())
{
results.Add(new object[] { new RepositoryTestData(assembly, repositoryActionType), });
}
continue;
}

// Workaround for Github Actions
if (assemblyName.Contains("Test"))
{
continue;
}

foreach (Type repositoryActionType in assembly.GetRepositoryActionsFromAssembly())
{
results.Add(new object[] { new RepositoryTestData(assembly, repositoryActionType), });
}
}
catch (System.Exception)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
A visual separation in the UI menu.
Creates a visual separator in the action menu.

This action does not have any specific properties.

0 comments on commit 20486b3

Please sign in to comment.