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

rename all old answerdev/answer link to apache/incubator-answer #603

Merged
merged 14 commits into from
Nov 1, 2023
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/build_dev_img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ jobs:
env:
SSH_PRIVATE_KEY: ${{ secrets.GITLAB_RSA_PRIVATE_KEY }}
with:
source-repo: git@github.com:answerdev/answer.git
source-repo: git@github.com:apache/incubator-answer.git
destination-repo: ${{ secrets.GITLAB_REPO }}

4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ builds:
- id: build
main: ./cmd/answer/.
binary: answer
ldflags: -s -w -X github.com/answerdev/answer/cmd.Version={{.Version}} -X github.com/answerdev/answer/cmd.Revision={{.ShortCommit}} -X github.com/answerdev/answer/cmd.Time={{.Date}} -X github.com/answerdev/answer/cmd.BuildUser=goreleaser
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.Version}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
flags: -v
goos:
- linux
Expand All @@ -43,7 +43,7 @@ builds:
- id: build-windows
main: ./cmd/answer/.
binary: answer
ldflags: -s -w -X github.com/answerdev/answer/cmd.Version={{.Version}} -X github.com/answerdev/answer/cmd.Revision={{.ShortCommit}} -X github.com/answerdev/answer/cmd.Time={{.Date}} -X github.com/answerdev/answer/cmd.BuildUser=goreleaser
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.Version}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
flags: -v
goos:
- windows
Expand Down
4 changes: 2 additions & 2 deletions .vaunt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ version: 0.0.1
achievements:
- achievement:
name: Visionary Architect
icon: https://raw.githubusercontent.com/answerdev/answer/main/.vaunt/enhancement.png
icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/enhancement.png
description: Awarded for bringing up enhancement, dream big!
triggers:
- trigger:
Expand All @@ -28,7 +28,7 @@ achievements:
condition: labels in ['enhancement'] & labels in ['LGTM']
- achievement:
name: Bug Hunter
icon: https://raw.githubusercontent.com/answerdev/answer/main/.vaunt/bug.png
icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/bug.png
description: Awarded for identifying real bugs, well spotted!
triggers:
- trigger:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV GOPROXY=https://proxy.golang.com.cn,direct

ENV GOPATH /go
ENV GOROOT /usr/local/go
ENV PACKAGE github.com/answerdev/answer
ENV PACKAGE github.com/apache/incubator-answer
ENV BUILD_DIR ${GOPATH}/src/${PACKAGE}
ENV ANSWER_MODULE ${BUILD_DIR}

Expand All @@ -45,7 +45,7 @@ RUN mkdir -p /data/uploads && chmod 777 /data/uploads \
&& mkdir -p /data/i18n && cp -r i18n/*.yaml /data/i18n

FROM alpine
LABEL maintainer="maintainers@sf.com"
LABEL maintainer="linkinstar@apache.org"

ENV TZ "Asia/Shanghai"
RUN apk update \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DOCKER_CMD=docker

GO_ENV=CGO_ENABLED=0 GO111MODULE=on
Revision=$(shell git rev-parse --short HEAD)
GO_FLAGS=-ldflags="-X github.com/answerdev/answer/cmd.Version=$(VERSION) -X 'github.com/answerdev/answer/cmd.Revision=$(Revision)' -X 'github.com/answerdev/answer/cmd.Time=`date +%s`' -extldflags -static"
GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) $(shell which go)

build: generate
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<a href="https://answer.dev">
<a href="https://answer.apache.org">
<img alt="logo" src="docs/img/logo.svg" height="99px">
</a>

# Answer - Build Q&A platform

A Q&A platform software for teams at any scales. Whether it’s a community forum, help center, or knowledge management platform, you can always count on Answer.

To learn more about the project, visit [answer.dev](https://answer.dev).
To learn more about the project, visit [answer.apache.org](https://answer.apache.org).

[![LICENSE](https://img.shields.io/github/license/answerdev/answer)](https://github.com/answerdev/answer/blob/main/LICENSE)
[![LICENSE](https://img.shields.io/github/license/apache/incubator-answer)](https://github.com/apache/incubator-answer/blob/main/LICENSE)
[![Language](https://img.shields.io/badge/language-go-blue.svg)](https://golang.org/)
[![Language](https://img.shields.io/badge/language-react-blue.svg)](https://reactjs.org/)
[![Go Report Card](https://goreportcard.com/badge/github.com/answerdev/answer)](https://goreportcard.com/report/github.com/answerdev/answer)
[![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-answer)](https://goreportcard.com/report/github.com/apache/incubator-answer)
[![Discord](https://img.shields.io/badge/discord-chat-5865f2?logo=discord&logoColor=f5f5f5)](https://discord.gg/Jm7Y4cbUej)

## Screenshots
Expand All @@ -26,23 +26,22 @@ To learn more about the project, visit [answer.dev](https://answer.dev).
docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
```

For more information, see [Installation](https://answer.dev/docs/installation)
For more information, see [Installation](https://answer.apache.org/docs/installation)

### Plugins

Answer provides a plugin system for developers to create custom plugins and expand Answer’s features. You can find the [plugin documentation here](https://answer.dev/docs/development/extending/).
Answer provides a plugin system for developers to create custom plugins and expand Answer’s features. You can find the [plugin documentation here](https://answer.apache.org/docs/development/extending/).

We value your feedback and suggestions to improve our documentation. If you have any comments or questions, please feel free to contact us. We’re excited to see what you can create using our plugin system!

You can also check out the [plugins here](https://github.com/answerdev/plugins).

You can also check out the [plugins here](https://github.com/apache/incubator-answer-plugins).

## Contributing

Contributions are always welcome!

See [CONTRIBUTING](https://answer.dev/docs/development/contributing/) for ways to get started.
See [CONTRIBUTING](https://answer.apache.org/docs/development/contributing/) for ways to get started.

## License

[Apache License 2.0](https://github.com/answerdev/answer/blob/main/LICENSE)
[Apache License 2.0](https://github.com/apache/incubator-answer/blob/main/LICENSE)
14 changes: 7 additions & 7 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<a href="https://answer.dev">
<a href="https://answer.apache.org">
<img alt="logo" src="docs/img/logo.svg" height="99px">
</a>

# Answer - 构建问答社区

一款问答形式的知识社区开源软件,你可以使用它快速建立你的问答社区,用于产品技术支持、客户支持、用户交流等。

了解更多关于该项目的内容,请访问 [answer.dev](https://answer.dev).
了解更多关于该项目的内容,请访问 [answer.apache.org](https://answer.apache.org).

[![LICENSE](https://img.shields.io/github/license/answerdev/answer)](https://github.com/answerdev/answer/blob/main/LICENSE)
[![LICENSE](https://img.shields.io/github/license/apache/incubator-answer)](https://github.com/apache/incubator-answer/blob/main/LICENSE)
[![Language](https://img.shields.io/badge/language-go-blue.svg)](https://golang.org/)
[![Language](https://img.shields.io/badge/language-react-blue.svg)](https://reactjs.org/)
[![Go Report Card](https://goreportcard.com/badge/github.com/answerdev/answer)](https://goreportcard.com/report/github.com/answerdev/answer)
[![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-answer)](https://goreportcard.com/report/github.com/apache/incubator-answer)
[![Discord](https://img.shields.io/badge/discord-chat-5865f2?logo=discord&logoColor=f5f5f5)](https://discord.gg/Jm7Y4cbUej)

## 截图
Expand All @@ -26,14 +26,14 @@
docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
```

其他安装配置细节请参考 [Installation](https://answer.dev/docs/installation)
其他安装配置细节请参考 [Installation](https://answer.apache.org/docs/installation)

## 贡献

我们随时欢迎你的贡献!

参考 [CONTRIBUTING](https://answer.dev/docs/development/contributing/) 开始贡献。
参考 [CONTRIBUTING](https://answer.apache.org/docs/development/contributing/) 开始贡献。

## License

[Apache License 2.0](https://github.com/answerdev/answer/blob/main/LICENSE)
[Apache License 2.0](https://github.com/apache/incubator-answer/blob/main/LICENSE)
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Publish the chart to Artifacthub and add proper installation instructions. E.G.
> **NOTE**: This is not currently a valid installation option.

```console
$ helm repo add answerdev https://charts.answer.dev/
$ helm repo add answerdev https://charts.answer.apache.org/
$ helm repo update
$ helm install answerdev/answer -n mynamespace
```
2 changes: 1 addition & 1 deletion charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ image:

# Environment variables
# Configure environment variables below
# https://answer.dev/docs/env
# https://answer.apache.org/docs/env
env:
- name: LOG_LEVEL
# [DEBUG INFO WARN ERROR]
Expand Down
2 changes: 1 addition & 1 deletion cmd/answer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package main

import (
answercmd "github.com/answerdev/answer/cmd"
answercmd "github.com/apache/incubator-answer/cmd"
)

// @securityDefinitions.apikey ApiKeyAuth
Expand Down
10 changes: 5 additions & 5 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"os"
"strings"

"github.com/answerdev/answer/internal/base/conf"
"github.com/answerdev/answer/internal/cli"
"github.com/answerdev/answer/internal/install"
"github.com/answerdev/answer/internal/migrations"
"github.com/answerdev/answer/plugin"
"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/cli"
"github.com/apache/incubator-answer/internal/install"
"github.com/apache/incubator-answer/internal/migrations"
"github.com/apache/incubator-answer/plugin"
"github.com/segmentfault/pacman/log"
"github.com/spf13/cobra"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ import (
"os"
"time"

"github.com/answerdev/answer/internal/base/conf"
"github.com/answerdev/answer/internal/base/constant"
"github.com/answerdev/answer/internal/base/cron"
"github.com/answerdev/answer/internal/cli"
"github.com/answerdev/answer/internal/schema"
"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/base/constant"
"github.com/apache/incubator-answer/internal/base/cron"
"github.com/apache/incubator-answer/internal/cli"
"github.com/apache/incubator-answer/internal/schema"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/contrib/log/zap"
"github.com/segmentfault/pacman/contrib/server/http"
"github.com/segmentfault/pacman/log"
)

// go build -ldflags "-X github.com/answerdev/answer/cmd.Version=x.y.z"
// go build -ldflags "-X github.com/apache/incubator-answer/cmd.Version=x.y.z"
var (
// Name is the name of the project
Name = "answer"
Expand Down
32 changes: 16 additions & 16 deletions cmd/wire.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand All @@ -17,27 +20,24 @@
* under the License.
*/

//go:build wireinject
// +build wireinject

// The build tag makes sure the stub is not built in the final build.

package answercmd

import (
"github.com/answerdev/answer/internal/base/conf"
"github.com/answerdev/answer/internal/base/cron"
"github.com/answerdev/answer/internal/base/data"
"github.com/answerdev/answer/internal/base/middleware"
"github.com/answerdev/answer/internal/base/server"
"github.com/answerdev/answer/internal/base/translator"
"github.com/answerdev/answer/internal/controller"
"github.com/answerdev/answer/internal/controller/template_render"
"github.com/answerdev/answer/internal/controller_admin"
"github.com/answerdev/answer/internal/repo"
"github.com/answerdev/answer/internal/router"
"github.com/answerdev/answer/internal/service"
"github.com/answerdev/answer/internal/service/service_config"
"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/base/cron"
"github.com/apache/incubator-answer/internal/base/data"
"github.com/apache/incubator-answer/internal/base/middleware"
"github.com/apache/incubator-answer/internal/base/server"
"github.com/apache/incubator-answer/internal/base/translator"
"github.com/apache/incubator-answer/internal/controller"
"github.com/apache/incubator-answer/internal/controller/template_render"
"github.com/apache/incubator-answer/internal/controller_admin"
"github.com/apache/incubator-answer/internal/repo"
"github.com/apache/incubator-answer/internal/router"
"github.com/apache/incubator-answer/internal/service"
"github.com/apache/incubator-answer/internal/service/service_config"
"github.com/google/wire"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/log"
Expand Down
Loading
Loading