@@ -1975,17 +1975,29 @@ const ORG_REPOS = [
1975
1975
// }
1976
1976
];
1977
1977
1978
+ // These entries should match the `fullName` in the corresponding project's json file
1978
1979
const EXCLUDED_PROJECTS = [
1979
1980
'adopt-open-jdk',
1980
- 'open-telemetry/opentelemetry-go',
1981
- 'open-telemetry/opentelemetry-java',
1982
- 'open-telemetry',
1983
- 'w3c-distributed-tracing-wg',
1984
1981
'newrelic/developer-toolkit',
1985
1982
'newrelic/extends_newrelic_rpm',
1986
1983
'newrelic/open-source-office',
1987
1984
'newrelic/open-source-tools',
1988
- 'newrelic/sidecar'
1985
+ 'newrelic/sidecar',
1986
+ 'open-telemetry',
1987
+ 'open-telemetry-opentelemetry-auto-instr-java',
1988
+ 'open-telemetry-opentelemetry-collector',
1989
+ 'open-telemetry-opentelemetry-cpp',
1990
+ 'open-telemetry-opentelemetry-dotnet',
1991
+ 'open-telemetry-opentelemetry-erlang',
1992
+ 'open-telemetry/opentelemetry-go',
1993
+ 'open-telemetry/opentelemetry-java',
1994
+ 'open-telemetry-opentelemetry-ruby',
1995
+ 'open-telemetry/opentelemetry-specification',
1996
+ 'w3c-correlation-context',
1997
+ 'w3c-distributed-tracing-wg',
1998
+ 'w3c-trace-context',
1999
+ 'w3c-trace-context-binary',
2000
+ 'w3c-trace-response'
1989
2001
];
1990
2002
1991
2003
// TO DO - Ascertain Github's GraphQL query limits
@@ -23091,7 +23103,8 @@ function formatStats(project, stats) {
23091
23103
}
23092
23104
23093
23105
function writeProjectStatsToGatsby(project, projectStats) {
23094
- const workingDir = process.env.GITHUB_WORKSPACE || path.join(__dirname, '../../../../../');
23106
+ const workingDir =
23107
+ process.env.GITHUB_WORKSPACE || path.join(__dirname, '../../../../../');
23095
23108
const statsDir = core.getInput('stats-dir') || DEFAULT_DIR;
23096
23109
const outputDir = path.resolve(workingDir, statsDir);
23097
23110
@@ -26449,7 +26462,7 @@ const reposForOrgQuery = ({
26449
26462
tags: refs(refPrefix: "refs/tags/") {
26450
26463
totalCount
26451
26464
}
26452
- latestTag: refs(refPrefix: "refs/tags/", last: 1) {
26465
+ latestTag: refs(refPrefix: "refs/tags/", last: 1, , orderBy: {field: TAG_COMMIT_DATE, direction: ASC} ) {
26453
26466
nodes {
26454
26467
id
26455
26468
name
@@ -29922,7 +29935,8 @@ async function getProjectFullName(file, outputDir) {
29922
29935
* explicitly not generating stats for.
29923
29936
*/
29924
29937
async function getProjectsAndExclusions() {
29925
- const workingDir = process.env.GITHUB_WORKSPACE || path.join(__dirname, '../../../../../');
29938
+ const workingDir =
29939
+ process.env.GITHUB_WORKSPACE || path.join(__dirname, '../../../../../');
29926
29940
const projectsDir = core.getInput('stats-dir') || 'src/data/projects';
29927
29941
const outputDir = path.resolve(workingDir, projectsDir);
29928
29942
@@ -32095,7 +32109,6 @@ module.exports = isWeekend
32095
32109
/* 767 */
32096
32110
/***/ (function(module, __unusedexports, __webpack_require__) {
32097
32111
32098
- // const github = require("@actions/github")
32099
32112
const core = __webpack_require__(470);
32100
32113
const { Octokit } = __webpack_require__(889);
32101
32114
const parseLinkHeader = __webpack_require__(386);
@@ -32108,8 +32121,8 @@ const REPOS_PER_PAGE = 100;
32108
32121
const octokit = new Octokit({
32109
32122
auth: GH_TOKEN,
32110
32123
log: {
32111
- debug: () => { },
32112
- info: () => { },
32124
+ debug: () => {},
32125
+ info: () => {},
32113
32126
// eslint-disable-next-line no-console
32114
32127
warn: console.warn,
32115
32128
// eslint-disable-next-line no-console
@@ -32233,15 +32246,15 @@ const octokit = new Octokit({
32233
32246
* start_page - Beginning page
32234
32247
* exclude_archived - Whether or not to filter out archived repositories (repos.listForOrg does not offer a way to exclude these from the response)
32235
32248
*/
32236
- const organizationRepositoryIterator = function ({
32249
+ const organizationRepositoryIterator = function({
32237
32250
pages = 1,
32238
32251
org = DEFAULT_ORG,
32239
32252
type = 'public',
32240
32253
per_page = REPOS_PER_PAGE,
32241
32254
start_page = 1
32242
32255
// excludeArchived = true
32243
32256
}) {
32244
- return function () {
32257
+ return function() {
32245
32258
const MAX_PAGES_ALLOWED = 100;
32246
32259
32247
32260
let isFirstPage = true;
@@ -32253,15 +32266,15 @@ const organizationRepositoryIterator = function ({
32253
32266
// How best do we initialize this for the first page?
32254
32267
let pagesToGet = pages === 0 ? MAX_PAGES_ALLOWED : pages;
32255
32268
32256
- const hasMore = function () {
32269
+ const hasMore = function() {
32257
32270
return pagesToGet > 0;
32258
32271
};
32259
32272
32260
- const getCurrentPage = function () {
32273
+ const getCurrentPage = function() {
32261
32274
return currentPage;
32262
32275
};
32263
32276
32264
- const firstPage = async function () {
32277
+ const firstPage = async function() {
32265
32278
const firstPage = await fetchOrganizationRepositoryPage({
32266
32279
org,
32267
32280
type,
@@ -32286,7 +32299,7 @@ const organizationRepositoryIterator = function ({
32286
32299
return firstPage;
32287
32300
};
32288
32301
32289
- const next = function () {
32302
+ const next = function() {
32290
32303
let nextPage = false;
32291
32304
32292
32305
if (hasMore()) {
@@ -32324,7 +32337,7 @@ const organizationRepositoryIterator = function ({
32324
32337
};
32325
32338
};
32326
32339
32327
- const fetchOrganizationRepositoryPage = async function ({
32340
+ const fetchOrganizationRepositoryPage = async function({
32328
32341
org,
32329
32342
type,
32330
32343
per_page,
@@ -32351,7 +32364,7 @@ const fetchOrganizationRepositoryPage = async function ({
32351
32364
}
32352
32365
};
32353
32366
32354
- const fetchRepo = async function ({ options }) {
32367
+ const fetchRepo = async function({ options }) {
32355
32368
const { org: owner, repo } = options;
32356
32369
32357
32370
return octokit.repos.get({
@@ -32752,12 +32765,10 @@ const stringToColor = str => {
32752
32765
32753
32766
let hash = 0;
32754
32767
for (let i = 0; i < str.length; i += 1) {
32755
- // eslint-disable-next-line no-bitwise
32756
32768
hash = str.charCodeAt(i) + ((hash << 5) - hash);
32757
32769
}
32758
32770
let colour = '#';
32759
32771
for (let i = 0; i < 3; i += 1) {
32760
- // eslint-disable-next-line no-bitwise
32761
32772
const value = (hash >> (i * 8)) & 0xff;
32762
32773
colour += `00${value.toString(16)}`.substr(-2);
32763
32774
}
0 commit comments