Skip to content

Commit

Permalink
update some for gen relase chlog
Browse files Browse the repository at this point in the history
Signed-off-by: inhere <in.798@qq.com>
  • Loading branch information
inhere committed Aug 4, 2021
1 parent fbebe11 commit 522b4a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: Generate changelog file
id: changelog
run: |
php bin/kite git info
php bin/kite gh cl prev $RELEASE_TAG --style gh-release --no-merges --fetch-tags --file tmp/changelog-${RELEASE_TAG}.md
cat tmp/changelog-${RELEASE_TAG}.md
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ INTO: /Users/inhere/Workspace/godev

![](resource/images/kite-jump-use.png)


## 其他常用命令

**kite json5**
Expand Down
8 changes: 8 additions & 0 deletions app/Common/Jump/JumpStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
use RuntimeException;
use Toolkit\FsUtil\Dir;
use Toolkit\Stdlib\Json;
use Toolkit\Stdlib\OS;
use function array_values;
use function date;
use function dirname;
use function file_exists;
use function file_get_contents;
use function file_put_contents;
use function getcwd;
use function is_dir;
use function md5;
use function stripos;
Expand Down Expand Up @@ -220,6 +222,12 @@ public function dumpTo(string $datafile = '', bool $force = false): void
*/
public function matchOne(string $keywords): string
{
if (!$keywords || '.' === $keywords) {
return OS::getWorkDir();
}

// TODO = '.'

if (is_dir($keywords)) {
return $keywords;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Controller/GitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ public function changelogCommand(Input $input, Output $output): void

$repo = Repo::new();
if ($input->getBoolOpt('fetch-tags')) {
$repo->newCmd('fetch', '--tags')->runAndPrint();
$repo->newCmd('fetch', '--tags', '--force')->runAndPrint();
}

// git log v1.0.7...v1.0.8 --pretty=format:'<project>/commit/%H %s' --reverse
Expand Down

0 comments on commit 522b4a2

Please sign in to comment.