From 0335eee08c45a9a6cbb9ed46ccbf7eed35508d24 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:52:04 -0400 Subject: [PATCH 1/6] build: :hammer: add recipe to run all recipes --- justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/justfile b/justfile index d319c89..0d096f7 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,9 @@ @_default: just --list --unsorted +# Run all recipes +run-all: install build-readme + # Install all scripts in `bin/` to `~/.local/bin/` install: mkdir -p ~/.local/bin From 3cd7c49948e7ea94a0f69dd939dacd5b53f6c8a6 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:52:30 -0400 Subject: [PATCH 2/6] chore: :technologist: add CODEOWNERS file to tag people --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..1e3137e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# All members on Developers team get added to review PRs +* @seedcase-project/developers + From 777ba06df6d0e3065d121d08f55dd3966c1342a7 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:52:48 -0400 Subject: [PATCH 3/6] chore: :technologist: add PR template for this repo --- .github/pull_request_template.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..920be8e --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ +## Description + +This PR DESCRIBE CHANGES. + +Closes # + + +This PR needs a quick/an in-depth review. + +## Checklist + +- [ ] Ran `just run-all` From 3254432d7ce707ed3ee792596d55a488d3b31624 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:55:27 -0400 Subject: [PATCH 4/6] ci: :construction_worker: workflow to add to board and auto-assign --- .github/workflows/add-to-project.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..dddcc49 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,37 @@ +name: Add to project board + +on: + issues: + types: + - opened + - reopened + - transferred + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + add-to-project: + name: Add to project + runs-on: ubuntu-latest + steps: + - name: Add issue or PR to project board + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/seedcase-project/projects/18 + github-token: ${{ secrets.ADD_TO_BOARD }} + + - name: Assign PR to creator + if: ${{ github.event_name == 'pull_request' }} + run: | + gh pr edit $PR --add-assignee $AUTHOR + env: + AUTHOR: ${{ github.event.pull_request.user.login }} + PR: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + From da4eb2e498c663cb7f866a0ca25eaa43f13f0757 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:55:59 -0400 Subject: [PATCH 5/6] chore: :wrench: add basic dev config files --- .editorconfig | 27 +++++++++++++++++++++++++++ .gitignore | 14 ++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..227257b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# EditorConfig settings. Some editors will read these automatically; +# for those that don't, see here: http://editorconfig.org/ + +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 88 + +# Have a bit shorter line length for text docs +[*.{txt,md,qmd}] +max_line_length = 72 +indent_size = 4 + +# Python always uses 4 spaces for tabs +[*.py] +indent_style = space +indent_size = 4 + +# Makefiles always use tabs for indentation +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f5729e --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Development files and folders +_ignore + +# Temporary files +*.tmp + +# Python specific content +venv +__pycache__/ +*.py[cod] + +# MacOS +.DS_Store + From 7b0b6f196a84e9dbc2ad1a62dec27d3f85178e8f Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 30 Oct 2024 10:56:14 -0400 Subject: [PATCH 6/6] ci: :construction_worker: add dependabot --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..db513a1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + commit-message: + prefix: ci + include: scope + assignees: + - "lwjohnst86"