Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 2, 2021
1 parent c7910de commit 94d6cb3
Show file tree
Hide file tree
Showing 20 changed files with 301 additions and 301 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
release:
name: Release to Github
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'axetroy/whatchanged'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'whatchanged-community/whatchanged'
needs: [ci]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playgroud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

release:
name: Release to Github
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/master') && github.repository == 'axetroy/whatchanged'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/master') && github.repository == 'whatchanged-community/whatchanged'
needs: [ci]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion 1_parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strconv"
"strings"

"github.com/axetroy/whatchanged/internal/client"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/pkg/errors"
"github.com/whatchanged-community/whatchanged/internal/client"
)

type Range struct {
Expand Down
4 changes: 2 additions & 2 deletions 2_extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package extractor
import (
"io"

parser "github.com/axetroy/whatchanged/1_parser"
"github.com/axetroy/whatchanged/internal/client"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/pkg/errors"
parser "github.com/whatchanged-community/whatchanged/1_parser"
"github.com/whatchanged-community/whatchanged/internal/client"
)

type ExtractSplice struct {
Expand Down
6 changes: 3 additions & 3 deletions 3_transformer/transform.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package transformer

import (
extractor "github.com/axetroy/whatchanged/2_extractor"
"github.com/axetroy/whatchanged/internal/client"
"github.com/axetroy/whatchanged/internal/commit/parser"
"github.com/go-git/go-git/v5/plumbing/object"
extractor "github.com/whatchanged-community/whatchanged/2_extractor"
"github.com/whatchanged-community/whatchanged/internal/client"
"github.com/whatchanged-community/whatchanged/internal/commit/parser"
)

type Commit struct {
Expand Down
6 changes: 3 additions & 3 deletions 4_generator/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"net/url"
"strings"

transformer "github.com/axetroy/whatchanged/3_transformer"
"github.com/axetroy/whatchanged/internal/client"
"github.com/axetroy/whatchanged/option"
"github.com/pkg/errors"
transformer "github.com/whatchanged-community/whatchanged/3_transformer"
"github.com/whatchanged-community/whatchanged/internal/client"
"github.com/whatchanged-community/whatchanged/option"
giturls "github.com/whilp/git-urls"
)

Expand Down
2 changes: 1 addition & 1 deletion 5_formatter/format.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package formatter

import (
"github.com/axetroy/whatchanged/option"
"github.com/pkg/errors"
"github.com/shurcooL/markdownfmt/markdown"
"github.com/whatchanged-community/whatchanged/option"
)

func Format(src []byte, format option.Format) ([]byte, error) {
Expand Down
466 changes: 233 additions & 233 deletions CHANGELOG.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
English | [中文简体](README_zh-CN.md)

[![Build Status](https://github.com/axetroy/whatchanged/workflows/ci/badge.svg)](https://github.com/axetroy/whatchanged/actions)
[![Build Status](https://github.com/axetroy/whatchanged/workflows/playground/badge.svg)](https://github.com/axetroy/whatchanged/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/axetroy/whatchanged)](https://goreportcard.com/report/github.com/axetroy/whatchanged)
![Latest Version](https://img.shields.io/github/v/release/axetroy/whatchanged.svg)
[![Build Status](https://github.com/whatchanged-community/whatchanged/workflows/ci/badge.svg)](https://github.com/whatchanged-community/whatchanged/actions)
[![Build Status](https://github.com/whatchanged-community/whatchanged/workflows/playground/badge.svg)](https://github.com/whatchanged-community/whatchanged/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/whatchanged-community/whatchanged)](https://goreportcard.com/report/github.com/whatchanged-community/whatchanged)
![Latest Version](https://img.shields.io/github/v/release/whatchanged-community/whatchanged.svg)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
![Repo Size](https://img.shields.io/github/repo-size/axetroy/whatchanged.svg)
![Repo Size](https://img.shields.io/github/repo-size/whatchanged-community/whatchanged.svg)

## whatchanged

Expand Down Expand Up @@ -54,7 +54,7 @@ OPTIONS:
--project Specify the project to be generated. It can be a relative path.
or an absolute path or even a remote Git URL. eg.
--project=/path/to/project/which/contains/.git/folder
--project=https://github.com/axetroy/whatchanged.git
--project=https://github.com/whatchanged-community/whatchanged.git
Defaults to "--project=$PWD".
--output Write output to file. default write to stdout.

Expand Down Expand Up @@ -112,10 +112,10 @@ EXAMPLES:
$ whatchanged --project=/path/to/project v1.0.0

# Generate changelog for the remote project
$ whatchanged --project=https://github.com/axetroy/whatchanged.git v0.1.0
$ whatchanged --project=https://github.com/whatchanged-community/whatchanged.git v0.1.0

SOURCE CODE:
https://github.com/axetroy/whatchanged
https://github.com/whatchanged-community/whatchanged
```

### Installation
Expand All @@ -124,9 +124,9 @@ SOURCE CODE:

```bash
# install in global
npm install -g @axetroy/whatchanged
npm install -g @whatchanged-community/whatchanged
# run the command once
npx @axetroy/whatchanged
npx @whatchanged-community/whatchanged
```

#### Install via shell
Expand All @@ -135,16 +135,16 @@ If you are using Linux/macOS. you can install it with the following command:

```shell
# install latest version
curl -fsSL https://raw.githubusercontent.com/axetroy/whatchanged/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash
# or install specified version
curl -fsSL https://raw.githubusercontent.com/axetroy/whatchanged/master/install.sh | bash -s v0.3.6
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash -s v0.3.6
# or install from gobinaries.com
curl -sf https://gobinaries.com/axetroy/[email protected] | sh
curl -sf https://gobinaries.com/whatchanged-community/[email protected] | sh
```

#### Install from Github release page

Download the executable file for your platform at [release page](https://github.com/axetroy/whatchanged/releases) and put the executable file to `$PATH` then try it.
Download the executable file for your platform at [release page](https://github.com/whatchanged-community/whatchanged/releases) and put the executable file to `$PATH` then try it.

```bash
$ whatchanged --help
Expand All @@ -155,8 +155,8 @@ $ whatchanged --help
Make sure you have `[email protected]` and [goreleaser](https://github.com/goreleaser/goreleaser) installed.

```shell
$ git clone https://github.com/axetroy/whatchanged.git $GOPATH/src/github.com/axetroy/whatchanged
$ cd $GOPATH/src/github.com/axetroy/whatchanged
$ git clone https://github.com/whatchanged-community/whatchanged.git $GOPATH/src/github.com/whatchanged-community/whatchanged
$ cd $GOPATH/src/github.com/whatchanged-community/whatchanged
$ make build
```

Expand Down
32 changes: 16 additions & 16 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[English](README.md) | 中文简体

[![Build Status](https://github.com/axetroy/whatchanged/workflows/ci/badge.svg)](https://github.com/axetroy/whatchanged/actions)
[![Build Status](https://github.com/axetroy/whatchanged/workflows/playground/badge.svg)](https://github.com/axetroy/whatchanged/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/axetroy/whatchanged)](https://goreportcard.com/report/github.com/axetroy/whatchanged)
![Latest Version](https://img.shields.io/github/v/release/axetroy/whatchanged.svg)
[![Build Status](https://github.com/whatchanged-community/whatchanged/workflows/ci/badge.svg)](https://github.com/whatchanged-community/whatchanged/actions)
[![Build Status](https://github.com/whatchanged-community/whatchanged/workflows/playground/badge.svg)](https://github.com/whatchanged-community/whatchanged/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/whatchanged-community/whatchanged)](https://goreportcard.com/report/github.com/whatchanged-community/whatchanged)
![Latest Version](https://img.shields.io/github/v/release/whatchanged-community/whatchanged.svg)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
![Repo Size](https://img.shields.io/github/repo-size/axetroy/whatchanged.svg)
![Repo Size](https://img.shields.io/github/repo-size/whatchanged-community/whatchanged.svg)

## whatchanged

Expand Down Expand Up @@ -54,7 +54,7 @@ OPTIONS:
--project Specify the project to be generated. It can be a relative path.
or an absolute path or even a remote Git URL. eg.
--project=/path/to/project/which/contains/.git/folder
--project=https://github.com/axetroy/whatchanged.git
--project=https://github.com/whatchanged-community/whatchanged.git
Defaults to "--project=$PWD".
--output Write output to file. default write to stdout.

Expand Down Expand Up @@ -112,10 +112,10 @@ EXAMPLES:
$ whatchanged --project=/path/to/project v1.0.0

# Generate changelog for the remote project
$ whatchanged --project=https://github.com/axetroy/whatchanged.git v0.1.0
$ whatchanged --project=https://github.com/whatchanged-community/whatchanged.git v0.1.0

SOURCE CODE:
https://github.com/axetroy/whatchanged
https://github.com/whatchanged-community/whatchanged
```

### 安装
Expand All @@ -124,9 +124,9 @@ SOURCE CODE:

```bash
# install in global
npm install -g @axetroy/whatchanged
npm install -g @whatchanged-community/whatchanged
# run the command once
npx @axetroy/whatchanged
npx @whatchanged-community/whatchanged
```

#### 通过 shell 安装
Expand All @@ -135,16 +135,16 @@ npx @axetroy/whatchanged

```shell
# 安装最新版本
curl -fsSL https://raw.githubusercontent.com/axetroy/whatchanged/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash
# 或者安装指定版本
curl -fsSL https://raw.githubusercontent.com/axetroy/whatchanged/master/install.sh | bash -s v0.3.6
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash -s v0.3.6
# 或者通过 gobinaries.com 安装
curl -sf https://gobinaries.com/axetroy/[email protected] | sh
curl -sf https://gobinaries.com/whatchanged-community/[email protected] | sh
```

#### 通过 Github release 页面下载安装

[release page](https://github.com/axetroy/whatchanged/releases)页面下载对应平台的可执行文件,并且把它加入到 `$PATH` 环境变量中,并尝试以下命令
[release page](https://github.com/whatchanged-community/whatchanged/releases)页面下载对应平台的可执行文件,并且把它加入到 `$PATH` 环境变量中,并尝试以下命令

```bash
$ whatchanged --help
Expand All @@ -155,8 +155,8 @@ $ whatchanged --help
确保你已安装 `[email protected]`[goreleaser](https://github.com/goreleaser/goreleaser)

```shell
$ git clone https://github.com/axetroy/whatchanged.git $GOPATH/src/github.com/axetroy/whatchanged
$ cd $GOPATH/src/github.com/axetroy/whatchanged
$ git clone https://github.com/whatchanged-community/whatchanged.git $GOPATH/src/github.com/whatchanged-community/whatchanged
$ cd $GOPATH/src/github.com/whatchanged-community/whatchanged
$ make build
```

Expand Down
4 changes: 2 additions & 2 deletions cmd/whatchanged-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"regexp"

"github.com/axetroy/whatchanged"
"github.com/axetroy/whatchanged/option"
"github.com/pkg/errors"
"github.com/whatchanged-community/whatchanged"
"github.com/whatchanged-community/whatchanged/option"
)

func handler(w http.ResponseWriter, r *http.Request) {
Expand Down
10 changes: 5 additions & 5 deletions cmd/whatchanged/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"os"

"github.com/axetroy/whatchanged"
"github.com/axetroy/whatchanged/option"
"github.com/pkg/errors"
"github.com/whatchanged-community/whatchanged"
"github.com/whatchanged-community/whatchanged/option"
)

var (
Expand Down Expand Up @@ -42,7 +42,7 @@ OPTIONS:
--project Specify the project to be generated. It can be a relative path.
or an absolute path or even a remote Git URL. eg.
--project=/path/to/project/which/contains/.git/folder
--project=https://github.com/axetroy/whatchanged.git
--project=https://github.com/whatchanged-community/whatchanged.git
Defaults to "--project=$PWD".
--output Write output to file. default write to stdout.
Expand Down Expand Up @@ -100,10 +100,10 @@ EXAMPLES:
$ whatchanged --project=/path/to/project v1.0.0
# Generate changelog for the remote project
$ whatchanged --project=https://github.com/axetroy/whatchanged.git v0.1.0
$ whatchanged --project=https://github.com/whatchanged-community/whatchanged.git v0.1.0
SOURCE CODE:
https://github.com/axetroy/whatchanged`)
https://github.com/whatchanged-community/whatchanged`)
}

func run() error {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/axetroy/whatchanged
module github.com/whatchanged-community/whatchanged

go 1.17

Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ main() {

if [[ $# -eq 0 ]]; then
asset_path=$(
command curl -sSf https://github.com/axetroy/whatchanged/releases |
command grep -o "/axetroy/whatchanged/releases/download/.*/whatchanged_${os}_${arch}\\.tar.gz" |
command curl -sSf https://github.com/whatchanged-community/whatchanged/releases |
command grep -o "/whatchanged-community/whatchanged/releases/download/.*/whatchanged_${os}_${arch}\\.tar.gz" |
command head -n 1
)
if [[ ! "$asset_path" ]]; then exit 1; fi
asset_uri="https://github.com${asset_path}"
else
asset_uri="https://github.com/axetroy/whatchanged/releases/download/${1}/whatchanged_${os}_${arch}\\.tar.gz"
asset_uri="https://github.com/whatchanged-community/whatchanged/releases/download/${1}/whatchanged_${os}_${arch}\\.tar.gz"
fi

mkdir -p ${downloadFolder}
Expand Down
2 changes: 1 addition & 1 deletion npm/bin/whatchanged
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const argv = process.argv;

if (!fs.existsSync(bin)) {
console.error(
`whatchanged did not downloaded. please run the following command 'node node_modules/@axetroy/whatchanged/scripts/postinstall.js'`
`whatchanged did not downloaded. please run the following command 'node node_modules/@whatchanged-community/whatchanged/scripts/postinstall.js'`
);
os.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"download/.gitkeep"
],
"license": "MIT",
"name": "@axetroy/whatchanged",
"name": "@whatchanged-community/whatchanged",
"scripts": {
"postinstall": "node scripts/postinstall.js",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion npm/scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getPlatform() {
}

function getDownloadURL(version) {
const url = `https://github.com/axetroy/whatchanged/releases/download/${version}/whatchanged_${getPlatform()}_${getArch()}.tar.gz`;
const url = `https://github.com/whatchanged-community/whatchanged/releases/download/${version}/whatchanged_${getPlatform()}_${getArch()}.tar.gz`;
return url;
}

Expand Down
2 changes: 1 addition & 1 deletion playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div style="position: relative">
<a src="https://github.com/axetroy/whatchanged">
<a src="https://github.com/whatchanged-community/whatchanged">
<img :src="githubLogoUrl" style="position: fixed; right: 0; top: 0; height: 60px" />
</a>

Expand Down
16 changes: 8 additions & 8 deletions whatchanged.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import (
"path/filepath"
"regexp"

parser "github.com/axetroy/whatchanged/1_parser"
extractor "github.com/axetroy/whatchanged/2_extractor"
transformer "github.com/axetroy/whatchanged/3_transformer"
generator "github.com/axetroy/whatchanged/4_generator"
formatter "github.com/axetroy/whatchanged/5_formatter"
writer "github.com/axetroy/whatchanged/6_writer"
"github.com/axetroy/whatchanged/internal/client"
"github.com/axetroy/whatchanged/option"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/storage/memory"
"github.com/pkg/errors"
parser "github.com/whatchanged-community/whatchanged/1_parser"
extractor "github.com/whatchanged-community/whatchanged/2_extractor"
transformer "github.com/whatchanged-community/whatchanged/3_transformer"
generator "github.com/whatchanged-community/whatchanged/4_generator"
formatter "github.com/whatchanged-community/whatchanged/5_formatter"
writer "github.com/whatchanged-community/whatchanged/6_writer"
"github.com/whatchanged-community/whatchanged/internal/client"
"github.com/whatchanged-community/whatchanged/option"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion whatchanged_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io/ioutil"
"testing"

"github.com/axetroy/whatchanged/option"
"github.com/stretchr/testify/assert"
"github.com/whatchanged-community/whatchanged/option"
)

func TestGenerate(t *testing.T) {
Expand Down

0 comments on commit 94d6cb3

Please sign in to comment.