Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔄 synced file(s) with seedcase-project/.github #87

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}


293 changes: 135 additions & 158 deletions .vscode/json.code-snippets
Original file line number Diff line number Diff line change
@@ -1,160 +1,137 @@
{
// Place your snippets for Quarto here.
// Each snippet is defined under a snippet name and has a prefix, body and description.
// The prefix is what is used to trigger the snippet and the body will be expanded and inserted.
// Possible variables are:
//
// - $1 and $2 for tab stops,
// - $0 for the final cursor position, and
// - ${1:label}, ${2:another} for placeholders
//
// Placeholders with the same ids are connected.
//
// How to use the code snippets:
// After you have set the above settings, a suggestion for one of the code snippets below will pop up automatically, when
// you start writing the prefix. Press "Enter" or "Tab" to insert the code snippet.

"Insert TODO formatting": {
"scope": "quarto,markdown",
"prefix": "TODO",
"body": [
"<!-- TODO: ${0:Write text here} -->"
],
"description": "Insert TODO formatting"
}

"Insert bash formatted text": {
"scope": "quarto,markdown",
"prefix": "bash",
"body": [
"``` bash"
"${0:Write text here}"
"```"
],
"description": "Insert bash formatted text"
}

"Insert YAML header for blogs": {
"scope": "quarto,markdown",
"prefix": "post_yaml",
"body": [
"---"
"title: \"\""
"description: \"Our reasons for ...\""
"author: \"\""
"date: last-modified"
"categories:"
" ${0:Type 'category_keywords' to insert categories}"
"---"
],
"description": "Insert YAML header for Quarto blog posts."
}

"Insert a hidden comment section": {
"scope": "quarto,markdown",
"prefix": "hidden",
"body": [
"::: content-hidden"
"${0:Write comments here}"
":::"
],
"description": "Insert a hidden content section"
}

"Insert a 2 col table": {
"scope": "quarto,markdown",
"prefix": "tbl2",
"body": [
"|${1:title} |${0:title} |",
"| --- | --- |",
"| | |"
],
"description": "Insert a 2 col table"
}

"Insert a 3 col table": {
"scope": "quarto,markdown",
"prefix": "tbl3",
"body": [
"|${1:title} |${2:title} |${0:title} |",
"| --- | --- | --- |",
"| | | |"
],
"description": "Insert a 3 col table"
}

"Insert video": {
"scope": "quarto,markdown",
"prefix": "video",
"body": [
"{{< video ${0:Insert link here} >}}"
],
"description": "Insert video that will be shown"
}

"Insert paneltab": {
"scope": "quarto,markdown",
"prefix": "paneltab",
"body": [
::: panel-tabset
### ${0:Header}

${1:Text body}

### ${2:Header}

${3:Text body}
:::
],
"description": "Insert paneltab (including two tabs here). If you want additional tabs, just include more headers."
}

// All our key words are included in this code snippet
// The idea is that we can insert this section and then delete the words we aren't interested in
// If words are missing then they can be added to the document, and then also added to the code snippet
// Much the same way that words can be added to the spell-check extension.
"Insert list of category words": {
"scope": "quarto,markdown,yaml",
"prefix": "category_keywords",
"body": [
"- api"
"- backend"
"- blogs"
"- code snippets"
"- communication"
"- container"
"- contributing"
"- copyright"
"- culture"
"- database"
"- development"
"- documentation"
"- frontend"
"- github"
"- implementation"
"- installation"
"- licensing"
"- management"
"- markdown"
"- organization"
"- programming"
"- repositories"
"- reviewing"
"- software"
"- software architecture"
"- standardisation"
"- structure"
"- team work"
"- teamworking"
"- technology"
"- templates"
"- tools"
"- vs code"
"- web"
"- website"
"- workflow"
"- writing"
],
"description": "Insert list of category words"
}
// Place your snippets for Quarto here.
// Each snippet is defined under a snippet name and has a prefix, body and description.
// The prefix is what is used to trigger the snippet and the body will be expanded and inserted.
// Possible variables are:
//
// - $1 and $2 for tab stops,
// - $0 for the final cursor position, and
// - ${1:label}, ${2:another} for placeholders
//
// Placeholders with the same ids are connected.
//
// How to use the code snippets:
// After you have set the above settings, a suggestion for one of the code snippets below will pop up automatically, when
// you start writing the prefix. Press "Enter" or "Tab" to insert the code snippet.
"Insert TODO formatting": {
"scope": "quarto,markdown",
"prefix": "TODO",
"body": [
"<!-- TODO: ${0:Write text here} -->"
],
"description": "Insert TODO formatting"
},
"Insert bash formatted text": {
"scope": "quarto,markdown",
"prefix": "bash",
"body": [
"``` bash",
"${0:Write text here}",
"```"
],
"description": "Insert bash formatted text"
},
"Insert YAML header for blogs": {
"scope": "quarto,markdown",
"prefix": "post_yaml",
"body": [
"---",
"title: \"\"",
"description: \"Our reasons for ...\"",
"author: \"\"",
"date: last-modified",
"categories:",
" ${0:Type 'category_keywords' to insert categories}",
"---"
],
"description": "Insert YAML header for Quarto blog posts."
},
"Insert a hidden comment section": {
"scope": "quarto,markdown",
"prefix": "hidden",
"body": [
"::: content-hidden",
"${0:Write comments here}",
":::"
],
"description": "Insert a hidden content section"
},
"Insert a 2 col table": {
"scope": "quarto,markdown",
"prefix": "tbl2",
"body": [
"|${1:title} |${0:title} |",
"| --- | --- |",
"| | |"
],
"description": "Insert a 2 col table"
},
"Insert a 3 col table": {
"scope": "quarto,markdown",
"prefix": "tbl3",
"body": [
"|${1:title} |${2:title} |${0:title} |",
"| --- | --- | --- |",
"| | | |"
],
"description": "Insert a 3 col table"
},
"Insert video": {
"scope": "quarto,markdown",
"prefix": "video",
"body": [
"{{< video ${0:Insert link here} >}}"
],
"description": "Insert video that will be shown"
},
"Insert paneltab": {
"scope": "quarto,markdown",
"prefix": "paneltab",
"body": [
"::: panel-tabset",
"### ${0:Header}",
"",
"${1:Text body}",
"",
"### ${2:Header}",
"",
"${3:Text body}",
":::"
],
"description": "Insert paneltab (including two tabs here). If you want additional tabs, just include more headers."
},
// All our category words are included in this code snippet
// The idea is that we can insert this section and then delete the words we aren't interested in
// If words are missing then they can be added to the document, and then also added to the code snippet
// Much the same way that words can be added to the spell-check extension.
"Insert list of category words": {
"scope": "quarto,markdown,yaml",
"prefix": "decision_categories",
"body": [
"- backend",
"- code snippets",
"- communicate",
"- container",
"- contribute",
"- collaborate",
"- database",
"- deploy",
"- dependencies",
"- develop",
"- document",
"- front end",
"- framework",
"- git",
"- install",
"- license",
"- manage",
"- organize",
"- standardise",
"- style",
"- web",
"- workflow",
"- write"
],
"description": "Insert list of category words"
}
}
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
@_default:
just --list --unsorted

# Generate PNG images from PlantUML files
generate-puml:
# Generate SVG images from all PlantUML files
generate-puml-all:
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/*.puml"

# Generate SVG image from specific PlantUML file
generate-puml name:
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/{{name}}.puml"

# Build the website using Quarto
build-website:
docker run --rm -v $(pwd):/site -w /site ghcr.io/quarto-dev/quarto:latest quarto render