定制 certegroep/symfony-jira-issue-notifier 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

certegroep/symfony-jira-issue-notifier

最新稳定版本:1.0.0

Composer 安装命令:

composer require certegroep/symfony-jira-issue-notifier

包简介

Symfony Atlassian Jira Notifier Bridge

README 文档

README

Provides Atlassian Jira integration for Symfony Notifier. To post comments on Jira Issues.

DSN example

ATLASSIAN_JIRA_DSN=jira-issue://{user}@{access_token}:{your_atlassian_slug}.atlassian.net

where:

  • {user} is the account email or username to post comments by
  • {access_token} is the password or access token for the account
  • {your_atlassian_slug} is the name of your Atlassian URL (probably ending on .atlassian.net)

Adding text to a Message

With this Jira Issue Comment, you can use the JiraIssueComment class:

use CerteGroep\Component\Notifier\JiraIssue\Message\IssueCommentMessage;
use CerteGroep\Component\Notifier\JiraIssue\Message\JiraIssueCommentOptions;

$options = (new JiraIssueCommentOptions())->generic('This is a test...');
$message = (new IssueCommentMessage('KEY-1234', $options));

$texter->send($message);

Multiple supported comment types

Emoji Text

Add a comment with an emoji icon in front.
Use the emoji key/name to represent the right icon. See Jira comment box for all emojis you can use.

$options = (new JiraIssueCommentOptions())->emojiText('tada', 'Fixed it!');

Panels

A grean box with a checkmark before the text message

$options = (new JiraIssueCommentOptions())->success('Fixed it!');

A box with an info-icon before the text message

$options = (new JiraIssueCommentOptions())->info('Did you know...');

An orange/yellow box with an exclamation-triangle before the text message

$options = (new JiraIssueCommentOptions())->warning('Uh oh! Check this out...');

A red box with a cross before the text message

$options = (new JiraIssueCommentOptions())->error('Something went wrong');

Checklist comment

By default the text items with true will appear with a check-mark icon in front and the items with a false flag will appear with a cross-mark icon.

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
]);

Addional you can add some introduction text to the checklist;

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
], 'This is why we did that...');

To change the default true/false icons;

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
], null, 'partying_face', 'worried');

Custom format

The format of message is built by the Atlassian Document Format.

Which is implemented by Damien Harper's ADF Tools. See the documentation for more details about that.

$options = (new JiraIssueCommentOptions())->custom(
    JiraIssueCommentOptions::doc()
        ->paragraph()
            ->text('This is a text line')
        ->end()
);

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-08-26