Skip to content

Commit f28ef5b

Browse files
authored
Merge pull request github#54 from github/contributor-insights
Create contributor-insights.md
2 parents 91e3e2e + 9be2591 commit f28ef5b

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ We have used those as placeholder values where our policies point to internal on
3333
- [Commercial licenses](./docs/commercial-licenses.md)
3434
- [Maximize your open source presence on GitHub](./docs/org-presence-on-github.md)
3535
- [Measuring maintainer responsiveness and issue metrics](./docs/issue-metrics.md)
36+
- [Gaining insights into your contributors](./docs/contributor-insights.md)
3637
- [Internal OSPO newsletters](./newsletter%20template)
3738

3839
### Maintainers

docs/contributor-insights.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributor insights
2+
3+
![An image of earth, the community on GitHub, and an Octocat on the moon](https://github.com/github/github-ospo/blob/contributor-insights/images/community.jpg?raw=true)
4+
5+
Contributors are an essential part of a thriving open source community. Without them, it doesn't really feel like open source! In light of that, OSPOs and open source maintainers often research their contributors and monitor contributions as a way of indicating project health.
6+
7+
In the GitHub OSPO we have developed a tool that we use in order to get information on a project or organizations contributors. We maintain several open source repositories and have developed this action to empower maintainers to measure how many new and returning contributors and contributions have occurred over any given time period.
8+
9+
## Contributors action
10+
11+
Our goal as an OSPO is to use the contributors action in order to:
12+
13+
- **Identify candidates** for [onboarding new maintainers](https://github.blog/2023-06-01-elevating-open-source-contributors-to-open-source-maintainers/)
14+
- Make it easier to **say thank you to new and returning contributors**
15+
- **Signal when contributors are increasing or decreasing** in a given project
16+
- **Understand when projects need additional support** from an Open Source Programs Office (OSPO) or Foundation
17+
18+
### What can you measure?
19+
20+
With the contributors GitHub action, you can gather data on:
21+
22+
- The total number of contributors.
23+
- The total contributions made by these contributors.
24+
- The percentage of new contributors.
25+
- Individual contributor activity, including the number of commits.
26+
- How to sponsor your contributors via GitHub Sponsors.
27+
28+
The action protects contributor privacy by not supplying any information that is not publicly available on the user’s profile or a repository’s commit history.
29+
30+
### How to use the contributors action
31+
32+
Interested in implementing the contributors action in your project or organization? Here's a step-by-step guide to get you started:
33+
34+
1. Create a Repository
35+
Start by creating a new repository to host the contributors GitHub action or select an existing one. You can also run this action on an entire organization.
36+
37+
2. Choose an Example Workflow
38+
Select the best-fit workflow file from the [examples](https://github.com/github/contributors/blob/main/README.md#example-workflow) provided and customize it to your needs with the ["Configuration" section of the contributors action README.md file](https://github.com/github/contributors/blob/main/README.md#configuration).
39+
40+
3. Copy and Edit the Workflow
41+
Copy the chosen example workflow into your repository and save it in the .github/workflows/ directory with the .yml file extension. Edit the values in the workflow to match your specific needs, including the organization or repository you want to measure, start and end dates (if applicable), and other configurations.
42+
43+
4. Set the GitHub Token
44+
Ensure that you have a GitHub Token with the necessary permissions to read the repository or organization you're interested in scanning. If you're running the Action on a different repository or organization, create a GitHub API token and store it as a repository secret, referencing it in your workflow.
45+
46+
5. Commit and Trigger the Action
47+
Commit the workflow file to your default branch and wait for the Action to trigger based on your specified schedule or manually initiate it via a [workflow_dispatch](https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow).
48+
49+
## `CONTRIBUTING.md` files for every project
50+
51+
Another tool that we use that helps us to gain more contributors is the [Automatic Contributing.md action](https://github.com/github/automatic-contrib-prs). It opens up a pull request with a template `CONTRIBUTING.md` file in every repo in an organization that doesn't already have one.
52+
53+
This is important because new would-be contributors are often looking for guidance on how to become a contributor to a project. Managing a lot of open source repositories, it can be difficult to make sure that each of them have this documentation and that it is customized to the needs of the project.
54+
55+
To learn more about using this action, check out the [README](https://github.com/github/automatic-contrib-prs#readme).

docs/open-source-health-metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You can retrieve information about the [community standards documents](https://d
4141

4242
### Repository metrics
4343

44-
The Repository object in the GraphQL API is the primary location for metrics which relate to project health. These metrics are available in the `Repository` object, and while there are lots of interesting fields available, we've recently coalesced the most useful ones under the `metrics` field.
44+
The Repository object in the GraphQL API is the primary location for metrics which relate to project health. These metrics are available in the `Repository` object, and while there are lots of interesting fields available, we've recently coalesced the most useful ones under the `metrics` field.
4545

4646
> **Note**
4747
> As of October 2023, the following metrics are in public beta, behind a feature flag. In order to access them, you will need to add a special header to your requests: `GraphQL-Features: ospo_metrics_api` . While they are in beta, the metrics may change and the official API documentation will not have their descriptions. We will update this document as the metrics are finalized and the feature flag is removed.

images/community.jpg

468 KB
Loading

0 commit comments

Comments
 (0)