Skip to content

Commit a4056e5

Browse files
committed
chore: clean up stale template refs and update SHA pins
- Remove deleted template references from repo-sync.yml - Remove static sync.yml (dynamically generated at runtime) - Remove issue template references from CONTRIBUTING.md - Update workflow template and apply-org-config SHA to main HEAD
1 parent 43891e8 commit a4056e5

9 files changed

Lines changed: 15 additions & 36 deletions

File tree

.github/sync.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/ci-markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919

20-
- uses: h13/.github/actions/apply-org-config@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
20+
- uses: h13/.github/actions/apply-org-config@43891e8893e29bdb093ee60d2ab014dae9296593 # main
2121
with:
2222
config-file: .markdownlint-cli2.yaml
2323

.github/workflows/repo-sync.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,29 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1818

19-
- name: Generate sync config from all org repos
19+
- name: Generate sync config from Node.js repos
2020
env:
2121
GH_TOKEN: ${{ secrets.REPO_SYNC_TOKEN }}
2222
run: |
2323
set -euo pipefail
2424
25-
ALL_REPOS=$(gh repo list h13 --no-archived --json name -q '.[].name' \
26-
| grep -v '^\\.github$' \
27-
| sort \
28-
| awk '{printf " h13/%s\n", $0}')
29-
3025
NODE_REPOS=$(gh repo list h13 --no-archived --json name,primaryLanguage \
3126
-q '.[] | select(.primaryLanguage.name == "TypeScript" or .primaryLanguage.name == "JavaScript") | .name' \
3227
| sort \
3328
| awk '{printf " h13/%s\n", $0}')
3429
30+
if [ -z "$NODE_REPOS" ]; then
31+
echo "No Node.js repos found. Skipping sync."
32+
exit 0
33+
fi
34+
3535
{
3636
echo "group:"
3737
echo " - repos: |"
38-
echo "$ALL_REPOS"
38+
echo "$NODE_REPOS"
3939
echo " files:"
40-
echo " - source: sync/.github/PULL_REQUEST_TEMPLATE.md"
41-
echo " dest: .github/PULL_REQUEST_TEMPLATE.md"
42-
echo " - source: sync/.github/ISSUE_TEMPLATE/bug_report.yml"
43-
echo " dest: .github/ISSUE_TEMPLATE/bug_report.yml"
44-
echo " - source: sync/.github/ISSUE_TEMPLATE/feature_request.yml"
45-
echo " dest: .github/ISSUE_TEMPLATE/feature_request.yml"
46-
if [ -n "$NODE_REPOS" ]; then
47-
echo " - repos: |"
48-
echo "$NODE_REPOS"
49-
echo " files:"
50-
echo " - source: sync/.github/workflows/publish.yml"
51-
echo " dest: .github/workflows/publish.yml"
52-
fi
40+
echo " - source: sync/.github/workflows/publish.yml"
41+
echo " dest: .github/workflows/publish.yml"
5342
} > .github/sync.yml
5443
5544
echo "Generated sync config:"

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ All repositories use [Renovate](https://docs.renovatebot.com/) for automated dep
2323

2424
## Reporting Issues
2525

26-
- **Bugs**: Use the "Bug report" issue template
27-
- **Features**: Use the "Feature request" issue template
2826
- **Security**: See [SECURITY.md](SECURITY.md) — do not open a public issue

workflow-templates/ci-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ on:
77

88
jobs:
99
ci:
10-
uses: h13/.github/.github/workflows/ci-go.yml@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
10+
uses: h13/.github/.github/workflows/ci-go.yml@43891e8893e29bdb093ee60d2ab014dae9296593 # main

workflow-templates/ci-markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ on:
77

88
jobs:
99
ci:
10-
uses: h13/.github/.github/workflows/ci-markdown.yml@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
10+
uses: h13/.github/.github/workflows/ci-markdown.yml@43891e8893e29bdb093ee60d2ab014dae9296593 # main

workflow-templates/ci-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ on:
77

88
jobs:
99
ci:
10-
uses: h13/.github/.github/workflows/ci-node.yml@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
10+
uses: h13/.github/.github/workflows/ci-node.yml@43891e8893e29bdb093ee60d2ab014dae9296593 # main

workflow-templates/ci-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ on:
77

88
jobs:
99
ci:
10-
uses: h13/.github/.github/workflows/ci-php.yml@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
10+
uses: h13/.github/.github/workflows/ci-php.yml@43891e8893e29bdb093ee60d2ab014dae9296593 # main

workflow-templates/ci-terraform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ on:
77

88
jobs:
99
ci:
10-
uses: h13/.github/.github/workflows/ci-terraform.yml@a256ea2f24f07e309b2cdfc41e15bd5381237cdd # main
10+
uses: h13/.github/.github/workflows/ci-terraform.yml@43891e8893e29bdb093ee60d2ab014dae9296593 # main

0 commit comments

Comments
 (0)