From 68d7532be363aa2df7eb5afae082e83a250c15b8 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Tue, 9 Apr 2024 08:57:48 -0500 Subject: [PATCH 1/3] chore(asdf-yarn): fixed url --- .mise/tasks/move | 2 +- plugins/asdf-yarn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.mise/tasks/move b/.mise/tasks/move index 46a3da1b32..f24aea84d5 100755 --- a/.mise/tasks/move +++ b/.mise/tasks/move @@ -1,7 +1,7 @@ #!/usr/bin/env bash name="$1" -owner="${2:mise-plugins}" +owner="${2:-mise-plugins}" # TODO: transfer from jdx -> mise-plugins # TODO: remove collaborators diff --git a/plugins/asdf-yarn b/plugins/asdf-yarn index 3177fc7038..b42ac0181b 100644 --- a/plugins/asdf-yarn +++ b/plugins/asdf-yarn @@ -1 +1 @@ -repository = https://github.com//asdf-yarn.git +repository = https://github.com/mise-plugins/asdf-yarn.git From b7730335949235085001b23ddc382a7c44b18f12 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Tue, 9 Apr 2024 09:43:37 -0500 Subject: [PATCH 2/3] chore(sync): added workflow --- .github/workflows/sync.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000000..22dfe5d4bf --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,23 @@ +name: Sync Fork + +on: + schedule: + - cron: '0 8 * * *' + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: | + git config user.name mise-en-dev + git config user.email 123107610+mise-en-dev@users.noreply.github.com + git pull --ff-only https://github.com/asdf-vm/asdf-plugins master + git push origin main From fc8de34e2e535ed7262c079087ff444a44dd5731 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Tue, 9 Apr 2024 10:29:03 -0500 Subject: [PATCH 3/3] fix: asdf-yarn --- .mise/tasks/move | 5 +++-- plugins/asdf-yarn | 1 - plugins/yarn | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 plugins/asdf-yarn diff --git a/.mise/tasks/move b/.mise/tasks/move index f24aea84d5..692e665945 100755 --- a/.mise/tasks/move +++ b/.mise/tasks/move @@ -1,6 +1,7 @@ #!/usr/bin/env bash -name="$1" +repo_name="$1" +name="${repo_name##*-}" owner="${2:-mise-plugins}" # TODO: transfer from jdx -> mise-plugins @@ -8,4 +9,4 @@ owner="${2:-mise-plugins}" # TODO: add github issues # TODO: squash commits on PRs -echo "repository = https://github.com/$owner/$name.git" > "plugins/$name" +echo "repository = https://github.com/$owner/$repo_name.git" > "plugins/$name" diff --git a/plugins/asdf-yarn b/plugins/asdf-yarn deleted file mode 100644 index b42ac0181b..0000000000 --- a/plugins/asdf-yarn +++ /dev/null @@ -1 +0,0 @@ -repository = https://github.com/mise-plugins/asdf-yarn.git diff --git a/plugins/yarn b/plugins/yarn index ceeb511404..b42ac0181b 100644 --- a/plugins/yarn +++ b/plugins/yarn @@ -1 +1 @@ -repository = https://github.com/twuni/asdf-yarn.git +repository = https://github.com/mise-plugins/asdf-yarn.git