Skip to content

Commit 55bdc91

Browse files
authored
Merge branch 'InnerSourceCommons:main' into promote-discover-your-innersource
2 parents 990bdb3 + 0917427 commit 55bdc91

File tree

133 files changed

+7170
-976
lines changed

Some content is hidden

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

133 files changed

+7170
-976
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/ISSUE_TEMPLATE/pattern-draft.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ assignees: ''
77

88
---
99

10-
This is the most basic template for a new pattern.
11-
See our full pattern syntax [here](https://github.com/InnerSourceCommons/InnerSourcePatterns/blob/main/meta/pattern-template.md).
10+
If you don't know how to get started, try to [draft an InnerSource Pattern with AI](https://github.com/InnerSourceCommons/InnerSourcePatterns/blob/main/meta/pattern-drafts-with-ai.md).
11+
Then you can paste the result into the issue below, do manual edits as you see fit and submit it.
12+
13+
Below you see a basic template for a new pattern.
14+
For the full details, see our [pattern template](https://github.com/InnerSourceCommons/InnerSourcePatterns/blob/main/meta/pattern-template.md).
1215

1316
## Title
1417

1518
Short Title Here
1619

1720
## Patlet / Summary
1821

19-
Concise 1-2 sentence description of the problem and solution.
22+
Concise 2 sentence description of the problem and solution.
23+
The 1st sentence describes the problem. The 2nd sentence describes the solution.
2024

2125
## Problem
2226

@@ -59,7 +63,7 @@ May mention:
5963
* A particular business
6064
* Anonymized instances ex: "3 companies have proven that this is a good solution" or "A large financial services org...".
6165

62-
## Status
66+
## Status
6367

6468
Initial
6569

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
- package-ecosystem: "bundler"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adyen
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Check if all patterns are listed in README.md
2+
name: All Patterns Listed
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
all-patterns-listed:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Check if all patterns are listed in README.md
19+
run: |
20+
README="README.md"
21+
22+
# Ensure README.md exists
23+
if [[ ! -f "$README" ]]; then
24+
echo "Error: $README not found!"
25+
exit 1
26+
fi
27+
28+
missing=0
29+
30+
for file in patterns/*/*.md; do
31+
if grep -qF "$file" "$README"; then
32+
echo "✔ Found: $file"
33+
else
34+
echo "✘ Missing: $file"
35+
echo "✘ Pattern file not listed in README.md: $file" >> $GITHUB_STEP_SUMMARY
36+
missing=$((missing + 1))
37+
fi
38+
done
39+
40+
if [[ $missing -gt 0 ]]; then
41+
echo "Some patterns are missing from $README."
42+
exit 1
43+
else
44+
echo "All patterns are listed in $README."
45+
exit 0
46+
fi

.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@v4
21+
- uses: actions/checkout@v6
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@v5
36+
uses: stefanzweifel/git-auto-commit-action@v7
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@v5
40+
uses: peter-evans/create-issue-from-file@v6
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: 27 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:
@@ -25,34 +26,40 @@ jobs:
2526
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
2627
contents: write
2728

28-
strategy:
29-
matrix:
30-
folder: [".", "./gl", "./pt-br"]
31-
3229
steps:
33-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3431
- name: Use Node.js
35-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@v6
3633
with:
3734
node-version: 20
3835
cache: 'npm'
3936
cache-dependency-path: pattern-categorization/package-lock.json
4037
- name: Install Node.js dependencies
4138
run: npm install
42-
- name: Run Markmap
43-
run: npx markmap --no-toolbar ${{ matrix.folder }}/innersource-program-mind-map.md -o ${{ matrix.folder }}/innersource-program-mind-map.html
44-
- name: Screenshot Markmap Website
45-
id: screenshot-generator
46-
uses: swinton/screenshot-website@v1.x
47-
with:
48-
source: pattern-categorization/${{ matrix.folder }}/innersource-program-mind-map.html #strange syntax here. seems to not respect the working-directory default either
49-
destination: innersource-program-mind-map.png
50-
full-page: false
51-
- name: Copy Screenshot
52-
run: cp ${{ steps.screenshot-generator.outputs.path }} ${{ matrix.folder }}
53-
- name: Reduce Screenshot Size (PNG)
54-
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
5562
- name: Commit Changes
56-
uses: stefanzweifel/git-auto-commit-action@v5
63+
uses: stefanzweifel/git-auto-commit-action@v7
5764
with:
5865
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@v4
20+
- uses: actions/checkout@v6
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
linkChecker:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Get changed files
2323
id: changed-files
24-
uses: tj-actions/changed-files@v45
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@v4
32+
uses: actions/cache@v5
3333
with:
3434
path: .lycheecache
3535
key: cache-lychee-${{ github.sha }}
@@ -41,6 +41,7 @@ jobs:
4141
with:
4242
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}}

0 commit comments

Comments
 (0)