From 8c81517b98db6fcc7553b151ac097d95332910e9 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Mon, 12 Dec 2022 09:33:13 -0700 Subject: [PATCH 1/2] Revert "Feature/ssh dispose" --- Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs b/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs index 6998116..742ea03 100644 --- a/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs +++ b/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs @@ -298,7 +298,6 @@ namespace PepperDash.Core /// public void Disconnect() { - Debug.Console(2, "Disconnect Called"); ConnectEnabled = false; // Stop trying reconnects, if we are if (ReconnectTimer != null) @@ -316,13 +315,11 @@ namespace PepperDash.Core private void KillClient(SocketStatus status) { KillStream(); - IsConnecting = false; + if (Client != null) { - Client.ErrorOccurred -= Client_ErrorOccurred; + IsConnecting = false; Client.Disconnect(); - Client.Dispose(); - Client = null; ClientStatus = status; Debug.Console(1, this, "Disconnected"); From 56bfbb4bf96fadb58f12d0db2429b4551256ff5d Mon Sep 17 00:00:00 2001 From: jta Date: Tue, 31 Jan 2023 10:37:30 -0500 Subject: [PATCH 2/2] feature: add workflow to push to project --- .github/workflows/add-issues-to-project.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/add-issues-to-project.yml diff --git a/.github/workflows/add-issues-to-project.yml b/.github/workflows/add-issues-to-project.yml new file mode 100644 index 0000000..8811c0c --- /dev/null +++ b/.github/workflows/add-issues-to-project.yml @@ -0,0 +1,37 @@ +name: Add bugs to bugs project + +on: + issues: + types: + - opened + - labeled + +jobs: + check-secret: + runs-on: ubuntu-latest + outputs: + my-key: ${{ steps.my-key.outputs.defined }} + steps: + - id: my-key + if: "${{ env.MY_KEY != '' }}" + run: echo "::set-output name=defined::true" + env: + MY_KEY: ${{ secrets.PROJECT_URL }} + throw-error: + name: Check + runs-on: ubuntu-latest + needs: [check-secret] + if: needs.check-secret.outputs.my-key != 'true' + steps: + - run: echo "The Project URL Repo Secret is empty" + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + needs: [check-secret] + if: needs.check-secret.outputs.my-key == 'true' + steps: + - uses: actions/add-to-project@main + with: + project-url: ${{ secrets.PROJECT_URL }} + github-token: ${{ secrets.GH_PROJECTS_PASSWORD }} +