From b5de887389297d583795ce9debc6d23437b71ae4 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 21 Mar 2022 08:55:21 -0700 Subject: [PATCH 1/9] Project actions on dev too [ci skip] --- .github/workflows/project-actions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/project-actions.yml b/.github/workflows/project-actions.yml index 2cf98bf4b..9c1acfaa9 100644 --- a/.github/workflows/project-actions.yml +++ b/.github/workflows/project-actions.yml @@ -8,6 +8,9 @@ on: types: - opened - reopened + branches: + - main + - dev # map fields with customized labels env: From 3753a296cafae494e6b495362d6a3d8f26bf6f65 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 21 Mar 2022 10:54:48 -0700 Subject: [PATCH 2/9] Fix pre-commit link [ci skip] --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 49e36e35b..2e629fda7 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -31,6 +31,6 @@ NOTE: Please check only one box! - [ ] I have read & agree with the [contributing guidelines](https://github.com/paperless-ngx/paperless-ngx/blob/main/CONTRIBUTING.md). - [ ] If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers. - [ ] If applicable, I have checked that all tests pass, see [documentation](https://paperless-ngx.readthedocs.io/en/latest/extending.html#back-end-development). -- [ ] I have run all `pre-commit` hooks, see [documentation](https://paperless-ngx.readthedocs.io/en/latest/contributing.html#pre-commit-hooks). +- [ ] I have run all `pre-commit` hooks, see [documentation](https://paperless-ngx.readthedocs.io/en/latest/extending.html#code-formatting-with-pre-commit-hooks). - [ ] I have made corresponding changes to the documentation as needed. - [ ] I have checked my modifications for any breaking changes. From 1e449f9657bd246e395cb8f7d6850aa30e12e41f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 21 Mar 2022 14:53:56 -0700 Subject: [PATCH 3/9] Change dependabot to check npm monthly [ci skip] --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 789d117bb..7b8e87fde 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,7 +10,7 @@ updates: directory: "/src-ui" # Check the npm registry for updates every week schedule: - interval: "weekly" + interval: "monthly" # Add reviewers reviewers: - "paperless-ngx/frontend" From 92d55abc5bf9d16f31c63e8eff5568e864e13ca9 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 22 Mar 2022 00:55:23 -0700 Subject: [PATCH 4/9] Fix project automations failing from forks --- .github/workflows/project-actions.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/project-actions.yml b/.github/workflows/project-actions.yml index 9c1acfaa9..00525d279 100644 --- a/.github/workflows/project-actions.yml +++ b/.github/workflows/project-actions.yml @@ -1,10 +1,11 @@ -name: Project automations +name: Project Automations + on: issues: types: - opened - reopened - pull_request: + pull_request_target: #_target allows access to secrets types: - opened - reopened @@ -12,7 +13,6 @@ on: - main - dev -# map fields with customized labels env: todo: Todo done: Done @@ -32,10 +32,10 @@ jobs: project_id: 2 resource_node_id: ${{ github.event.issue.node_id }} status_value: ${{ env.todo }} # Target status - pr_opened_or_reopened_or_reviewrequested: - name: pr_opened_or_reopened_or_reviewrequested + pr_opened_or_reopened: + name: pr_opened_or_reopened runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested') + if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened') steps: - name: Move PR to ${{ env.in_progress }} uses: leonsteinhaeuser/project-beta-automations@v1.2.1 From 7bceb6817b260c53792a17d1c467eee7e6a209eb Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 22 Mar 2022 01:22:19 -0700 Subject: [PATCH 5/9] Fix project automations failing on PRs from forks --- .github/workflows/project-actions.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/project-actions.yml b/.github/workflows/project-actions.yml index 00525d279..adfbc6d40 100644 --- a/.github/workflows/project-actions.yml +++ b/.github/workflows/project-actions.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') steps: - - name: Move issue to ${{ env.todo }} + - name: Set issue status to ${{ env.todo }} uses: leonsteinhaeuser/project-beta-automations@v1.2.1 with: gh_token: ${{ secrets.GH_TOKEN }} @@ -35,9 +35,9 @@ jobs: pr_opened_or_reopened: name: pr_opened_or_reopened runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened') + if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened') steps: - - name: Move PR to ${{ env.in_progress }} + - name: Set PR status to ${{ env.in_progress }} uses: leonsteinhaeuser/project-beta-automations@v1.2.1 with: gh_token: ${{ secrets.GH_TOKEN }} From 8e4a8a96336baae1ccdf3ca43ee69b5af14f6040 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Wed, 23 Mar 2022 12:15:35 +0100 Subject: [PATCH 6/9] Add API Scanning Setup section to scanners.rst * Add instructions for Doxie Q2 to scanners.rst --- docs/scanners.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/scanners.rst b/docs/scanners.rst index 11b57da94..82521488e 100644 --- a/docs/scanners.rst +++ b/docs/scanners.rst @@ -112,3 +112,23 @@ On Android, you can use these applications in combination with one of the :ref:` .. _hannahswain: https://github.com/hannahswain .. _benjaminfrank: https://github.com/benjaminfrank + +API Scanning Setup +================== + +This sections contains information on how to set up scanners to post directly to :ref:`Paperless API `. + +Doxie Q2 +-------- + +This part assumes your Doxie is connected to WiFi and you know it's IP. + +1. Open your Doxie web UI by navigating to its IP address +2. Navigate to Options -> Webhook +3. Set the *URL* to ``https://[your-paperless-ng-instance]/api/documents/post_document/`` +4. Set the *File Parameter Name* to ``document`` +5. Add the username and password to the respective fields (Consider creating a user just for your Doxie) +6. Click *Submit* at the bottom of the page + +Congrats, you can now scan directly from your Doxie to your Paperless-ng instance! + From 47c9ef36acf858b90b1b76bb671337f8e59f33a5 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Wed, 23 Mar 2022 14:06:41 +0100 Subject: [PATCH 7/9] Fix typo in docs/scanners.rst Co-authored-by: Quinn Casey --- docs/scanners.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scanners.rst b/docs/scanners.rst index 82521488e..4b6721253 100644 --- a/docs/scanners.rst +++ b/docs/scanners.rst @@ -121,7 +121,7 @@ This sections contains information on how to set up scanners to post directly to Doxie Q2 -------- -This part assumes your Doxie is connected to WiFi and you know it's IP. +This part assumes your Doxie is connected to WiFi and you know its IP. 1. Open your Doxie web UI by navigating to its IP address 2. Navigate to Options -> Webhook From 776c8afdba2b56eeae4fde3fa8f892932d421754 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Wed, 23 Mar 2022 14:06:53 +0100 Subject: [PATCH 8/9] Fix typo in docs/scanners.rst Co-authored-by: Quinn Casey --- docs/scanners.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scanners.rst b/docs/scanners.rst index 4b6721253..d7d203425 100644 --- a/docs/scanners.rst +++ b/docs/scanners.rst @@ -125,7 +125,7 @@ This part assumes your Doxie is connected to WiFi and you know its IP. 1. Open your Doxie web UI by navigating to its IP address 2. Navigate to Options -> Webhook -3. Set the *URL* to ``https://[your-paperless-ng-instance]/api/documents/post_document/`` +3. Set the *URL* to ``https://[your-paperless-ngx-instance]/api/documents/post_document/`` 4. Set the *File Parameter Name* to ``document`` 5. Add the username and password to the respective fields (Consider creating a user just for your Doxie) 6. Click *Submit* at the bottom of the page From 3033671227773134d0c26a17169a42f75595dab7 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Wed, 23 Mar 2022 14:07:10 +0100 Subject: [PATCH 9/9] Fix typo in docs/scanners.rst Co-authored-by: Quinn Casey --- docs/scanners.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scanners.rst b/docs/scanners.rst index d7d203425..51611c9ac 100644 --- a/docs/scanners.rst +++ b/docs/scanners.rst @@ -130,5 +130,5 @@ This part assumes your Doxie is connected to WiFi and you know its IP. 5. Add the username and password to the respective fields (Consider creating a user just for your Doxie) 6. Click *Submit* at the bottom of the page -Congrats, you can now scan directly from your Doxie to your Paperless-ng instance! +Congrats, you can now scan directly from your Doxie to your Paperless-ngx instance!