From 4535ccc406ec275bc884ecb2daba18e83e014a41 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 23 Jun 2019 01:00:30 -0500 Subject: [PATCH 1/4] Fix AbstractTrees download command for local run Fix AbstractTrees download command for local run Fix running FemtoCleaner.cleanrepo command Added Julia 6.4 download link Fixed non-working URLs Brought local running in Readme upfront --- README.md | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 476013a..1546756 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,39 @@ perform code formatting. The logic behind recognizing and rewriting deprecated c can be found in the [Deprecations.jl](https://github.com/JuliaComputing/Deprecations.jl) package, which makes use of [CSTParser.jl](https://github.com/ZacLN/CSTParser.jl) under the hood. +## 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 https://julialang.org/downloads/oldreleases.html ) using + +```jl +Pkg.clone("https://github.com/Keno/AbstractTrees.jl") +Pkg.checkout("AbstractTrees.jl","kf/for06") +Pkg.clone("https://github.com/JuliaComputing/Deprecations.jl") +Pkg.clone("https://github.com/JuliaComputing/FemtoCleaner.jl") +using FemtoCleaner +``` + +A repository of Julia code can be cleaned using + +```jl +using FemtoCleaner +FemtoCleaner.cleanrepo(path::String, show_diff = true, delete_local = true) +``` +For example on Windows: +```jl +using FemtoCleaner +FemtoCleaner.cleanrepo("C:\\repositoryFolder", 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. + # 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. +To set up FemtoCleaner on your repository, go to https://github.com/apps/femtocleaner and click "Configure" to select the repositories you wish to add. ## Invoking FemtoCleaner @@ -64,27 +94,6 @@ 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 - -```jl -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 - -```jl -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 From b8059fd53bf47ace34d86dad1f8f64ab2e9c0d4e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 12 Sep 2019 20:29:50 -0500 Subject: [PATCH 2/4] Update README.md https://github.com/JuliaComputing/FemtoCleaner.jl/pull/112#discussion_r324008000 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1546756..548f239 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ which makes use of [CSTParser.jl](https://github.com/ZacLN/CSTParser.jl) under t ## Running FemtoCleaner locally -It is possible to run FemtoCleaner locally (to fix, for example, deprecations in a private repository). +It is recommended to run FemtoCleaner locally (to fix, for example, deprecations in a private repository). The online app is abandoned. Install `FemtoCleaner` (currently working on Julia v0.6.x only https://julialang.org/downloads/oldreleases.html ) using From 0237aab102a27fa82c96398a5341d3a865520454 Mon Sep 17 00:00:00 2001 From: aminya Date: Thu, 29 Oct 2020 20:26:02 -0500 Subject: [PATCH 3/4] Automated commit made by MassInstallAction.jl --- .github/workflows/CompatHelper.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/CompatHelper.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..0f66259 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,22 @@ +name: CompatHelper + +on: + schedule: + - cron: '00 00 * * *' + workflow_dispatch: + +jobs: + CompatHelper: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: [1.2.0] + julia-arch: [x86] + os: [ubuntu-latest] + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: julia -e 'using CompatHelper; CompatHelper.main()' From 3d4366427397a983db1ce1926f712cd45e936869 Mon Sep 17 00:00:00 2001 From: aminya Date: Thu, 29 Oct 2020 20:34:48 -0500 Subject: [PATCH 4/4] Automated commit made by MassInstallAction.jl --- .github/workflows/TagBot.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/TagBot.yml diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..f49313b --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,15 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }}