Skip to content

Commit 91594b8

Browse files
authored
Merge branch 'main' into governance
2 parents 9898430 + a630d3e commit 91594b8

Some content is hidden

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

47 files changed

+2152
-20
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This book uses the [Goal-Question-Metric] approach to documenting InnerSource me
2323
The full graph of relationships is visible in this [graph].
2424

2525
Add in your scenarios by copying this [goal template], [question template], and/or [metric template], filling them out, and submitting them in pull request.
26-
After successful merge, a Trusted Committer will manually[^1] add those to the [graph].
26+
After successful merge, a [Trusted Committer](https://github.com/orgs/InnerSourceCommons/teams/ispo-working-group-trusted-committers) will manually[^1] add those to the [graph].
2727
If interested, feel free to [edit the MermaidJS source] of the graph on your own!
2828

2929
By adding in your scenarios to the graph, you will be able to see how others approach and interact with them.
@@ -37,11 +37,11 @@ When using titles in Markdown, use # for main title, ## for the second header ti
3737
At that time this manual step will no longer be needed.
3838

3939
[Goal-Question-Metric]: https://en.wikipedia.org/wiki/GQM
40-
[goals]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/master/measuring/goals
41-
[questions]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/master/measuring/questions
42-
[metrics]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/master/measuring/metrics
43-
[goal template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/goals/gqm_goal_template.md
44-
[question template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/questions/gqm_question_template.md
45-
[metric template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/metrics/gqm_metric_template.md
46-
[edit the MermaidJS source]: https://github.com/InnerSourceCommons/managing-inner-source-projects/edit/master/measuring/use_gqm.md
47-
[graph]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/use_gqm.md
40+
[goals]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/main/measuring/goals
41+
[questions]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/main/measuring/questions
42+
[metrics]: https://github.com/InnerSourceCommons/managing-inner-source-projects/tree/main/measuring/metrics
43+
[goal template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/goals/gqm_goal_template.md
44+
[question template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/questions/gqm_question_template.md
45+
[metric template]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/metrics/gqm_metric_template.md
46+
[edit the MermaidJS source]: https://github.com/InnerSourceCommons/managing-inner-source-projects/edit/main/measuring/use_gqm.md
47+
[graph]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/use_gqm.md

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Managing InnerSource Projects book
22

3-
<img src="managing-innersource-projects-cover.jpg" title="Managing InnerSource Projects">
3+
![Managing InnerSource Projects](managing-innersource-projects-cover.jpg)
44

55
This book is intended to bring, from a managerial perspective, the several aspects needed
66
when introducing InnerSource methodologies into enterprises.
@@ -12,7 +12,7 @@ within this respect in a way that this is useful for third parties. For this, we
1212
actively looking for reviewers that can help in this process.
1313
For those that have already contributed to the book, thanks a lot!
1414

15-
You can find more information about the process in the [contributing section](https://github.com/dicortazar/managing-inner-source-projects/blob/master/CONTRIBUTING.md).
15+
You can find more information about the process in the [contributing section](https://github.com/dicortazar/managing-inner-source-projects/blob/main/CONTRIBUTING.md).
1616

1717
## Who is fostering this initiative?
1818

@@ -42,7 +42,6 @@ For further reading, we encourage you to participate in the [InnerSource Commons
4242
a non-profit foundation where dozens of companies are already sharing experiences and working to
4343
improve their craft of InnerSource.
4444

45-
4645
## Acknowledgements
4746

4847
Each chapter in the book is authored and reviewed by different people. That information can

SUMMARY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@
2525
* [References](measuring/references.md)
2626
* [Authors and Reviewers](measuring/authors.md)
2727
* [Governance](governance/governance.md)
28+
* [Tooling](tooling/innersource-tooling.md)
29+
* [GitHub Strategy](tooling/github-strategy.md)
30+
* [GitHub Configuration](tooling/github-configuration.md)
31+
* [GitLab Strategy](tooling/gitlab-strategy.md)
32+
* [GitLab Configuration](tooling/gitlab-configuration.md)
33+
* [Authors and Reviewers](tooling/authors.md)

measuring/questions/who-uses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[⬑ back to the overall graph](../use_gqm.md)
22

3-
# Question: Who uses the InnerSource project?
3+
# **Question:** Who uses the InnerSource project?
44

55
Depending on the InnerSource project, usage of the project could look something like:
66

measuring/use_gqm.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
*An overview of the Goals, Questions, and Metrics (GQM) catalog.*
44

5-
This page works better in GitHub; [click here](https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/use_gqm.md).
5+
This page works better in GitHub; [click here](https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/use_gqm.md).
66

77
```mermaid
88
graph LR;
99
subgraph GQM[Goals, Questions, Metrics]
10-
find-projects[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/goals/find-projects.md'>Find Projects</a>] --> who-uses[Who Uses]
11-
reduce-duplication[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/goals/reduce-duplication.md'>Reduce Duplication</a>] --> who-uses[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/questions/who-uses.md'>Who Uses</a>]
12-
who-uses --> usage-count[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/metrics/usage-count.md'>Usage Count</a>]
10+
find-projects[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/goals/find-projects.md'>Find Projects</a>] --> who-uses[Who Uses]
11+
reduce-duplication[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/goals/reduce-duplication.md'>Reduce Duplication</a>] --> who-uses[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/questions/who-uses.md'>Who Uses</a>]
12+
who-uses --> usage-count[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/metrics/usage-count.md'>Usage Count</a>]
1313
find-projects --> who-contributes
14-
who-contributes[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/questions/who-contributes.md'>Who Contributes</a>] --> code-contributions[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/measuring/metrics/code-contributions.md'>Code Contributions</a>]
14+
who-contributes[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/questions/who-contributes.md'>Who Contributes</a>] --> code-contributions[<a href='https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/measuring/metrics/code-contributions.md'>Code Contributions</a>]
1515
end
1616
subgraph Legend
1717
direction TB
@@ -35,5 +35,4 @@ Add your goals, questions, and metrics into this graph! It will help you to see
3535
You may get new ideas of what metrics answer the questions you have or what additional goals your questions can support.
3636
See [CONTRIBUTING.md#metrics].
3737

38-
[CONTRIBUTING.md#metrics]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/master/CONTRIBUTING.md#metrics
39-
38+
[CONTRIBUTING.md#metrics]: https://github.com/InnerSourceCommons/managing-inner-source-projects/blob/main/CONTRIBUTING.md#metrics

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/gqm_gen/.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
*.pid.lock
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# nyc test coverage
19+
.nyc_output
20+
21+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
22+
.grunt
23+
24+
# node-waf configuration
25+
.lock-wscript
26+
27+
# Compiled binary addons (http://nodejs.org/api/addons.html)
28+
build/Release
29+
30+
# Dependency directories
31+
node_modules
32+
jspm_packages
33+
34+
# Optional npm cache directory
35+
.npm
36+
37+
# Optional REPL history
38+
.node_repl_history
39+
40+
# TypeScript
41+
*.map
42+
*.js
43+
44+
# Project generated files
45+
*.pdf
46+
*.xlsx
47+
slides/*.md

scripts/gqm_gen/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Goal, Question, Metrics Generator
2+
3+
Creates a Mermaid diagram from Goal, Question, Metrics (GQM) Markdown files.
4+
5+
## Usage
6+
7+
Builds the mermaid diagram and outputs it to stdout.
8+
9+
```bash
10+
npm install
11+
npm run --silent start
12+
```

scripts/gqm_gen/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as Commonmark from 'commonmark';
2+
export declare function getLinks(parsed: Commonmark.Node): {
3+
url: string | null;
4+
text: string | null | undefined;
5+
}[];

scripts/gqm_gen/index.test.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import * as Commonmark from "commonmark";
2+
import test from "node:test";
3+
import assert from "node:assert";
4+
import { FileLink, Graph, LinkType } from "./types";
5+
import {
6+
getLinks,
7+
getFileLinks,
8+
generateMermaidDiagram,
9+
getGQMFileLinks,
10+
} from "./index";
11+
12+
test("can get links", () => {
13+
const node = new Commonmark.Node("paragraph");
14+
const links = getLinks(node);
15+
assert(links.length === 0);
16+
});
17+
18+
test("can get links from file", () => {
19+
const fileLinks: FileLink[] = getFileLinks(
20+
LinkType.GOAL,
21+
"../../measuring/goals/"
22+
);
23+
assert(fileLinks.length > 0);
24+
});
25+
26+
test("can generate mermaid diagram", () => {
27+
const graph: Graph = {
28+
nodes: [],
29+
edges: [],
30+
};
31+
const diagram = generateMermaidDiagram(graph);
32+
assert(diagram.indexOf("graph TB") > 1);
33+
});
34+
35+
test("can generate mermaid diagram from file", { only: true }, () => {
36+
const graph = getGQMFileLinks();
37+
38+
const diagram = generateMermaidDiagram(graph);
39+
console.log(diagram);
40+
assert(diagram.indexOf("graph LR;") > 1);
41+
});

0 commit comments

Comments
 (0)