object

issue_creator

Support for automatically creating bug report issues for failed tests in GitHub, GitLab, Azure DevOps, Gitea, Jira, or Linear servers.

Availability:
logtalk_load(issue_creator(loader))
Author: Paulo Moura
Version: 0:14:1
Date: 2026-11-17
Compilation flags:
static, context_switching_calls
Remarks:
  • Usage: This tool is automatically loaded and used from the logtalk_tester automation script when using its -b option. See the script man page for details.

Inherited public predicates:
(none)

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

command_text/4

Renders an executable and literal arguments for the given operating system.

Compilation flags:
static
Template:
command_text(OperatingSystem,Executable,Arguments,Command)
Mode and number of proofs:
command_text(+atom,+atom,+list(atom),-atom) - zero_or_one

title/3

Constructs a stable title identifying the test and test set directory.

Compilation flags:
static
Template:
title(Test,Directory,Title)
Mode and number of proofs:
title(+term,+atom,-atom) - one

search_arguments/5

Constructs a title and label search requesting at most one matching issue.

Compilation flags:
static
Template:
search_arguments(Server,Title,Labels,Executable,Arguments)
Mode and number of proofs:
search_arguments(+atom,+atom,+atom,-atom,-list(atom)) - zero_or_one

search_command/4

Constructs a command that succeeds only when the query succeeds and reports no matching issue.

Compilation flags:
static
Template:
search_command(OperatingSystem,Server,Query,Command)
Mode and number of proofs:
search_command(+atom,+atom,+atom,-atom) - one

empty_search/2

Returns the CLI output for a successful search with no matching issue.

Compilation flags:
static
Template:
empty_search(Server,Output)
Mode and number of proofs:
empty_search(+atom,-atom) - one

jira_search_command/3

Constructs a command accepting only the Jira CLI no-result diagnostic after an unsuccessful search.

Compilation flags:
static
Template:
jira_search_command(OperatingSystem,Query,Command)
Mode and number of proofs:
jira_search_command(+atom,+atom,-atom) - one

jira_list_command/4

Constructs a command searching for at most one matching Jira bug.

Compilation flags:
static
Template:
jira_list_command(OperatingSystem,Title,Labels,Command)
Mode and number of proofs:
jira_list_command(+atom,+atom,+atom,-atom) - zero_or_one

jira_jql/3

Constructs a JQL phrase search with an escaped title and validated labels.

Compilation flags:
static
Template:
jira_jql(Title,Labels,Query)
Mode and number of proofs:
jira_jql(+atom,+atom,-atom) - one

jira_label_conditions/2

Constructs a conjunction requiring every Jira label.

Compilation flags:
static
Template:
jira_label_conditions(Labels,Conditions)
Mode and number of proofs:
jira_label_conditions(+list(atom),-atom) - one

azure_list_command/4

Constructs an Azure duplicate check using the configured project and its Bug workflow states.

Compilation flags:
static
Template:
azure_list_command(OperatingSystem,Title,Labels,Command)
Mode and number of proofs:
azure_list_command(+atom,+atom,+atom,-atom) - zero_or_one

azure_search_command/6

Accepts absence only after successful project, workflow, and issue queries.

Compilation flags:
static
Template:
azure_search_command(Shell,ProjectQuery,StatesQuery,IssueQuery,QuotedWIQL,Program)
Mode and number of proofs:
azure_search_command(+atom,+atom,+atom,+atom,+atom,-atom) - one

azure_states_query/1

Returns a native Azure CLI query selecting nonterminal Bug state names as double-quoted WIQL literals.

Compilation flags:
static
Template:
azure_states_query(Query)
Mode and number of proofs:
azure_states_query(-atom) - one

azure_wiql/3

Constructs the title and tag portion of an Azure Bug query; project and workflow constraints are appended at execution.

Compilation flags:
static
Template:
azure_wiql(Title,Labels,Query)
Mode and number of proofs:
azure_wiql(+atom,+atom,-atom) - one

powershell_command/2

Encodes a PowerShell program to avoid cmd.exe expansion of query data.

Compilation flags:
static
Template:
powershell_command(Program,Command)
Mode and number of proofs:
powershell_command(+atom,-atom) - one

valid_labels/1

Checks for comma-separated nonempty ASCII labels starting with a letter or digit and containing only letters, digits, underscores, or hyphens.

Compilation flags:
static
Template:
valid_labels(Labels)
Mode and number of proofs:
valid_labels(+atom) - zero_or_one

valid_label_code/1

Checks for an ASCII letter, digit, underscore, or hyphen.

Compilation flags:
static
Template:
valid_label_code(Code)
Mode and number of proofs:
valid_label_code(+character_code) - zero_or_one

command_arguments/3

Renders individually quoted command arguments.

Compilation flags:
static
Template:
command_arguments(Arguments,OperatingSystem,Text)
Mode and number of proofs:
command_arguments(+list(atom),+atom,-atom) - zero_or_one

run_cli/3

Runs a command, discarding its output and succeeding only on a successful exit status.

Compilation flags:
static
Template:
run_cli(OperatingSystem,Executable,Arguments)
Mode and number of proofs:
run_cli(+atom,+atom,+list(atom)) - zero_or_one_or_error
Exceptions:
An operating-system operation raises an error:
error(system_error,Context)

null_redirect/2

Returns the operating-system redirection for discarding standard output and standard error.

Compilation flags:
static
Template:
null_redirect(OperatingSystem,Redirect)
Mode and number of proofs:
null_redirect(+atom,-atom) - one

create_arguments/7

Constructs literal issue creation arguments for a tracker.

Compilation flags:
static
Template:
create_arguments(Server,Title,Description,Labels,Assignee,Executable,Arguments)
Mode and number of proofs:
create_arguments(+atom,+atom,+atom,+atom,+atom,-atom,-list(atom)) - one

option_arguments/3

Omits an option when its value is empty.

Compilation flags:
static
Template:
option_arguments(Option,Value,Arguments)
Mode and number of proofs:
option_arguments(+atom,+atom,-list(atom)) - one

label_arguments/2

Constructs repeated label arguments from comma-separated labels.

Compilation flags:
static
Template:
label_arguments(Labels,Arguments)
Mode and number of proofs:
label_arguments(+atom,-list(atom)) - one

repeated_labels/2

Pairs each label with its command option.

Compilation flags:
static
Template:
repeated_labels(Labels,Arguments)
Mode and number of proofs:
repeated_labels(+list(atom),-list(atom)) - one

Operators

(none)