Skip to content

Commit

Permalink
Merge pull request #19 from ralphschuler/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
ralphschuler authored Nov 26, 2023
2 parents 9b22830 + ed2b08f commit b719199
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 34 deletions.
9 changes: 9 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: bug
description: Something isn't working
color: d73a4a
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
15 changes: 15 additions & 0 deletions .github/workflows/assigned-pulls-todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Move assigned pull requests into To do

on:
pull_request:
types: [assigned]

jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}
58 changes: 25 additions & 33 deletions .github/workflows/comment-to-issue.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
name: Create issues from TODOs

on:
workflow_dispatch:
inputs:
importAll:
default: false
required: false
type: boolean
description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing.
push:
branches:
- main
issues:
types: [labeled]
issue_comment:
types: [created]
pull_request_target:
types: [labeled]

permissions:
contents: write
issues: write
pull-requests: write
repository-projects: read
contents: read

jobs:
autopr:
todos:
runs-on: ubuntu-latest

steps:
- name: Install jq
run: sudo apt-get install jq
- name: Check if label was added by a collaborator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
is_collaborator=$(curl -s -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }}" | jq -r '.message')
- uses: actions/checkout@v3

if [ "$is_collaborator" == "Not Found" ]; then
echo "Label not added by a collaborator. Skipping action."
exit 78
fi
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 1
- name: AutoPR
uses: irgolic/AutoPR@main
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
base_branch: main
- name: Run Issue Bot
uses: derjuulsn/todo-issue@main
with:
blobLines: 10
blobLinesBefore: 5
caseSensitive: false
reopenClosed: true
keywords: 'TODO, BUG, FIXME, HACK, NOTE, REVIEW, OPTIMIZE, OPTIMISE, IDEA, QUESTION, TEMP, DEBUG, TEST'
excludePattern: '^(node_modules/)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/fix-spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Fix Spelling

on:
- push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: sobolevn/misspell-fixer-action@master
- uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Fixes by misspell-fixer'
title: 'Typos fix by misspell-fixer'
20 changes: 20 additions & 0 deletions .github/workflows/issue-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
# The issues event below is only needed for the default (auto) mode,
# you can remove it otherwise
issues:
types: [ assigned ]
# The issue_comment event below is only needed for the ChatOps mode,
# you can remove it otherwise
issue_comment:
types: [ created ]
pull_request:
types: [ closed ]

jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/open-issue-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Move new issues into Triage

on:
issues:
types: [opened]

jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: Backlog
column: Triage
repo-token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync labels
on:
push:
branches:
- main
paths:
- ./.github/labels.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
manifest: ./.github/labels.yml
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"docs:all": "yarn docs:build; yarn docs:bundle:markdown && yarn docs:bundle:html",
"docs:build": "yarn workspaces foreach -Apt run docs",
"docs:bundle:markdown": "yarn typedoc --plugin typedoc-plugin-markdown --plugin typedoc-github-wiki-theme --out docs/markdown --entryPointStrategy merge \"./**/docs/*.json\"",
"docs:bundle:html": "yarn typedoc --out docs/html --theme ./node_modules/typedoc-neo-theme/bin/default --entryPointStrategy merge \"./**/docs/*.json\"",
"docs:bundle:html": "yarn typedoc --out docs/html --theme just-the-docs --plugin typedoc-plugin-markdown --entryPointStrategy merge \"./**/docs/*.json\"",
"publish": "yarn workspaces foreach -Apt run publish",
"husky:install": "husky install",
"prepare": "yarn husky:install && yarn workspaces foreach -Apt run prepare",
Expand All @@ -34,6 +34,7 @@
"husky": "^8.0.3",
"typedoc": "^0.25.3",
"typedoc-github-wiki-theme": "^1.1.0",
"typedoc-just-the-docs-theme": "^0.0.1",
"typedoc-neo-theme": "^1.1.1",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc-plugin-rename-defaults": "^0.7.0"
Expand Down
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3327,6 +3327,7 @@ __metadata:
tsx: "npm:^4.1.4"
typedoc: "npm:^0.25.3"
typedoc-github-wiki-theme: "npm:^1.1.0"
typedoc-just-the-docs-theme: "npm:^0.0.1"
typedoc-neo-theme: "npm:^1.1.1"
typedoc-plugin-markdown: "npm:^3.17.1"
typedoc-plugin-rename-defaults: "npm:^0.7.0"
Expand Down Expand Up @@ -3709,6 +3710,16 @@ __metadata:
languageName: node
linkType: hard

"typedoc-just-the-docs-theme@npm:^0.0.1":
version: 0.0.1
resolution: "typedoc-just-the-docs-theme@npm:0.0.1"
peerDependencies:
typedoc: ">=0.22.9"
typedoc-plugin-markdown: ">=3.11.10"
checksum: da5a3831796e839d60930b74ca618afebf52aafe7c51707e58c4eeaa6efc63f9e11a6a8678b512d158f34736baa026974458922871fd75e7dff75e94f0f82e58
languageName: node
linkType: hard

"typedoc-neo-theme@npm:^1.1.1":
version: 1.1.1
resolution: "typedoc-neo-theme@npm:1.1.1"
Expand Down

0 comments on commit b719199

Please sign in to comment.