Giter VIP home page Giter VIP logo

ti-community-infra / ti-sync-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 979 KB

๐Ÿค– A GitHub App that used to sync tidb community info to the database, for providing basic data for other bots.

Home Page: https://ti-community-infra.github.io/ti-sync-bot/

License: ISC License

Shell 0.45% Dockerfile 0.21% JavaScript 1.05% TypeScript 98.29%
github-app probot sync pingcap community

ti-sync-bot's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mini256 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mini256

ti-sync-bot's Issues

Avoid repeated processing contributor email when pr merged.

// TODO: Avoid repeated processing contributor email when pr merged.
// Synchronize contributor mailboxes when pull request is merged.
if (pullRequest.merged_at !== null) {
// Fetch the patch of pull request.
const patch = await getPullRequestPatch(
context.pullRequest(),


This issue was generated by todo based on a TODO comment in f2a46a5 when #28 was merged. cc @ti-community-infra.

Add sync progress statistics

Feature Request

  • I have searched the issues of this repository and believe that this is not a duplicate.

Describe the feature you'd like:

Add a UI to show the progress of the synchronization to users. The progress can be for the repo, or for different types of synchronization tasks under the repo, such as issue, pull request, and comment.

Maybe we can do it with antd.

Migrate the test CI to prow jobs

Feature Request

I have searched the issues of this repository and believe that this is not a duplicate.

Is your feature request related to a Issue or PR(Optional)

None

Describe the feature you'd like:

  • Migrate the test CI to prow jobs.

Do you have any ideas on how to implement it?(Optional)

use the github client authed by installation id.

ti-sync-bot/src/index.ts

Lines 19 to 24 in 457381c

// TODO: use the github client authed by installation id.
// Init Github client.
// Notice: This github client uses a TOKEN as the bot github account for access, in this case, we do not need to
// authorize for each installation through the Github APP, but this will also bring some restrictions.
const github = new ProbotOctokit({
auth: {


This issue was generated by todo based on a TODO comment in 457381c when #1 was merged. cc @ti-community-infra.

BigQuery data combine with SIG data

Feature Request

  • I have searched the issues of this repository and believe that this is not a duplicate.

Is your feature request related to a Issue or PR(Optional)

None

Describe the feature you'd like:

Combine BigQuery data with SIG data for analysis.

Do you have any ideas on how to implement it? (Optional)

GH Archive BigQuery and Metabase investigation and research

Feature Request

Is your feature request related to a Issue or PR (Optional)

None

Describe the feature you'd like:

Investigate ways to use GH Archive BigQuery and Metabase together.

Do you have any ideas on how to implement it? (Optional)

Unified definition of comment types between bots

Feature Request

  • I have searched the issues of this repository and believe that this is not a duplicate.

Related repository

  • Which project: ti-community-infra/ti-sync-bot, ti-community-infra/tichi

Describe the feature you'd like:

Unified definition of comment types between BOT.

TODO: Test for app start up event

Feature Request

  • I have searched the issues of this repository and believe that this is not a duplicate.

Describe the feature you'd like:

add test for app startup event.

Document translation

Feature Request

I have searched the issues of this repository and believe that this is not a duplicate.

Is your feature request related to a Issue or PR(Optional)

None

Describe the feature you'd like:

  • Translating documents.

Do you have any ideas on how to implement it? (Optional)

Remove the `ON UPDATE CURRENT_TIMESTAMP` definition from the last_update_code_at field

Bug Report

  • I have searched the issues of this repository and believe that this is not a duplicate.

What is expected?

The field last_update_code_at of table open_pr_status should not be ON UPDATE CURRENT_TIMESTAMP.

What is actually happening?

The definition of ON UPDATE CURRENT_TIMESTAMP will make the database update the last_update_code_at field when we only update last_comment_time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.