initial commit
All checks were successful
Markdown Embedder / agent-embed-markdown (push) Successful in 47s

This commit is contained in:
2026-01-10 04:51:34 +00:00
commit 864958ee45
15 changed files with 33705 additions and 0 deletions

8
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
updates:
- commit-message:
prefix: fix
directory: /
package-ecosystem: github-actions
schedule:
interval: daily
version: 2

23
.github/workflows/agent-issue.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
jobs:
agent-embed-issue:
if: contains(github.event.comment.body, 'solution:')
permissions:
contents: read
issues: read
runs-on:
- ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Send task to embedding agent
uses: https://git.yusufali.ca/actions/embed-issues@main
with:
api_token: ${{ secrets.AGENT_TOKEN }}
api_url: ${{ secrets.AGENT_API_URL }}
debug: false
name: Send Tasks to Agent
'on':
issue_comment:
types:
- created
- edited

21
.github/workflows/agent-markdown.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Markdown Embedder
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.md'
jobs:
agent-embed-markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Send task to coding agent
uses: https://git.yusufali.ca/actions/embed-markdown@main
with:
api_url: ${{ secrets.AGENT_API_URL }} # default: https://api.servc.io
api_token: ${{ secrets.AGENT_TOKEN }} # optional, required for authenticated API calls
debug: false

35
.github/workflows/changelog.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
jobs:
changelog:
name: changelog
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- id: previoustag
name: Get Latest Tag
run: |-
echo ::set-output name=tag::$(git describe --tags "$(git rev-list --tags --max-count=1)")
echo $(git describe --tags "$(git rev-list --tags --max-count=1)")
- id: changelog
if: github.ref_name == 'main'
name: Generate new Tag
uses: TriPSs/conventional-changelog-action@v6
with:
fallback-version: ${{ steps.previoustag.outputs.tag }}
git-url: ${{ github.server_url != 'https://github.com' && 'git.yusufali.ca' || 'github.com' }}
github-token: ${{ github.token }}
output-file: false
skip-ci: false
skip-commit: true
skip-version-file: true
tag-prefix: ''
name: CHANGELOG
'on':
workflow_dispatch: {}
permissions:
contents: write
run-name: CHANGELOG

33
.github/workflows/commit.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
jobs:
commitlint:
name: commitlint
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- uses: actions/setup-node@v6
with:
node-version: 23.1
- name: Install commitlint
run: |
if [ -f package.json ]; then
rm package*.json
fi
npm install -g @commitlint/cli @commitlint/config-conventional
if [ ! -f "commitlint.config.js" ]; then
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
fi
- if: github.event_name == 'push'
name: Lint Commit Message
run: commitlint --from=HEAD~1 --verbose
- if: github.event_name == 'pull_request'
name: Lint Pull Request
run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
name: COMMIT LINT
'on':
pull_request: {}
run-name: COMMIT LINT

View File

@@ -0,0 +1,55 @@
jobs:
dependabot:
if: github.event.pull_request.user.login == 'dependabot[bot]'
name: dependabot
runs-on:
- ubuntu-latest
steps:
- env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{github.event.pull_request.html_url}}
name: Enable auto-merge for Dependabot
run: gh pr merge --auto --merge "$PR_URL"
devopsbot:
if: github.event.pull_request.title == 'devopsbot update'
name: devopsbot
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- &id001
name: Setup GitHub CLI
uses: ksivamuthu/actions-setup-gh-cli@v3
- env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{github.event.pull_request.html_url}}
name: Enable auto-merge for Dependabot
run: gh pr merge --auto --merge "$PR_URL"
rennovatebot:
if: github.event.pull_request.user.login == 'renovate_bot'
name: rennovatebot
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- *id001
- env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{github.event.pull_request.html_url}}
name: Enable auto-merge for Dependabot
run: gh pr merge --auto --merge "$PR_URL"
name: Dependabot Auto-Merge
'on':
pull_request: {}
permissions:
contents: write
pull-requests: write
run-name: Dependabot Auto-Merge

24
.github/workflows/issue-agent.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
jobs:
dispatch:
if: contains(github.event.comment.body, '@bot')
permissions:
contents: read
issues: read
runs-on:
- ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Send task to coding agent
uses: https://git.yusufali.ca/automation/action@main
with:
api_token: ${{ secrets.AGENT_TOKEN }}
api_url: ${{ secrets.AGENT_API_URL }}
bot_route: codebot
debug: false
name: Send Tasks to Agent
'on':
issue_comment:
types:
- created
- edited

24
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: 'Unit Tests'
on:
pull_request:
workflow_dispatch:
issue_comment:
types:
- created
- edited
permissions:
contents: read
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Test Local Action
id: test
uses: ./
with:
debug: 'true'