Skip to content

Commit 7db20ca

Browse files
authored
Merge pull request #139 from Hack23/news2026
Update js-yaml dependency and enhance devcontainer setup
2 parents 2381976 + de3eac3 commit 7db20ca

File tree

93 files changed

+6471
-11198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+6471
-11198
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
},
4040

41-
"postCreateCommand": "npm install -g npm@latest typescript@latest eslint@latest && npm ci",
41+
"postCreateCommand": "npm install -g npm@latest typescript@latest eslint@latest && npm ci && gh extension install github/gh-aw",
4242
"shutdownAction": "none",
4343

4444
// Forward necessary ports

.github/aw/actions-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.43.18": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.43.18",
11+
"sha": "5988e5ce8019318837dfd26303351a4ba704a3c8"
12+
}
13+
}
14+
}

.github/workflows/compile-agentic-workflows.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
paths:
1212
- '.github/workflows/*.md'
1313
workflow_dispatch:
14-
env:
15-
GH_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
16-
GITHUB_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
17-
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
1814

1915
permissions:
2016
contents: write
@@ -35,7 +31,7 @@ jobs:
3531
- name: Checkout
3632
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3733
with:
38-
token: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
34+
token: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
3935

4036
- name: Setup Node.js
4137
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
@@ -54,7 +50,7 @@ jobs:
5450
echo "Skipping gh-aw installation"
5551
fi
5652
env:
57-
GH_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
53+
GH_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
5854

5955
- name: Compile Agentic Workflows
6056
id: compile
@@ -75,7 +71,7 @@ jobs:
7571
echo "Processing: $md_file"
7672
7773
# Check if gh aw command is available
78-
if command -v gh >/dev/null 2>&1 && gh aw --version >/dev/null 2>&1; then
74+
if command -v gh >/dev/null 2>&1 && gh aw compile --help >/dev/null 2>&1; then
7975
echo " Compiling with gh aw compile..."
8076
gh aw compile "$md_file" || {
8177
echo " ❌ Failed to compile $md_file"
@@ -100,7 +96,7 @@ jobs:
10096
echo "ℹ️ No workflows were compiled"
10197
fi
10298
env:
103-
GH_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}
99+
GH_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
104100

105101
- name: Check for changes
106102
id: check_changes

.github/workflows/news-article-generator.lock.yml

Lines changed: 41 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)