All Projects → JuliaComputing → FemtoCleaner.jl

JuliaComputing / FemtoCleaner.jl

Licence: other
The code behind femtocleaner

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to FemtoCleaner.jl

Gh Polls Bot
Automatically create polls in GitHub issues.
Stars: ✭ 187 (+206.56%)
Mutual labels:  github-app
gitbot
The most popular Discord dev toolkit with 400k+ users 🚀✨
Stars: ✭ 59 (-3.28%)
Mutual labels:  github-app
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+1567.21%)
Mutual labels:  github-app
Weekly Digest
Weekly summary of activity on your GitHub repository 📆
Stars: ✭ 199 (+226.23%)
Mutual labels:  github-app
octovy
Trivy based vulnerability management service
Stars: ✭ 51 (-16.39%)
Mutual labels:  github-app
new-pr-welcome
Welcome users when they open their first PR in your repository
Stars: ✭ 20 (-67.21%)
Mutual labels:  github-app
Gsy github app flutter
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。跨平台的开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款React Native版本 : https://github.com/CarGuo/GSYGithubApp 、原生 kotlin 版本 https:…
Stars: ✭ 12,920 (+21080.33%)
Mutual labels:  github-app
issuelabeler
A GitHub bot to label issues automatically based on title and body against list of defined labels. System status (https://status.verticalaxisbd.com/)
Stars: ✭ 23 (-62.3%)
Mutual labels:  github-app
prlint
GitHub App for linting pull request meta data
Stars: ✭ 122 (+100%)
Mutual labels:  github-app
git-issues
A better way to browse GitHub issues.
Stars: ✭ 25 (-59.02%)
Mutual labels:  github-app
Gitiny
An iOS app for GitHub with exploring trending
Stars: ✭ 247 (+304.92%)
Mutual labels:  github-app
yamburger
YAML syntax got you down? That's a YAMBURGER!
Stars: ✭ 32 (-47.54%)
Mutual labels:  github-app
flutter octo job search
Octo Job Search app is a job search app built in flutter framework.
Stars: ✭ 59 (-3.28%)
Mutual labels:  github-app
Dco
GitHub App that enforces the Developer Certificate of Origin (DCO) on Pull Requests
Stars: ✭ 188 (+208.2%)
Mutual labels:  github-app
octotui
🐙🐱🖥️ GitHub stats in your terminal
Stars: ✭ 202 (+231.15%)
Mutual labels:  github-app
Beefun Pro
Github client for iOS in Swift.
Stars: ✭ 172 (+181.97%)
Mutual labels:  github-app
github-texify
GitHub App to automatically render TeX expressions in markdown files
Stars: ✭ 109 (+78.69%)
Mutual labels:  github-app
background-check
A GitHub App built with probot that peforms a "background check" to identify users who have been toxic in the past, and shares their toxic activity in the maintainer’s repo.
Stars: ✭ 27 (-55.74%)
Mutual labels:  github-app
dont-merge
Prevent merging of Pull Requests with a custom label selected on labels area.
Stars: ✭ 26 (-57.38%)
Mutual labels:  github-app
branch-switcher
a GitHub bot that switches the base branch of pull requests to the preferred branch
Stars: ✭ 15 (-75.41%)
Mutual labels:  github-app

FemtoCleaner

serious femtocleaning

FemtoCleaner cleans your julia projects by upgrading deprecated syntax, removing version compatibility workarounds and anything else that has a unique upgrade path. FemtoCleaner is designed to be as style-preserving as possible. It does not perform code formatting. The logic behind recognizing and rewriting deprecated constructs can be found in the Deprecations.jl package, which makes use of CSTParser.jl under the hood.

User Manual

To set up FemtoCleaner on your repository, go to https://github.com/integration/femtocleaner and click "Configure" to select the repositories you wish to add.

Invoking FemtoCleaner

There are currently three triggers that cause FemtoCleaner to run over your repository:

  1. FemtoCleaner is installed on your repository for the first time
  2. You change your repositories REQUIRE file to drop support for old versions of julia
  3. Manually, by opening an issue with the title Run femtocleaner on the desired repository.

In all cases, femtocleaner, will clone your repository, upgrade any deprecations it can and then open a pull request with the changes (in case 3, it will convert the existing issue into a PR instead).

Interacting with the PR

FemtoCleaner can automatically perform certain common commands in response to user request in a PR review. These commands are invoked by creating a "Changes Requested" review. FemtoCleaner will attempt to interpret each comment in such a review as a request to perform an automated function. The following commands are currently supported.

  • delete this entirely - FemtoCleaner address the review by deleting the entire expression starting on the referenced line.
  • align arguments - Assuming the preceding line contains a multi-line function signature, reformat the argument list, aligning each line to the opening parenthesis.
  • bad bot - To be used when you deem the action taken by the bot to be incorrect. At present this will automatically open an issue on this repository.

If there are other such actions you would find useful, feel free to file an issue or (even better) submit a PR.

Privacy and Security

FemtoCleaner receives the content of many GitHub hooks. These contain certain publicly available details about the repository and the user who initiated the event. AttoBot will also make several subsequent queries via the public GitHub api to the repository in question. The contents of these may be retained in server logs.

In order to perform its function, FemtoCleaner requires read/write access to your repository and its issues and pull requests. While FemtoCleaner runs in a sandboxed environment and access to the underlying hardware is controlled and restricted, you should be aware that you are extending these rights. If you are intending to install FemtoCleaner on an organizational account, please ensure you are authorized to extend these permissions to FemtoCleaner.

For the foregoing reasons, you should not install FemtoCleaner on a private repository. Doing so may result in disclosure of contents of the private repository.

Please note that the license applies to both the source code and your use of the publicly hosted version thereof. In particular:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Running FemtoCleaner locally

It is possible to run FemtoCleaner locally (to fix, for example, deprecations in a private repository).

Install FemtoCleaner (currently working on Julia v0.6.x only) using

Pkg.clone("https://github.com/Keno/AbstractTrees.jl")
Pkg.clone("https://github.com/JuliaComputing/Deprecations.jl")
Pkg.clone("https://github.com/JuliaComputing/FemtoCleaner.jl")

A repository of Julia code can be cleaned using

FemtoCleaner.cleanrepo(path::String; show_diff = true, delete_local = true)

This clones the repo located at path, which can be a file system path or a URL, to a temporary directory and fix the deprecations. If show_diff is true, the diff from applying the deprecations is showed. If delete_local is true the cleaned repo, is deleted when the function is finished.

Developer Manual

You are encouraged to contribute changes to this repository. This software is used by many people. Even minor changes in usability can make a big difference. If you want to add additional interactions to the bot itself, this repository is the right place. If you want to contribute additional deprecation rewrites, please do so at https://github.com/JuliaComputing/Deprecations.jl.

Deployment of the publicly hosted copy

The publicly hosted copy of FemtoCleaner is automatically deployed from the master branch of this repository whenever a new commit to said branch is made.

Setting up a development copy of femtocleaner

It is possible to set up a copy of femtocleaner to test changes to the codebase before attempting to deploy them on the main version. To do so, you will need a publicly routable server, with a copy of julia and this repository (and its dependencies). You will then need to set up your own GitHub app at https://github.com/settings/apps/new. Make sure to enter your server in the "Webhook URL" portion of the form. By default, the app will listen on port 10000+app_id, where app_id is the ID GitHub assigns your app upon completion of the registration process. Once you have set up your GitHub app, you will need to download the private key and save it as privkey.pem in Pkg.dir("FemtoCleaner"). Additionally, you should create a file named app_id, containing the ID assigned to your app by GitHub (it will be visible on the confirmation page once you have set up your app with GitHub). Then, you may launch FemtoCleaner by running julia -e 'using FemtoCleaner; FemtoCleaner.run_server()'. It is recommended that you set up a separate repository for testing your staging copy that is not covered by the publicly hosted version, to avoid conflicting updates. GitHub provides a powerful interface to see the messages delivered to your app in the "Advanced" tab of your app's settings. In particular, for interactive development, you may use the Revise package to reload FemtoCleaner source code before every request (simply execute using Revise on a separate line in the REPL before running FemtoCleaner). By editing the files on the server and using GitHub's "Redeliver" option to replay events of interest, a quick edit-debug cycle can be achieved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].