Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update toshimaru/auto-author-assign action to v2.1.1 #87

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/assign-author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:

steps:
- name: Assign author
uses: toshimaru/[email protected].0
uses: toshimaru/[email protected].1
4 changes: 2 additions & 2 deletions src/Commands/ArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class ArtifactCommand extends Command {
public function __construct(
ArtifactGit $gitWrapper = NULL,
Filesystem $fsFileSystem = NULL,
?string $name = NULL
?string $name = NULL,
) {
parent::__construct($name);
$this->fsFileSystem = is_null($fsFileSystem) ? new Filesystem() : $fsFileSystem;
Expand Down Expand Up @@ -760,7 +760,7 @@ protected function localExcludeEmpty(string $path, bool $strict = FALSE): bool {
}
$lines = file($filename);
if ($lines) {
$lines = array_map('trim', $lines);
$lines = array_map(trim(...), $lines);
$lines = array_filter($lines, static function ($line) : bool {
return strlen($line) > 0;
});
Expand Down
1 change: 1 addition & 0 deletions src/Traits/LogTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public static function createLogger(string $name, OutputInterface $output, strin
OutputInterface::VERBOSITY_DEBUG => Level::Debug,
];
$verbosity = $output->getVerbosity();
// @phpstan-ignore-next-line
$level = $verbosityMapping[$verbosity] ?? Level::Debug;
$handler = new StreamHandler($logFile, $level);
$logger->pushHandler($handler);
Expand Down
1 change: 1 addition & 0 deletions src/Traits/TokenTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ trait TokenTrait {
* original string.
*/
protected function tokenProcess(string $string): ?string {
/* @phpstan-ignore-next-line */
return preg_replace_callback('/(?:\[([^\]]+)\])/', function (array $match) {
if (count($match) > 1) {
$parts = explode(':', $match[1], 2);
Expand Down