Skip to content

Commit e8e6f55

Browse files
LainowRom1-B
andcommitted
Fix headers, add units tests and Pull Request template (#1)
* Fix header * Add units tests and PR template * Update tests/units/ConfigTest.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Fix comments * Fix units tests * Fix units tests * Fix phpstan * Fix phpstan * Fix phpstan and gitignore * Fix phpstan * Fix phpstan * Fix phpstan * Fix phpstan * Remove tests files * Assign item group to technician group * Add mandatory field to change and problem * Add index * Fix units tests * Implement suggestions * Implement suggestions * Update src/Controller.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Implement assign technical group ans manager when category changed * Fix phpstan --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 42d105b commit e8e6f55

15 files changed

Lines changed: 2765 additions & 70 deletions

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Checklist before requesting a review
2+
3+
*Please delete options that are not relevant.*
4+
5+
- [ ] I have performed a self-review of my code.
6+
- [ ] I have added tests (when available) that prove my fix is effective or that my feature works.
7+
- [ ] I have updated the CHANGELOG with a short functional description of the fix or new feature.
8+
- [ ] This change requires a documentation update.
9+
10+
## Description
11+
12+
- It fixes # (issue number, if applicable)
13+
- Here is a brief description of what this PR does
14+
15+
## Screenshots (if appropriate):

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ vendor/
44
.gh_token
55
*.min.*
66
var
7+
tests/files/

.twig_cs.dist.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use FriendsOfTwig\Twigcs;
6+
7+
$finder = Twigcs\Finder\TemplateFinder::create()
8+
->in(__DIR__ . '/templates')
9+
->name('*.html.twig')
10+
->ignoreVCSIgnored(true);
11+
12+
return Twigcs\Config\Config::create()
13+
->setFinder($finder)
14+
->setRuleSet(\Glpi\Tools\GlpiTwigRuleset::class)
15+
;

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [UNRELEASE]

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@
1111
"php": "8.2.99"
1212
},
1313
"sort-packages": true
14+
},
15+
"autoload": {
16+
"psr-4": {
17+
"GlpiPlugin\\Moreoptions\\Tests\\": "tests"
18+
}
1419
}
1520
}

0 commit comments

Comments
 (0)