diff --git a/.github/workflows/auto_assign_project.yml b/.github/workflows/auto_assign_project.yml new file mode 100644 index 0000000000000..3011c470876b0 --- /dev/null +++ b/.github/workflows/auto_assign_project.yml @@ -0,0 +1,13 @@ +name: Add a new GitHub Project card linked to a GitHub issue to the specified project column +on: [issues] +jobs: + github-actions-automate-projects: + runs-on: ubuntu-latest + steps: + - name: add-new-issues-to-repository-based-project-column + uses: docker://takanabe/github-actions-automate-projects:v0.0.1 + if: github.event_name == 'issues' && github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'component/expression') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_PROJECT_URL: https://github.com/SunRunAway/tidb/projects/1 + GITHUB_PROJECT_COLUMN_NAME: To do diff --git a/.github/workflows/lgtm-label.yml b/.github/workflows/lgtm-label.yml new file mode 100644 index 0000000000000..69a76d5c317e5 --- /dev/null +++ b/.github/workflows/lgtm-label.yml @@ -0,0 +1,32 @@ +name: LGTM label +on: + pull_request_review: + types: [submitted] +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: buildsville/add-remove-label@v1 + if: > + !contains(github.event.issue.labels.*.name, 'status/LGT1') && + !contains(github.event.issue.labels.*.name, 'status/LGT2') && + (contains(github.event.review.body, 'LGTM') || + contains(github.event.review.body, 'lgtm') || + contains(github.event.review.body, 'Lgtm')) + with: + token: ${{secrets.GITHUB_TOKEN}} + label: 'status/LGT1' + type: add + - uses: buildsville/add-remove-label@v1 + if: > + contains(github.event.issue.labels.*.name, 'status/LGT1') && + !contains(github.event.issue.labels.*.name, 'status/LGT2') && + (contains(github.event.review.body, 'LGTM') || + contains(github.event.review.body, 'lgtm') || + contains(github.event.review.body, 'Lgtm')) + env: + token: ${{secrets.GITHUB_TOKEN}} + label: 'status/LGT2' + type: add diff --git a/README.md b/README.md index 843870de1a7e3..9d2af06f4de3e 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Read the [Quick Start Guide](https://pingcap.com/docs/QUICKSTART), which include - [**Stack Overflow**](https://stackoverflow.com/questions/tagged/tidb) - [**User Group (Chinese)**](https://asktug.com) -## Documentation +## Documentationx + [English](https://pingcap.com/docs) + [简体中文](https://pingcap.com/docs-cn)