Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/centerofci/mathesar into …
Browse files Browse the repository at this point in the history
…form-builder
  • Loading branch information
pavish committed Dec 28, 2021
2 parents 4a06fe7 + 08db619 commit 0bffb94
Show file tree
Hide file tree
Showing 61 changed files with 2,125 additions and 790 deletions.
55 changes: 55 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
centerofci/mathesar-ansible:
- .github/actions/project_update/
- .github/workflows/add-to-project.yml
- .github/workflows/toc.yml
- .github/workflows/stale.yml
- .github/workflows/update-project-on-issue-assign.yml
- .github/workflows/update-project-on-issue-close.yml
- .github/workflows/update-project-on-issue-edit.yml
- .github/workflows/update-project-on-issue-label.yml
- .github/workflows/update-project-on-pr-edit.yml
- .github/workflows/update-project-on-pr-label.yml
centerofci/mathesar-design:
- .github/actions/project_update/
- .github/workflows/add-to-project.yml
- .github/workflows/toc.yml
- .github/workflows/stale.yml
- .github/workflows/update-project-on-issue-assign.yml
- .github/workflows/update-project-on-issue-close.yml
- .github/workflows/update-project-on-issue-edit.yml
- .github/workflows/update-project-on-issue-label.yml
- .github/workflows/update-project-on-pr-edit.yml
- .github/workflows/update-project-on-pr-label.yml
centerofci/mathesar-private-notes:
- .github/actions/project_update/
- .github/workflows/add-to-project.yml
- .github/workflows/toc.yml
- .github/workflows/stale.yml
- .github/workflows/update-project-on-issue-assign.yml
- .github/workflows/update-project-on-issue-close.yml
- .github/workflows/update-project-on-issue-edit.yml
- .github/workflows/update-project-on-issue-label.yml
- .github/workflows/update-project-on-pr-edit.yml
- .github/workflows/update-project-on-pr-label.yml
centerofci/mathesar-scripts:
- .github/actions/project_update/
- .github/workflows/add-to-project.yml
- .github/workflows/toc.yml
- .github/workflows/stale.yml
- .github/workflows/update-project-on-issue-assign.yml
- .github/workflows/update-project-on-issue-close.yml
- .github/workflows/update-project-on-issue-edit.yml
- .github/workflows/update-project-on-issue-label.yml
- .github/workflows/update-project-on-pr-edit.yml
- .github/workflows/update-project-on-pr-label.yml
centerofci/mathesar-wiki:
- .github/actions/project_update/
- .github/workflows/add-to-project.yml
- .github/workflows/toc.yml
- .github/workflows/stale.yml
- .github/workflows/update-project-on-issue-assign.yml
- .github/workflows/update-project-on-issue-close.yml
- .github/workflows/update-project-on-issue-edit.yml
- .github/workflows/update-project-on-issue-label.yml
- .github/workflows/update-project-on-pr-edit.yml
- .github/workflows/update-project-on-pr-label.yml
2 changes: 1 addition & 1 deletion .github/workflows/run-lint-audit-tests-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- run: npm install
- uses: oke-py/[email protected].0
- uses: oke-py/[email protected].2
with:
audit_level: moderate
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/sync-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Sync GitHub workflows to other repos
on:
push:
branches:
- master
workflow_dispatch:
jobs:
sync_workflows:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@master
- name: Run GitHub file sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{secrets.MATHESAR_ORG_GITHUB_TOKEN}}
36 changes: 36 additions & 0 deletions .github/workflows/update-project-on-issue-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update project on issue assignment
on:
issues:
types: [assigned, unassigned]

jobs:
update_project_on_issue_assign:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
run: |
cd .github/actions/project_update/
pip install -r requirements.txt
- name: Update priority for assigned issues
if: ${{ github.event.issue.assignees[0] != null }}
run: |
cd .github/actions/project_update/
python project_update.py ${{ github.event.issue.node_id }} --priority Active
env:
MATHESAR_ORG_GITHUB_TOKEN: ${{secrets.MATHESAR_ORG_GITHUB_TOKEN}}

- name: Update priority for non-assigned issues
if: ${{ github.event.issue.assignees[0] == null }}
run: |
cd .github/actions/project_update/
python project_update.py ${{ github.event.issue.node_id }} --priority Backlog
env:
MATHESAR_ORG_GITHUB_TOKEN: ${{secrets.MATHESAR_ORG_GITHUB_TOKEN}}
4 changes: 4 additions & 0 deletions db/records/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ class BadGroupFormat(Exception):

class GroupFieldNotFound(FieldNotFound):
pass


class InvalidGroupType(Exception):
pass
Loading

0 comments on commit 0bffb94

Please sign in to comment.