GithubHelp home page GithubHelp logo

tldr-pages / tldr-bot Goto Github PK

View Code? Open in Web Editor NEW
29.0 8.0 8.0 19 KB

A simple bot that performs automation tasks on the main tldr repo

Home Page: https://github.com/tldr-bot

License: MIT License

Python 100.00%
tldr bot automation continuous-integration

tldr-bot's Issues

proposal: /commands (set-more-info-link in particular)

I recently wrote a Python script, set-more-info-link.py (tldr-pages/tldr#5654) that takes a page in the format platform/page.md and a link, and adds/updates the link in the page and all translations using a map of the approprate labels.

I was thinking just now that it might be nice to be able to, in a PR, comment something like

@tldr-bot /set-more-info-link common/page.md "https://example.com"

whereupon the bot (@tldr-bot) ran set-more-info-link.py with those arguments, committed the changes to the PR, maybe the message could be like

page: update more information link

If this were approved, I'd be happy to work on it.

Improve readability of error report messages

This was first suggested in tldr-pages/tldr#1380 (comment).

Ideally the error messages would be more human-friendly. Currently they look like this:

The build for this PR has failed with the following message:

pages/linux/calc.md:10: TLDR103 Command example is missing its closing backtick

Please fix the error(s) and push again.

It would be nice to have something the like following, instead:

The build for this PR has failed with the following errors:

On pages/linux/calc.md, line 10:
   `calc -p '{{85 * (36 / 4)}}'
Error: Command example is missing its closing backtick.

Please fix the error(s) and push again.

Add reminder when a PR is ready to be merged

When you approve a PR which can't yet be merged, because it was just opened a few hours ago, you prabably mark the notification as done. This either leads to forgetting about the PR and leaving it unmerged for a long time or merging it too early to prevent this problem. This could be solved by a notification from tldr-bot with these requirements:

  • The PR has enough approvals and everyone, who requested changes has approved.
  • The PR is at least 2 days old and has had no activity for the last 12 hours.
  • If there are enough approvals, but not everyone who requested changes approved, set the minimum time to 4 days.

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.