chore: update ci and formatting

This commit is contained in:
Mythie
2023-12-08 13:01:08 +11:00
parent 520522bef7
commit 7feba02e08
15 changed files with 90 additions and 102 deletions

View File

@ -1,11 +1,10 @@
name: "Bug Report"
labels: ["bug"]
name: 'Bug Report'
labels: ['bug']
description: Create a bug report to help us improve
body:
- type: markdown
attributes:
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: textarea
attributes:

View File

@ -1,4 +1,4 @@
name: "Feature Request"
name: 'Feature Request'
description: Suggest a new idea or enhancement for this project
body:
- type: markdown

View File

@ -1,4 +1,4 @@
name: "General Improvement"
name: 'General Improvement'
description: Suggest a minor enhancement or improvement for this project
body:
- type: markdown

View File

@ -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: 0

View File

@ -14,7 +14,7 @@
'🚨 e2e changes 🚨':
- packages/app-tests/e2e/**
"🚨 .env changes 🚨":
'🚨 .env changes 🚨':
- .env.example
'pkg: ee changes':

View File

@ -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-latest
steps:
- name: Checkout
@ -50,4 +49,3 @@ jobs:
- name: Build Docker Image
run: ./docker/build.sh

View File

@ -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,7 +19,7 @@ jobs:
strategy:
fail-fast: true
matrix:
language: [ 'javascript' ]
language: ['javascript']
steps:
- name: Checkout repository

View File

@ -1,9 +1,9 @@
name: Playwright Tests
on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']
jobs:
e2e_tests:
timeout-minutes: 60

View File

@ -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-latest
timeout-minutes: 10
steps:

View File

@ -1,18 +1,16 @@
name: "Issue Assignee Check"
name: 'Issue Assignee Check'
on:
issues:
types: [assigned]
types: ['assigned']
permissions:
issues: write
jobs:
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.js
uses: actions/setup-node@v4

View File

@ -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: write
steps:

View File

@ -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: read
pull-requests: write
@ -18,4 +17,4 @@ jobs:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: ""
sync-labels: ''

View File

@ -1,18 +1,16 @@
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: write
jobs:
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.js
uses: actions/setup-node@v4

View File

@ -13,7 +13,6 @@ permissions:
jobs:
validate-pr:
if: github.repository == 'documenso/documenso'
name: Validate PR title
runs-on: ubuntu-latest
steps:

View File

@ -1,4 +1,4 @@
name: "Mark Stale Issues and PRs"
name: 'Mark Stale Issues and PRs'
on:
schedule:
@ -6,7 +6,6 @@ on:
jobs:
stale:
if: github.repository == 'documenso/documenso'
runs-on: ubuntu-latest
permissions:
issues: write
@ -22,4 +21,5 @@ jobs:
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-pr-labels: 'WIP,on-hold,needs review'
exempt-issue-labels: 'WIP,on-hold,needs review,roadmap'