From 9cebcbbdf7231a22e56ac01726c9ccdd2d120d7d Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Mon, 27 Jul 2020 14:28:08 -0500 Subject: [PATCH 1/4] adding example slash command --- .github/workflows/slash-command-dispatch.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/slash-command-dispatch.yml diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml new file mode 100644 index 00000000000..f165c98827b --- /dev/null +++ b/.github/workflows/slash-command-dispatch.yml @@ -0,0 +1,14 @@ +name: Slash Command Dispatch +on: + issue_comment: + types: [created] +jobs: + slashCommandDispatch: + runs-on: ubuntu-latest + steps: + - name: Slash Command Dispatch + uses: peter-evans/slash-command-dispatch@v2 + with: + token: ${{ secrets.PAT }} + commands: example + repository: matthewturk/slash-command-processor From e5ade092cfbfe6f97249e3fb40cd118208d795b2 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Mon, 27 Jul 2020 14:40:13 -0500 Subject: [PATCH 2/4] register some more commands --- .github/workflows/slash-command-dispatch.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index f165c98827b..e358fe0cc61 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -10,5 +10,8 @@ jobs: uses: peter-evans/slash-command-dispatch@v2 with: token: ${{ secrets.PAT }} - commands: example + commands: | + example + black + rebase repository: matthewturk/slash-command-processor From a6ecebebfcaf9dbee04c47d4b831639b49bab63f Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Mon, 27 Jul 2020 14:34:48 -0500 Subject: [PATCH 3/4] this is a broken commit! --- yt/convenience.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yt/convenience.py b/yt/convenience.py index 6cdb59310b1..9322954b2aa 100644 --- a/yt/convenience.py +++ b/yt/convenience.py @@ -20,9 +20,7 @@ def _sanitize_load_args(*args): except AttributeError: path_types = (str,) - return [ - os.path.expanduser(arg) if isinstance(arg, path_types) else arg for arg in args - ] + return [ os.path.expanduser(arg) if isinstance(arg, path_types) else arg for arg in args ] def load(*args, **kwargs): From 44bf25a25d7da9b49c23e86bf030cf04c33a1c55 Mon Sep 17 00:00:00 2001 From: actions-bot <58130806+actions-bot@users.noreply.github.com> Date: Mon, 27 Jul 2020 19:41:59 +0000 Subject: [PATCH 4/4] [black-command] fixes --- yt/convenience.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt/convenience.py b/yt/convenience.py index 9322954b2aa..6cdb59310b1 100644 --- a/yt/convenience.py +++ b/yt/convenience.py @@ -20,7 +20,9 @@ def _sanitize_load_args(*args): except AttributeError: path_types = (str,) - return [ os.path.expanduser(arg) if isinstance(arg, path_types) else arg for arg in args ] + return [ + os.path.expanduser(arg) if isinstance(arg, path_types) else arg for arg in args + ] def load(*args, **kwargs):