The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
chore: update ci and formatting
Mythie7feba02e08e2
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.ymlindex b835896d0..4fcde0ea3 100644--- a/.github/ISSUE_TEMPLATE/bug-report.yml+++ b/.github/ISSUE_TEMPLATE/bug-report.yml@@ -1,11 +1,10 @@-name: "Bug Report"-labels: ["bug"]+name: 'Bug Report'+labels: ['bug']description: Create a bug report to help us improvebody:- type: markdownattributes:- value:- Thank you for reporting an issue.+ value: Thank you for reporting an issue.Please fill in as much of the form below as you're able to.- type: textareaattributes:diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.ymlindex f323f9475..ab21e8828 100644--- a/.github/ISSUE_TEMPLATE/feature-request.yml+++ b/.github/ISSUE_TEMPLATE/feature-request.yml@@ -1,9 +1,9 @@-name: "Feature Request"+name: 'Feature Request'description: Suggest a new idea or enhancement for this projectbody:- type: markdownattributes:- value: Please provide a clear and concise title for your feature request+ value: Please provide a clear and concise title for your feature request- type: textareaattributes:label: Feature Description@@ -32,4 +32,4 @@ body:- label: I have provided a detailed description of the requested feature.- label: I have explained the use case or scenario for this feature.- label: I have included any relevant technical details or design suggestions.- - label: I understand that this is a suggestion and that there is no guarantee of implementation.\ No newline at end of file+ - label: I understand that this is a suggestion and that there is no guarantee of implementation.diff --git a/.github/ISSUE_TEMPLATE/improvement.yml b/.github/ISSUE_TEMPLATE/improvement.ymlindex bebcb4cb5..058a025e7 100644--- a/.github/ISSUE_TEMPLATE/improvement.yml+++ b/.github/ISSUE_TEMPLATE/improvement.yml@@ -1,4 +1,4 @@-name: "General Improvement"+name: 'General Improvement'description: Suggest a minor enhancement or improvement for this projectbody:- type: markdown@@ -32,4 +32,4 @@ body:- label: I have provided a clear description of the improvement being suggested.- label: I have explained the rationale behind this improvement.- label: I have included any relevant technical details or design suggestions.- - label: I understand that this is a suggestion and that there is no guarantee of implementation.\ No newline at end of file+ - label: I understand that this is a suggestion and that there is no guarantee of implementation.diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex d9013f408..9a20ae923 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -4,29 +4,29 @@ updates:- package-ecosystem: 'github-actions'directory: '/'schedule:- interval: "weekly"- target-branch: "main"+ interval: 'weekly'+ target-branch: 'main'labels:- - "ci dependencies"- - "ci"+ - 'ci dependencies'+ - 'ci'open-pull-requests-limit: 0- - package-ecosystem: "npm"- directory: "/apps/marketing"+ - package-ecosystem: 'npm'+ directory: '/apps/marketing'schedule:- interval: "weekly"- target-branch: "main"+ interval: 'weekly'+ target-branch: 'main'labels:- - "npm dependencies"- - "frontend"+ - 'npm dependencies'+ - 'frontend'open-pull-requests-limit: 0- - package-ecosystem: "npm"- directory: "/apps/web"+ - package-ecosystem: 'npm'+ directory: '/apps/web'schedule:- interval: "weekly"- target-branch: "main"+ interval: 'weekly'+ target-branch: 'main'labels:- - "npm dependencies"- - "frontend"+ - 'npm dependencies'+ - 'frontend'open-pull-requests-limit: 0diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.ymlindex 4fb68aa2f..e6ad018a3 100644--- a/.github/pr-labeler.yml+++ b/.github/pr-labeler.yml@@ -1,7 +1,7 @@'apps: marketing':- apps/marketing/**-'apps: web':+'apps: web':- apps/web/**'version bump π':@@ -14,7 +14,7 @@'π¨ e2e changes π¨':- packages/app-tests/e2e/**-"π¨ .env changes π¨":+'π¨ .env changes π¨':- .env.example'pkg: ee changes':diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 104dc3440..deda53ff0 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,10 +1,10 @@-name: "Continuous Integration"+name: 'Continuous Integration'on:push:- branches: [ "main" ]+ branches: ['main']pull_request:- branches: [ "main" ]+ branches: ['main']concurrency:group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}@@ -16,7 +16,6 @@ env:jobs:build_app:name: Build App- if: github.repository == 'documenso/documenso'runs-on: ubuntu-lateststeps:- name: Checkout@@ -50,4 +49,3 @@ jobs:- name: Build Docker Imagerun: ./docker/build.sh-diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex c51216165..465041c0a 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -1,11 +1,11 @@-name: "CodeQL"+name: 'CodeQL'on:workflow_dispatch:push:- branches: [ "main" ]+ branches: ['main']pull_request:- branches: [ "main" ]+ branches: ['main']jobs:analyze:@@ -19,30 +19,30 @@ jobs:strategy:fail-fast: truematrix:- language: [ 'javascript' ]+ language: ['javascript']steps:- - name: Checkout repository- uses: actions/checkout@v4+ - name: Checkout repository+ uses: actions/checkout@v4- - uses: actions/setup-node@v4- with:- node-version: 18- cache: npm+ - uses: actions/setup-node@v4+ with:+ node-version: 18+ cache: npm- - name: Install Dependencies- run: npm ci+ - name: Install Dependencies+ run: npm ci- - name: Copy env- run: cp .env.example .env+ - name: Copy env+ run: cp .env.example .env- - name: Build Documenso- run: npm run build+ - name: Build Documenso+ run: npm run build- - name: Initialize CodeQL- uses: github/codeql-action/init@v2- with:- languages: ${{ matrix.language }}+ - name: Initialize CodeQL+ uses: github/codeql-action/init@v2+ with:+ languages: ${{ matrix.language }}- - name: Perform CodeQL Analysis- uses: github/codeql-action/analyze@v2+ - name: Perform CodeQL Analysis+ uses: github/codeql-action/analyze@v2diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.ymlindex c059e0317..2f8df180b 100644--- a/.github/workflows/e2e-tests.yml+++ b/.github/workflows/e2e-tests.yml@@ -1,9 +1,9 @@name: Playwright Testson:push:- branches: [ "main" ]+ branches: ['main']pull_request:- branches: [ "main" ]+ branches: ['main']jobs:e2e_tests:timeout-minutes: 60diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.ymlindex 2f6f59e4a..5f53eb280 100644--- a/.github/workflows/first-interaction.yml+++ b/.github/workflows/first-interaction.yml@@ -1,10 +1,10 @@-name: "Welcome New Contributors"+name: 'Welcome New Contributors'on:pull_request:- types: opened+ types: ['opened']issues:- types: opened+ types: ['opened']permissions:pull-requests: write@@ -13,7 +13,7 @@ permissions:jobs:welcome-message:name: Welcome Contributors- if: github.repository == 'documenso/documenso' && github.event.action == 'opened'+ if: github.event.action == 'opened'runs-on: ubuntu-latesttimeout-minutes: 10steps:@@ -24,6 +24,6 @@ jobs:Thank you for creating your first Pull Request and for being a part of the open signing revolution! ππ<br /> Feel free to hop into our community in [Discord](https://documen.so/discord)issue-message: |- Thank you for opening your first issue and for being a part of the open signing revolution!+ Thank you for opening your first issue and for being a part of the open signing revolution!<br /> One of our team members will review it and get back to you as soon as it possible π<br /> Meanwhile, please feel free to hop into our community in [Discord](https://documen.so/discord)diff --git a/.github/workflows/issue-assignee-check.yml b/.github/workflows/issue-assignee-check.ymlindex 9ecc23339..1ce7a02be 100644--- a/.github/workflows/issue-assignee-check.yml+++ b/.github/workflows/issue-assignee-check.yml@@ -1,28 +1,26 @@-name: "Issue Assignee Check"+name: 'Issue Assignee Check'on:issues:- types: [assigned]+ types: ['assigned']permissions:issues: writejobs:countIssues:- if: ${{ github.event.issue.assignee }} && github.repository == 'documenso/documenso' && github.event.action == 'assigned' && github.event.sender.type == 'User'+ if: ${{ github.event.issue.assignee }} && github.event.action == 'assigned' && github.event.sender.type == 'User'runs-on: ubuntu-latest- env:- MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}steps:- name: Set up Node.jsuses: actions/setup-node@v4with:node-version: '18'cache: npm-+- name: Install Octokitrun: npm install @octokit/rest@18-+- name: Check Assigned User's Issue Countid: parse-commentuses: actions/github-script@v5@@ -31,20 +29,20 @@ jobs:script: |const { Octokit } = require("@octokit/rest");const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });-+const username = context.payload.issue.assignee.login;console.log(`Username Extracted: ${username}`);-+const { data: issues } = await octokit.issues.listForRepo({owner: context.repo.owner,repo: context.repo.repo,assignee: username,state: 'open'});-+const issueCount = issues.length;console.log(`Issue Count For ${username}: ${issueCount}`);-+if (issueCount > 3) {let issueCountMessage = `### π¨ Documenso Police π¨`;issueCountMessage += `\n@${username} has ${issueCount} open issues assigned already. Consider whether this issue should be assigned to them or left open for another contributor.`;diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.ymlindex c656ce74d..ed9f2811a 100644--- a/.github/workflows/issue-opened.yml+++ b/.github/workflows/issue-opened.yml@@ -1,15 +1,12 @@-name: "Label Issues"+name: 'Label Issues'on:issues:- types:- - reopened- - opened+ types: ['opened', 'reopened']jobs:label_issues:runs-on: ubuntu-latest- if: github.repository == 'documenso/documenso'permissions:issues: writesteps:diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.ymlindex e968a028e..1a5afd359 100644--- a/.github/workflows/pr-labeler.yml+++ b/.github/workflows/pr-labeler.yml@@ -1,4 +1,4 @@-name: "PR Labeler"+name: 'PR Labeler'on:- pull_request_target@@ -9,7 +9,6 @@ concurrency:jobs:labeler:- if: github.repository == 'documenso/documenso'permissions:contents: readpull-requests: write@@ -18,4 +17,4 @@ jobs:- uses: actions/labeler@v4with:repo-token: ${{ secrets.GITHUB_TOKEN }}- sync-labels: ""+ sync-labels: ''diff --git a/.github/workflows/pr-review-reminder.yml b/.github/workflows/pr-review-reminder.ymlindex 6b16c611f..cc272fbfe 100644--- a/.github/workflows/pr-review-reminder.yml+++ b/.github/workflows/pr-review-reminder.yml@@ -1,28 +1,26 @@-name: "PR Review Reminder"+name: 'PR Review Reminder'on:pull_request:- types: [opened, reopened, ready_for_review, review_requested]+ types: ['opened', 'reopened', 'ready_for_review', 'review_requested']permissions:pull-requests: writejobs:checkPRs:- if: ${{ github.event.pull_request.user.login }} && github.repository == 'documenso/documenso' && github.event.action == ('opened' || 'reopened' || 'ready_for_review' || 'review_requested')+ if: ${{ github.event.pull_request.user.login }} && github.event.action == ('opened' || 'reopened' || 'ready_for_review' || 'review_requested')runs-on: ubuntu-latest- env:- MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}steps:- name: Set up Node.jsuses: actions/setup-node@v4with:node-version: '18'cache: npm-+- name: Install Octokitrun: npm install @octokit/rest@18-+- name: Check user's PRs awaiting reviewid: parse-prsuses: actions/github-script@v5@@ -31,10 +29,10 @@ jobs:script: |const { Octokit } = require("@octokit/rest");const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });-+const username = context.payload.pull_request.user.login;console.log(`Username Extracted: ${username}`);-+const { data: pullRequests } = await octokit.pulls.list({owner: context.repo.owner,repo: context.repo.repo,diff --git a/.github/workflows/semantic-pull-requests.yml b/.github/workflows/semantic-pull-requests.ymlindex 08d3739fc..ef0a87542 100644--- a/.github/workflows/semantic-pull-requests.yml+++ b/.github/workflows/semantic-pull-requests.yml@@ -13,7 +13,6 @@ permissions:jobs:validate-pr:- if: github.repository == 'documenso/documenso'name: Validate PR titleruns-on: ubuntu-lateststeps:diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.ymlindex 4c0fa757c..82beed6e2 100644--- a/.github/workflows/stale.yml+++ b/.github/workflows/stale.yml@@ -1,4 +1,4 @@-name: "Mark Stale Issues and PRs"+name: 'Mark Stale Issues and PRs'on:schedule:@@ -6,20 +6,20 @@ on:jobs:stale:- if: github.repository == 'documenso/documenso'runs-on: ubuntu-latestpermissions:issues: writepull-requests: writesteps:- - uses: actions/stale@v4- with:- repo-token: ${{ secrets.GITHUB_TOKEN }}- days-before-pr-stale: 30- days-before-issue-stale: 30- stale-issue-message: 'This issue has not seen activity for a while. It will be closed in 30 days unless further activity is detected'- stale-pr-message: 'This PR has not seen activitiy for a while. It will be closed in 30 days unless further activity is detected.'- close-issue-message: 'This issue has been closed because of inactivity.'- close-pr-message: 'This PR has been closed because of inactivity.'- exempt-pr-labels: 'WIP, on-hold, needs review'+ - uses: actions/stale@v4+ with:+ repo-token: ${{ secrets.GITHUB_TOKEN }}+ days-before-pr-stale: 30+ days-before-issue-stale: 30+ stale-issue-message: 'This issue has not seen activity for a while. It will be closed in 30 days unless further activity is detected'+ stale-pr-message: 'This PR has not seen activitiy for a while. It will be closed in 30 days unless further activity is detected.'+ close-issue-message: 'This issue has been closed because of inactivity.'+ close-pr-message: 'This PR has been closed because of inactivity.'+ exempt-pr-labels: 'WIP,on-hold,needs review'+ exempt-issue-labels: 'WIP,on-hold,needs review,roadmap'