Skip to content

Commit f5f0909

Browse files
committed
updating foundations
1 parent 36b268f commit f5f0909

File tree

9 files changed

+725
-6666
lines changed

9 files changed

+725
-6666
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ updates:
55
schedule:
66
interval: monthly
77
reviewers:
8-
- "nickliffen"
8+
- 'nickliffen'
99
groups:
1010
dependencies:
1111
patterns:
12-
- "*"
12+
- '*'
1313
- package-ecosystem: npm
1414
directory: /
1515
schedule:
1616
interval: monthly
1717
reviewers:
18-
- "nickliffen"
18+
- 'nickliffen'
1919
groups:
2020
dependencies:
2121
patterns:
22-
- "*"
22+
- '*'

README.md

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

33
## Purpose
44

5-
The purpose of this repository is to help enterprise administrators who maintain multiple GHE instances work out unique developers across multiple GHE instances. This script works for both maximum committers and currently consumed GHAS committers.
5+
The purpose of this repository is to help enterprise administrators who maintain multiple GHE instances work out unique developers across multiple GHE instances. This script works for both maximum committers and currently consumed GHAS committers.
66

77
## Prerequisites
88

@@ -23,7 +23,7 @@ The purpose of this repository is to help enterprise administrators who maintain
2323
cd ghe-cross-instance-committers
2424
```
2525

26-
4. Copy the `.env.sample` to `.env`. On a Mac, this can be done via the following terminal command:
26+
3. Copy the `.env.sample` to `.env`. On a Mac, this can be done via the following terminal command:
2727

2828
```bash
2929
cp .env.sample .env
@@ -40,13 +40,13 @@ https://${ghes-url}.com/stafftools/ghas_committers
4040
> **Note**
4141
> If you are struggling to get the file to download because your instance is extremely large, please contact your account team for assistance.
4242
43-
If you are interested in knowing your maximum committer number (e.g. the total number of unique developers across your whole GHE instance), click the download button next to the `Total billable committers if GHAS is enabled for all repositories` option.
43+
If you are interested in knowing your maximum committer number (e.g. the total number of unique developers across your whole GHE instance), click the download button next to the `Total billable committers if GHAS is enabled for all repositories` option.
4444
4545
If you are interested in knowing your current committer number (e.g. the total number of unique developers across your whole GHE instance who are curently consuming a GHAS licence), click the download button next to the `Current active committer count` option.
4646
47-
Once that's downloaded, create a new folder and drop the CSV into that folder.
47+
Once that's downloaded, create a new folder and drop the CSV into that folder.
4848
49-
Repeat the steps above across all your GHES instances. Make sure you drop the content **into the same folder**, you do not need to create a new folder every time.
49+
Repeat the steps above across all your GHES instances. Make sure you drop the content **into the same folder**, you do not need to create a new folder every time.
5050
5151
If you are on a GHEC instance (including EMU), please head to `https://github.com/enterprises/${enterprise-slug}/enterprise_licensing` and click "Download CSV" under the Advanced Security section. This will download a CSV, please place that in the same folder as above.
5252
@@ -58,13 +58,13 @@ If you are on a GHEC instance (including EMU), please head to `https://github.co
5858
npm install
5959
```
6060
61-
3. Update the `.env. (Replace the XXX with the relative directory of the csv content you created above)
61+
2. Update the `.env. (Replace the XXX with the relative directory of the csv content you created above)
6262
6363
```bash
6464
DIRECTORY_OF_CSV_CONTENT=XXX
6565
```
6666
67-
2. Run the script
67+
3. Run the script
6868
6969
```bash
7070
npm run start

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('getFilesInDirectory', () => {
116116
const content = await mergeFileContent(jsonFiles);
117117
const unique = await uniqueUsers(content);
118118
expect(isArrayUnique(unique)).toBeTruthy();
119-
const expectedUsers = Array.from({ length: 10 }, (_,i) => `user${i + 1}`);
119+
const expectedUsers = Array.from({ length: 10 }, (_, i) => `user${i + 1}`);
120120
expect(unique.length).toBe(expectedUsers.length);
121121
expect(unique).toEqual(expect.arrayContaining(expectedUsers));
122122
});

__tests__/setup/setEnvVars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
process.env.DIRECTORY_OF_CSV_CONTENT = '__tests__/data/'
1+
process.env.DIRECTORY_OF_CSV_CONTENT = '__tests__/data/';

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
testEnvironment: 'node',
33
preset: 'ts-jest',
4-
modulePathIgnorePatterns: ['lib/*', "./__tests__/setup/"],
5-
setupFiles: ["./__tests__/setup/setEnvVars.ts"],
4+
modulePathIgnorePatterns: ['lib/*', './__tests__/setup/'],
5+
setupFiles: ['./__tests__/setup/setEnvVars.ts'],
66
coverageDirectory: 'coverage',
77
collectCoverageFrom: [
88
'src/**/*.ts',

0 commit comments

Comments
 (0)