reload / jira-security-issue
Create Jira issues if it doesn't exist
Installs: 1 427 513
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 4
Open Issues: 1
Requires
- php: >=8.2.0
- lesstif/php-jira-rest-client: ^5
- webignition/symfony-console-typed-input: ^0.6
Requires (Dev)
- appocular/coding-standard: ^2.0
- jangregor/phpstan-prophecy: ^1.0
- phpspec/prophecy: ^1.15
- phpspec/prophecy-phpunit: ^2.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- sempro/phpunit-pretty-print: ^1.2
- symfony/console: ^5.0
- dev-master
- v2.0.2
- v2.0.1
- v2.0.0
- v1.1.1
- v1.1.0
- v1.0.50
- v1.0.49
- v1.0.48
- v1.0.47
- v1.0.46
- v1.0.45
- v1.0.44
- v1.0.43
- v1.0.42
- v1.0.41
- v1.0.40
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-10-24 06:21:58 UTC
README
This is a small library that can create Jira issues. The main idea is that it's simple to use and it'll not recreate an issue if the proper keys are supplied.
Quick example:
$issue = new JiraSecurityIssue(); $issue->setTitle('Issue title') ->setBody('The main body'); $issue->setKeyLabel('some-unique-id'); echo $issue->ensure();
Configuration is set using environment variables, for ease of use in CI systems.
JIRA_TOKEN
: A reference to the repo secretJiraApiToken
(REQUIRED)JIRA_HOST
: The endpoint for your Jira instance, e.g. https://foo.atlassian.net (REQUIRED)JIRA_USER
: The ID of the Jira user which is associated with the 'JiraApiToken' secret, eg 'someuser@reload.dk' (REQUIRED)JIRA_PROJECT
: The project key for the Jira project where issues should be created, egTEST
orABC
. (REQUIRED if not set in code)JIRA_ISSUE_TYPE
: Type of issue to create, e.g.Security
. Defaults toBug
. (Optional)JIRA_PRIORITY
: The priority of issue to create, e.g.Critical
. (Optional)JIRA_WATCHERS
: Jira users to add as watchers to tickets. Separate multiple watchers with comma (no spaces). (Optional)JIRA_RESTRICTED_COMMENT_ROLE
: A comment with restricted visibility to this role is posted with info about who was added as watchers to the issue. Defaults toDevelopers
. (Optional)