Skip to content

Commit d48955a

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

File tree

52 files changed

+3225
-755
lines changed

Some content is hidden

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

52 files changed

+3225
-755
lines changed

.github/workflows/book.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
language: [en, ja, zh, pt-br, gl, es]
1919

2020
steps:
21-
- uses: actions/checkout@v4
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@v5
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/generate-mindmap.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,40 @@ jobs:
2626
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
2727
contents: write
2828

29-
strategy:
30-
matrix:
31-
folder: [".", "./gl", "./pt-br", "./es"]
32-
3329
steps:
34-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3531
- name: Use Node.js
36-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@v5
3733
with:
3834
node-version: 20
3935
cache: 'npm'
4036
cache-dependency-path: pattern-categorization/package-lock.json
4137
- name: Install Node.js dependencies
4238
run: npm install
43-
- name: Run Markmap
44-
run: npx markmap --no-toolbar ${{ matrix.folder }}/innersource-program-mind-map.md -o ${{ matrix.folder }}/innersource-program-mind-map.html
45-
- name: Screenshot Markmap Website
46-
id: screenshot-generator
47-
uses: swinton/screenshot-website@v1.x
48-
with:
49-
source: pattern-categorization/${{ matrix.folder }}/innersource-program-mind-map.html #strange syntax here. seems to not respect the working-directory default either
50-
destination: innersource-program-mind-map.png
51-
full-page: false
52-
- name: Copy Screenshot
53-
run: cp ${{ steps.screenshot-generator.outputs.path }} ${{ matrix.folder }}
54-
- name: Reduce Screenshot Size (PNG)
55-
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
5662
- name: Commit Changes
57-
uses: stefanzweifel/git-auto-commit-action@v5
63+
uses: stefanzweifel/git-auto-commit-action@v6
5864
with:
5965
commit_message: Re-creating markmap and screenshot

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
language: [ja, zh, pt-br, gl, es]
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
fetch-depth: '0'
2323
- name: Check consistency and create issue

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
linkChecker:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
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@v46
24+
uses: tj-actions/changed-files@v47
2525

2626
- name: Filter markdown files only
2727
run: |

.github/workflows/link-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
linkChecker:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

2020
- name: Restore lychee cache
2121
uses: actions/cache@v4

.github/workflows/lint-patterns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
validate:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
- name: Problem Matcher for markdownlint-cli
2323
uses: xt0rted/markdownlint-problem-matcher@v3
2424
- name: Lint pattern files (markdown)

.github/workflows/markdownlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
- name: Use Node.js
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v5
2626
with:
2727
node-version: 20
2828
- name: Run Markdownlint

.github/workflows/pattern-metrics.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
3030
3131
- name: Check out the code so we can get the CODEOWNERS names
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333
with:
3434
sparse-checkout: |
3535
.github/CODEOWNERS
@@ -53,7 +53,7 @@ jobs:
5353
echo "CODEOWNERS_FILTER=$CODEOWNERS_FILTER" >> "$GITHUB_ENV"
5454
5555
- name: Run issue-metrics tool for issues
56-
uses: github/issue-metrics@v2
56+
uses: github/issue-metrics@v3
5757
env:
5858
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
SEARCH_QUERY: 'repo:InnerSourceCommons/InnerSourcePatterns is:issue created:${{ env.last_month }} -reason:"not planned" ${{ env.CODEOWNERS_FILTER }}'
@@ -66,7 +66,7 @@ jobs:
6666
mv ./issue_metrics.md ready_to_merge_issues_report.md
6767
6868
- name: Run issue-metrics tool for PRs
69-
uses: github/issue-metrics@v2
69+
uses: github/issue-metrics@v3
7070
env:
7171
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7272
SEARCH_QUERY: 'repo:InnerSourceCommons/InnerSourcePatterns is:pr created:${{ env.last_month }} -reason:"not planned" ${{ env.CODEOWNERS_FILTER }}'

.github/workflows/vale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919

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

2323
- name: Vale Linting
2424
uses: errata-ai/vale-action@v2

.lycheeignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ https://m.dotdev.co/how-to-write-a-readme-that-rocks-bc29f279611a
1212
https://www.chathamhouse.org/about-us/chatham-house-rule
1313
https://www.linkedin.com/in
1414
# from source-code-inventory.md / no longer reachable but we want to keep the link in the pattern in case we find it again.
15-
https://github.com/trieshard/source-strategy-assessment/blob/master/framework.md
15+
https://github.com/trieshard/source-strategy-assessment/blob/master/framework.md
16+
https://dl.acm.org/doi/10.5555/3158161.3158175
17+
https://retromat.org/en/

0 commit comments

Comments
 (0)