The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Feat: Add stale Action for marking stale issues and Action to auto label new issues with source (#27033)
Chris Gwilliamse2271707cc39
diff --git a/.github/workflows/auto-label-issues.yml b/.github/workflows/auto-label-issues.ymlnew file mode 100644index 00000000000..eb248c823e0--- /dev/null+++ b/.github/workflows/auto-label-issues.yml@@ -0,0 +1,65 @@+name: Auto Label Issues+on:+ issues:+ types: [opened, reopened]+jobs:+ check-external:+ runs-on: ubuntu-latest+ outputs:+ result: ${{ steps.is-member.outputs.result }}+ steps:+ - name: Get deps+ run: |+ sudo apt-get update && sudo apt-get install -y jq+ - name: Get org members+ id: is-member+ env:+ GH_ORG: supabase+ GH_USER: ${{ github.event.issue.user.login }}+ GH_TOKEN: ${{ secrets.SB_ORG_MEMBERSHIP_PAT }}+ run: |+ gh api /orgs/supabase/members/$GH_USER+ - if: failure()+ name: is-member+ run: |+ echo "User is not a member of Supabase org"+ echo "result=false" >> "$GITHUB_OUTPUT"+ - if: success()+ run: |+ echo "User is a member of Supabase org"+ echo "result=true" >> "$GITHUB_OUTPUT"+ - name: Label contributor+ id: label-contributor+ if: ${{ steps.is-member.outputs.result == 'false' }}+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ USERNAME: ${{ github.event.issue.user.login }}+ GH_REPO: ${{ github.repository }}+ NUMBER: ${{ github.event.issue.number }}+ LABELS: external-issue+ run: |+ echo "applying external label"+ gh issue edit $NUMBER --add-label $LABELS+ - name: Label internal+ id: label-internal+ if: ${{ steps.is-member.outputs.result == 'true' }}+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ USERNAME: ${{ github.event.issue.user.login }}+ GH_REPO: ${{ github.repository }}+ NUMBER: ${{ github.event.issue.number }}+ LABELS: internal-issue+ run: |+ echo "applying internal label"+ gh issue edit $NUMBER --add-label $LABELS+ triage-new:+ runs-on: ubuntu-latest+ steps:+ - name: Label triage+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ NUMBER: ${{ github.event.issue.number }}+ LABELS: to-triage+ run: |+ echo "applying triage label"+ gh issue edit $NUMBER --add-label $LABELSdiff --git a/.github/workflows/stale.yml b/.github/workflows/stale.ymlnew file mode 100644index 00000000000..8281d285e2a--- /dev/null+++ b/.github/workflows/stale.yml@@ -0,0 +1,18 @@+name: Automatically label stale issues+on:+ schedule:+ - cron: '30 1 * * *'++jobs:+ build:+ runs-on: ubuntu-latest+ steps:+ - name: Label Stale Issues+ uses: actions/[email protected]+ with:+ days-before-issue-stale: 30+ stale-issue-message: 'After 30 days of inactivity, this issue has been marked as stale. Commenting (or other activity) will remove the stale label.'+ stale-issue-label: stale+ any-of-labels: contributor+ exempt-issue-labels: dnc, needs-analysis+ exempt-all-assignees: true