Skip to content

Commit a6d5851

Browse files
committed
Merge remote-tracking branch 'origin/main' into dicortazar-patch-1
2 parents be526d2 + 7f8f5bd commit a6d5851

File tree

174 files changed

+9572
-6398
lines changed

Some content is hidden

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

174 files changed

+9572
-6398
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@
2020
/translation/gl/ @psanxiao
2121
/book/gl/ @psanxiao
2222
/pattern-categorization/gl/ @psanxiao
23+
/translation/es/ @ovas04
24+
/book/es/ @ovas04

.github/config.yml

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

55
# Comment to be posted to on first time issues
66
newIssueWelcomeComment: >
7-
[![Welcome Banner](https://zenodo.org/api/iiif/record:3695300:BannerWelcome.jpg/full/!750,750/0/default.jpg)](https://zenodo.org/record/3695300)](https://zenodo.org/record/3695300)
7+
[![Welcome Banner](https://zenodo.org/api/iiif/record:3695300:BannerWelcome.jpg/full/!750,750/0/default.jpg)](https://zenodo.org/record/3695300)
88
99
:tada: Welcome to _The InnerSource Commons_ community, and in particular to our patterns! :tada:
1010
We're really excited to have your input into the project! :sparkling_heart:

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/book.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
language: [en, ja, zh, pt-br, gl]
18+
language: [en, ja, zh, pt-br, gl, es]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v5
2222

2323
- uses: ruby/setup-ruby@v1
2424
with:
@@ -33,7 +33,7 @@ jobs:
3333
echo "Generated book for: ${{ matrix.language }}" >> $GITHUB_STEP_SUMMARY
3434
3535
- name: Commit updated toc.md for the book
36-
uses: stefanzweifel/git-auto-commit-action@v4
36+
uses: stefanzweifel/git-auto-commit-action@v6
3737
with:
3838
commit_message: Writing updated toc.md for the ${{ matrix.language }} book
3939
branch: ${{ github.head_ref }}

.github/workflows/contributor-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
SPONSOR_INFO: "true"
3838

3939
- name: Create issue
40-
uses: peter-evans/create-issue-from-file@v4
40+
uses: peter-evans/create-issue-from-file@v5
4141
with:
4242
title: "Monthly Metrics: Contributors ${{ env.START_DATE }}..${{ env.END_DATE }}"
4343
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-mindmap.yml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- "pattern-categorization/package.json"
1313
- "pattern-categorization/gl/*"
1414
- "pattern-categorization/pt-br/*"
15+
- "pattern-categorization/es/*"
1516

1617
defaults:
1718
run:
@@ -21,34 +22,44 @@ jobs:
2122
generate-mindmap:
2223
runs-on: ubuntu-latest
2324

24-
strategy:
25-
matrix:
26-
folder: [".", "./gl", "./pt-br"]
25+
permissions:
26+
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
27+
contents: write
2728

2829
steps:
29-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v5
3031
- name: Use Node.js
31-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v5
3233
with:
33-
node-version: 16
34+
node-version: 20
3435
cache: 'npm'
3536
cache-dependency-path: pattern-categorization/package-lock.json
3637
- name: Install Node.js dependencies
3738
run: npm install
38-
- name: Run Markmap
39-
run: npx markmap --no-toolbar ${{ matrix.folder }}/innersource-program-mind-map.md -o ${{ matrix.folder }}/innersource-program-mind-map.html
40-
- name: Screenshot Markmap Website
41-
id: screenshot-generator
42-
uses: swinton/screenshot-website@v1.x
43-
with:
44-
source: pattern-categorization/${{ matrix.folder }}/innersource-program-mind-map.html #strange syntax here. seems to not respect the working-directory default either
45-
destination: innersource-program-mind-map.png
46-
full-page: false
47-
- name: Copy Screenshot
48-
run: cp ${{ steps.screenshot-generator.outputs.path }} ${{ matrix.folder }}
49-
- name: Reduce Screenshot Size (PNG)
50-
run: npx optipng ${{ matrix.folder }}/innersource-program-mind-map.png
39+
- name: Disable AppArmor
40+
run: |
41+
# Disable AppArmor for unprivileged user namespaces (required for 'pageres')
42+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
43+
- name: Generate mindmap and take screenshot
44+
run: |
45+
# Loops over the top-level folder and all immediate sub-folders, except for "node_modules"
46+
for dir in . */; do
47+
# Skip node_modules
48+
[ "$(basename "$dir")" = "node_modules" ] && continue
49+
50+
echo "Creating mindmap PNG for: $dir"
51+
(
52+
# Create markmap HTML
53+
npx markmap --no-open --no-toolbar $dir/innersource-program-mind-map.md -o $dir/innersource-program-mind-map.html
54+
55+
# Take the screenshot
56+
npx pageres $dir/innersource-program-mind-map.html --overwrite --filename=$dir/innersource-program-mind-map 2560x1600
57+
58+
# Reduce Screenshot Size (PNG)
59+
npx optipng -silent $dir/innersource-program-mind-map.png
60+
)
61+
done
5162
- name: Commit Changes
52-
uses: stefanzweifel/git-auto-commit-action@v4
63+
uses: stefanzweifel/git-auto-commit-action@v6
5364
with:
5465
commit_message: Re-creating markmap and screenshot

.github/workflows/i18n-consistency-checker.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
language: [ja, zh, pt-br, gl]
18+
language: [ja, zh, pt-br, gl, es]
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v5
2121
with:
2222
fetch-depth: '0'
2323
- name: Check consistency and create issue
2424
id: check-consistency
2525
run: |
2626
# Declare the flags
27-
declare -A flags=( ["ja"]=":jp: Japanese" ["zh"]=":cn: Chinese" ["pt-br"]=":brazil: Brazilian Portuguese" ["gl"]="Galician")
27+
declare -A flags=( ["ja"]=":jp: Japanese" ["zh"]=":cn: Chinese" ["pt-br"]=":brazil: Brazilian Portuguese" ["gl"]="Galician" ["es"]=":es: Spanish" )
2828
2929
issue_title="${flags['${{matrix.language}}']}: Content Consistency Issue"
3030
@@ -86,4 +86,3 @@ jobs:
8686
fi
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-

.github/workflows/link-checker-prs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,33 @@ jobs:
1515
linkChecker:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v5
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Get changed files
2323
id: changed-files
24-
uses: tj-actions/changed-files@v32
24+
uses: tj-actions/changed-files@v47
2525

2626
- name: Filter markdown files only
2727
run: |
2828
md_files=`find ${{ steps.changed-files.outputs.all_changed_files }} -maxdepth 0 -name "*.md" | tr '\n' ' '`
2929
echo "MARKDOWN_FILES=$md_files" >> $GITHUB_ENV
3030
3131
- name: Restore lychee cache
32-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3333
with:
3434
path: .lycheecache
3535
key: cache-lychee-${{ github.sha }}
3636
restore-keys: cache-lychee-
3737

3838
- if: ${{ env.MARKDOWN_FILES != '' }}
3939
name: Link Checker
40-
uses: lycheeverse/lychee-action@v1.5.2
40+
uses: lycheeverse/lychee-action@v2
4141
with:
42-
args: --verbose --no-progress --exclude-mail --cache --max-cache-age 1d $MARKDOWN_FILES
42+
args: --verbose --no-progress --cache --max-cache-age 1d $MARKDOWN_FILES
4343
fail: true
44+
failIfEmpty: false
4445
jobSummary: true
4546
env:
4647
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/link-checker.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ on:
99
schedule:
1010
# * is a special character in YAML so you have to quote this string
1111
- cron: '30 8 * * 5'
12+
workflow_dispatch:
1213

1314
jobs:
1415
linkChecker:
1516
runs-on: ubuntu-latest
1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v5
1819

1920
- name: Restore lychee cache
20-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2122
with:
2223
path: .lycheecache
2324
key: cache-lychee-${{ github.sha }}
2425
restore-keys: cache-lychee-
2526

2627
- name: Link Checker
27-
uses: lycheeverse/lychee-action@v1.5.2
28+
uses: lycheeverse/lychee-action@v2
2829
with:
29-
args: --verbose --no-progress --exclude-mail --cache --max-cache-age 1d README.md patterns/ book/ translation/
30+
args: --verbose --no-progress --cache --max-cache-age 1d README.md patterns/ book/ translation/
3031
fail: true
3132
jobSummary: true
3233
env:

.github/workflows/lint-patterns.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
validate:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v5
2222
- name: Problem Matcher for markdownlint-cli
23-
uses: xt0rted/markdownlint-problem-matcher@v2
23+
uses: xt0rted/markdownlint-problem-matcher@v3
2424
- name: Lint pattern files (markdown)
2525
uses: avto-dev/markdown-lint@v1
2626
with:

0 commit comments

Comments
 (0)