Skip to content

Commit

Permalink
chore: squash registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 11, 2024
1 parent a2c590c commit 143ea6e
Show file tree
Hide file tree
Showing 793 changed files with 2,017 additions and 0 deletions.
8 changes: 8 additions & 0 deletions registry/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions registry/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
text=auto eol=lf
15 changes: 15 additions & 0 deletions registry/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Summary

Description:

- Tool repo URL:
- Plugin repo URL:

## Checklist

- [ ] Format with `scripts/format.bash`
- [ ] Test locally with `scripts/test_plugin.bash --file plugins/<your_new_plugin_name>`
- [ ] Your plugin CI tests are green
- _Tip: use the `plugin_test` action from [asdf-actions](https://github.com/asdf-vm/actions) in your plugin CI_

<!-- Thank you for contributing to mise-plugins! -->
9 changes: 9 additions & 0 deletions registry/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
reviewers:
- "jthegedus"
31 changes: 31 additions & 0 deletions registry/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: lint

on:
push:
branches:
- main
pull_request:

jobs:
markdown_and_scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install asdf dependencies
uses: asdf-vm/actions/install@v3

- name: lint
run: scripts/lint.bash

actions:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check workflow files
uses: docker://rhysd/actionlint:1.6.23
with:
args: -color
16 changes: 16 additions & 0 deletions registry/.github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: lint

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
semantic-pr:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions registry/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Sync Fork

on:
schedule:
- cron: '0 8 * * *'
push:
paths:
- '.github/workflows/sync.yml'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
sync:
runs-on: ubuntu-latest
steps:
- run: |
git config --global user.name mise-en-dev
git config --global user.email [email protected]
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: jdx/mise
path: mise
- run: |
cd mise
# git subtree push --prefix registry https://github.com/mise-plugins/registry main
- uses: actions/checkout@v4
with:
fetch-depth: 0
path: registry
- run: |
cd registry
git pull --ff-only https://github.com/asdf-vm/asdf-plugins master
git push origin main
21 changes: 21 additions & 0 deletions registry/.github/workflows/test-all-plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test

on:
push:
branches:
- main
paths:
- plugins/*
- README.md

jobs:
all_plugins:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Test all plugins pass our requirements
run: bash scripts/test_plugin.bash --all
18 changes: 18 additions & 0 deletions registry/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: test

on:
pull_request:
paths:
- plugins/*

jobs:
changed_plugins:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check new plugin is registered correctly
run: bash scripts/test_plugin.bash --diff origin/main ${{ github.sha }}
13 changes: 13 additions & 0 deletions registry/.mise/tasks/move
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

repo_name="$1"
name="${repo_name##*-}"
owner="${2:-mise-plugins}"

# TODO: update README.md
# TODO: transfer from jdx -> mise-plugins
# TODO: remove collaborators
# TODO: add github issues
# TODO: squash commits on PRs

echo "repository = https://github.com/$owner/$repo_name.git" > "plugins/$name"
3 changes: 3 additions & 0 deletions registry/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodejs 18.18.0
shellcheck 0.9.0
shfmt 3.7.0
37 changes: 37 additions & 0 deletions registry/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contributing

## Contributing a new Plugin

1. Clone this repo
```bash
git clone https://github.com/asdf-vm/asdf-plugins
```
1. Install repo dependencies
```bash
asdf install
```
1. Add the plugin to the repository `README.md` _Plugin List_ table.
1. Create a file with the shortname you wish to be used by asdf in `plugins/<name>`. The contents should be `repository = <your_repo>`. Eg:
```bash
printf "repository = https://github.com/asdf-vm/asdf-nodejs.git\n" > plugins/nodejs
```
1. Test your code
```bash
scripts/test_plugin.bash --file plugins/<name>
```
1. Format your code & this README:
```bash
scripts/format.bash
```
1. Create a PR following the instructions in the PR template.
1. Make sure you use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), both in the commit messages and the pull request title

## Fixing an existing plugin

If you see a plugin has an incorrect Build status link, please PR a fix to the correct link.

If you see a plugin which is no longer maintained by the repository owner, please reach out to them on their repo before PRing a removal of the plugin. Sometimes code not actively maintained functions perfectly fine. If you PR a removal, link to the thread showing you attempted to communicate with the owner/author.

---

Thanks for contributing!
20 changes: 20 additions & 0 deletions registry/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 Chris Dosé

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
Loading

0 comments on commit 143ea6e

Please sign in to comment.