Skip to content

Commit 762daec

Browse files
committed
Merge branch 'migrating-from-innersource-to-opensource' of github.com:jeffabailey/InnerSourcePatterns into migrating-from-innersource-to-opensource
2 parents ece0f36 + 628a505 commit 762daec

27 files changed

+2665
-696
lines changed

.github/workflows/book.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ 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:
3430
- uses: actions/checkout@v5
3531
- name: Use Node.js
@@ -40,20 +36,30 @@ jobs:
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/[email protected]
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/link-checker-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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: |
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: Overview Complete
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
overviewComplete:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
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/pattern-metrics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}'

.lycheeignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ 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.
1515
https://github.com/trieshard/source-strategy-assessment/blob/master/framework.md
16-
https://dl.acm.org/doi/10.5555/3158161.3158175
16+
https://dl.acm.org/doi/10.5555/3158161.3158175
17+
https://retromat.org/en/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ Our mission
9797
* [Walk the InnerSource talk](/patterns/1-initial/walk-the-innersource-talk.md) - *Teams across the organization are encouraged to adopt InnerSource principles such as working openly, sharing code, and collaborating transparently. But, if the team behind the InnerSource initiative doesn’t follow these practices themselves, it undermines credibility and adoption. Therefore, this team should lead by example: documenting their decisions as code, working in the open, and treating their work as an InnerSource project to build trust and show others how it’s done.*
9898
* [Require InnerSource before Open Source](/patterns/1-initial/innersource-before-open-source.md) - *Maintaining and managing open source projects can be challenging for organizations, due to a lack of internal infrastructure and people with the knowledge of the required collaboration practices. By requiring projects to be InnerSource before becoming open source, teams have time to establish the necessary internal support, governance, and collaboration skills needed for successful community engagement.*
9999
* [AI Code Generation Context](patterns/1-initial/ai-code-generation-context.md) - *AI tools generate code that diverges from project standards and architectural patterns. Provide an AI Code Generation Context within the repositories to guide AI tools in producing contributions that align with existing project conventions, reducing review friction and maintaining code consistency.*
100+
* [InnerSource as a Career Booster](patterns/1-initial/innersource-as-career-booster.md) - *Many employees wonder how contributing to InnerSource projects benefits their careers beyond their immediate team objectives. By engaging in InnerSource, individuals expand their skills, grow their network, increase visibility across the organization, and unlock new career opportunities.*
101+
* [Migrating from InnerSource to Open Source](patterns/1-initial/migrating-from-innersource-to-open-source.md) - *TBD*
100102

101103
<!--
102104
NOTE: The 'Initial' Patterns below don't have a Patlet yet, which is essential for readers to quickly browse our patterns.
112 KB
Loading

0 commit comments

Comments
 (0)