Skip to content

Commit a6a9bf3

Browse files
authored
Merge pull request #1 from marcdumais-work/initial_contrib
Initial contribution of dash-licenses-wrapper
2 parents 1567bed + e99e018 commit a6a9bf3

20 files changed

+4312
-5
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- main
11+
schedule:
12+
- cron: '0 4 * * *' # Runs every day at 4am: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
13+
14+
jobs:
15+
16+
CI:
17+
name: CI tests
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest]
23+
node: ['18.x']
24+
java: ['11']
25+
26+
runs-on: ${{ matrix.os }}
27+
timeout-minutes: 60
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
with:
33+
fetch-depth: 2
34+
35+
- name: Use Node.js ${{ matrix.node }}
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: ${{ matrix.node }}
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Use Java ${{ matrix.java }}
42+
uses: actions/setup-java@v3
43+
with:
44+
distribution: 'adopt'
45+
java-version: ${{ matrix.java }}
46+
47+
- name: Run Tests
48+
if: matrix.tests != 'skip'
49+
shell: bash
50+
run: |
51+
yarn
52+
yarn test
53+
env:
54+
DASH_LICENSES_PAT: ${{ secrets.DASH_LICENSES_PAT }}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 3PP License Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- main
11+
schedule:
12+
- cron: '0 4 * * *' # Runs every day at 4am: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
13+
14+
jobs:
15+
16+
License-check:
17+
name: 3PP License Check
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest]
23+
node: ['18.x']
24+
java: ['11']
25+
26+
runs-on: ${{ matrix.os }}
27+
timeout-minutes: 60
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
with:
33+
fetch-depth: 2
34+
35+
- name: Use Node.js ${{ matrix.node }}
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: ${{ matrix.node }}
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Use Java ${{ matrix.java }}
42+
uses: actions/setup-java@v3
43+
with:
44+
distribution: 'adopt'
45+
java-version: ${{ matrix.java }}
46+
47+
- name: Run dash-licenses
48+
if: matrix.tests != 'skip'
49+
shell: bash
50+
run: |
51+
# build a local npm package "payload" and install it
52+
npm pack
53+
npm install
54+
npm install --no-save ./dash-licenses-wrapper-*.tgz
55+
npx dash-licenses-wrapper --inputFile=package-lock.json
56+
env:
57+
DASH_LICENSES_PAT: ${{ secrets.DASH_LICENSES_PAT }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
download
3+
dependency-check-summary.txt
4+
license-check-summary*

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github
2+
download
3+
examples
4+
license-check-summary*
5+
test

CODE_OF_CONDUCT.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Community Code of Conduct
2+
3+
**Version 2.0
4+
January 1, 2023**
5+
6+
## Our Pledge
7+
8+
In the interest of fostering an open and welcoming environment, we as community members, contributors, Committers[^1], and Project Leads (collectively "Contributors") pledge to make participation in our projects and our community a harassment-free and inclusive experience for everyone.
9+
10+
This Community Code of Conduct ("Code") outlines our behavior expectations as members of our community in all Eclipse Foundation activities, both offline and online. It is not intended to govern scenarios or behaviors outside of the scope of Eclipse Foundation activities. Nor is it intended to replace or supersede the protections offered to all our community members under the law. Please follow both the spirit and letter of this Code and encourage other Contributors to follow these principles into our work. Failure to read or acknowledge this Code does not excuse a Contributor from compliance with the Code.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contribute to creating a positive and professional environment include:
15+
16+
- Using welcoming and inclusive language;
17+
- Actively encouraging all voices;
18+
- Helping others bring their perspectives and listening actively. If you find yourself dominating a discussion, it is especially important to encourage other voices to join in;
19+
- Being respectful of differing viewpoints and experiences;
20+
- Gracefully accepting constructive criticism;
21+
- Focusing on what is best for the community;
22+
- Showing empathy towards other community members;
23+
- Being direct but professional; and
24+
- Leading by example by holding yourself and others accountable
25+
26+
Examples of unacceptable behavior by Contributors include:
27+
28+
- The use of sexualized language or imagery;
29+
- Unwelcome sexual attention or advances;
30+
- Trolling, insulting/derogatory comments, and personal or political attacks;
31+
- Public or private harassment, repeated harassment;
32+
- Publishing others' private information, such as a physical or electronic address, without explicit permission;
33+
- Violent threats or language directed against another person;
34+
- Sexist, racist, or otherwise discriminatory jokes and language;
35+
- Posting sexually explicit or violent material;
36+
- Sharing private content, such as emails sent privately or non-publicly, or unlogged forums such as IRC channel history;
37+
- Personal insults, especially those using racist or sexist terms;
38+
- Excessive or unnecessary profanity;
39+
- Advocating for, or encouraging, any of the above behavior; and
40+
- Other conduct which could reasonably be considered inappropriate in a professional setting
41+
42+
## Our Responsibilities
43+
44+
With the support of the Eclipse Foundation employees, consultants, officers, and directors (collectively, the "Staff"), Committers, and Project Leads, the Eclipse Foundation Conduct Committee (the "Conduct Committee") is responsible for clarifying the standards of acceptable behavior. The Conduct Committee takes appropriate and fair corrective action in response to any instances of unacceptable behavior.
45+
46+
## Scope
47+
48+
This Code applies within all Project, Working Group, and Interest Group spaces and communication channels of the Eclipse Foundation (collectively, "Eclipse spaces"), within any Eclipse-organized event or meeting, and in public spaces when an individual is representing an Eclipse Foundation Project, Working Group, Interest Group, or their communities. Examples of representing a Project or community include posting via an official social media account, personal accounts, or acting as an appointed representative at an online or offline event. Representation of Projects, Working Groups, and Interest Groups may be further defined and clarified by Committers, Project Leads, or the Staff.
49+
50+
## Enforcement
51+
52+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Conduct Committee via [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Without the explicit consent of the reporter, the Conduct Committee is obligated to maintain confidentiality with regard to the reporter of an incident. The Conduct Committee is further obligated to ensure that the respondent is provided with sufficient information about the complaint to reply. If such details cannot be provided while maintaining confidentiality, the Conduct Committee will take the respondent‘s inability to provide a defense into account in its deliberations and decisions. Further details of enforcement guidelines may be posted separately.
53+
54+
Staff, Committers and Project Leads have the right to report, remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code, or to block temporarily or permanently any Contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. Any such actions will be reported to the Conduct Committee for transparency and record keeping.
55+
56+
Any Staff (including officers and directors of the Eclipse Foundation), Committers, Project Leads, or Conduct Committee members who are the subject of a complaint to the Conduct Committee will be recused from the process of resolving any such complaint.
57+
58+
## Responsibility
59+
60+
The responsibility for administering this Code rests with the Conduct Committee, with oversight by the Executive Director and the Board of Directors. For additional information on the Conduct Committee and its process, please write to <[email protected]>.
61+
62+
## Investigation of Potential Code Violations
63+
64+
All conflict is not bad as a healthy debate may sometimes be necessary to push us to do our best. It is, however, unacceptable to be disrespectful or offensive, or violate this Code. If you see someone engaging in objectionable behavior violating this Code, we encourage you to address the behavior directly with those involved. If for some reason, you are unable to resolve the matter or feel uncomfortable doing so, or if the behavior is threatening or harassing, please report it following the procedure laid out below.
65+
66+
Reports should be directed to <[email protected]>. It is the Conduct Committee’s role to receive and address reported violations of this Code and to ensure a fair and speedy resolution.
67+
68+
The Eclipse Foundation takes all reports of potential Code violations seriously and is committed to confidentiality and a full investigation of all allegations. The identity of the reporter will be omitted from the details of the report supplied to the accused. Contributors who are being investigated for a potential Code violation will have an opportunity to be heard prior to any final determination. Those found to have violated the Code can seek reconsideration of the violation and disciplinary action decisions. Every effort will be made to have all matters disposed of within 60 days of the receipt of the complaint.
69+
70+
## Actions
71+
Contributors who do not follow this Code in good faith may face temporary or permanent repercussions as determined by the Conduct Committee.
72+
73+
This Code does not address all conduct. It works in conjunction with our [Communication Channel Guidelines](https://www.eclipse.org/org/documents/communication-channel-guidelines/), [Social Media Guidelines](https://www.eclipse.org/org/documents/social_media_guidelines.php), [Bylaws](https://www.eclipse.org/org/documents/eclipse-foundation-be-bylaws-en.pdf), and [Internal Rules](https://www.eclipse.org/org/documents/ef-be-internal-rules.pdf) which set out additional protections for, and obligations of, all contributors. The Foundation has additional policies that provide further guidance on other matters.
74+
75+
It’s impossible to spell out every possible scenario that might be deemed a violation of this Code. Instead, we rely on one another’s good judgment to uphold a high standard of integrity within all Eclipse Spaces. Sometimes, identifying the right thing to do isn’t an easy call. In such a scenario, raise the issue as early as possible.
76+
77+
## No Retaliation
78+
79+
The Eclipse community relies upon and values the help of Contributors who identify potential problems that may need to be addressed within an Eclipse Space. Any retaliation against a Contributor who raises an issue honestly is a violation of this Code. That a Contributor has raised a concern honestly or participated in an investigation, cannot be the basis for any adverse action, including threats, harassment, or discrimination. If you work with someone who has raised a concern or provided information in an investigation, you should continue to treat the person with courtesy and respect. If you believe someone has retaliated against you, report the matter as described by this Code. Honest reporting does not mean that you have to be right when you raise a concern; you just have to believe that the information you are providing is accurate.
80+
81+
False reporting, especially when intended to retaliate or exclude, is itself a violation of this Code and will not be accepted or tolerated.
82+
83+
Everyone is encouraged to ask questions about this Code. Your feedback is welcome, and you will get a response within three business days. Write to <[email protected]>.
84+
85+
## Amendments
86+
87+
The Eclipse Foundation Board of Directors may amend this Code from time to time and may vary the procedures it sets out where appropriate in a particular case.
88+
89+
### Attribution
90+
91+
This Code was inspired by the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.4, available [here](https://www.contributor-covenant.org/version/1/4/code-of-conduct/).
92+
93+
[^1]: Capitalized terms used herein without definition shall have the meanings assigned to them in the Bylaws.

CONTRIBUTING.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Contributing to Eclipse Dash
2+
3+
Thanks for your interest in this project.
4+
5+
## Project description
6+
7+
Eclipse Dash is a place where the community itself collaborates on tools for
8+
community awareness and collaboration in support of our ultimate objective of
9+
committer quality and cooperation. This is very much an incubator for committer
10+
tools and other resources that could improve the overall Eclipse Foundation
11+
community experience. The Dash project provides a safe and open space to
12+
prototype these tools and test them, and if they stick, eventually rolling them
13+
into production on the eclipse.org or dev.eclipse.org website.
14+
15+
* https://projects.eclipse.org/projects/technology.dash
16+
17+
## Terms of Use
18+
19+
This repository is subject to the Terms of Use of the Eclipse Foundation
20+
21+
* https://www.eclipse.org/legal/termsofuse.php
22+
23+
## Developer resources
24+
25+
Information regarding source code management, builds, coding standards, and
26+
more.
27+
28+
* https://projects.eclipse.org/projects/technology.dash/developer
29+
30+
The project maintains the following source code repositories
31+
32+
* https://github.com/eclipse-dash/.github
33+
* https://github.com/eclipse-dash/nodejs-wrapper
34+
* https://github.com/eclipse/dash-licenses
35+
* https://gitlab.eclipse.org/eclipse/technology/dash/eclipse-api-for-java.git
36+
* https://gitlab.eclipse.org/eclipse/technology/dash/eclipse-project-code.git
37+
* https://gitlab.eclipse.org/eclipse/technology/dash/license-tool/nodejs-wrapper.git
38+
* https://gitlab.eclipse.org/eclipse/technology/dash/org.eclipse.dash.handbook.git
39+
40+
## Eclipse Development Process
41+
42+
This Eclipse Foundation open project is governed by the Eclipse Foundation
43+
Development Process and operates under the terms of the Eclipse IP Policy.
44+
45+
* https://eclipse.org/projects/dev_process
46+
* https://www.eclipse.org/org/documents/Eclipse_IP_Policy.pdf
47+
48+
## Eclipse Contributor Agreement
49+
50+
In order to be able to contribute to Eclipse Foundation projects you must
51+
electronically sign the Eclipse Contributor Agreement (ECA).
52+
53+
* https://www.eclipse.org/legal/ECA.php
54+
55+
The ECA provides the Eclipse Foundation with a permanent record that you agree
56+
that each of your contributions will comply with the commitments documented in
57+
the Developer Certificate of Origin (DCO). Having an ECA on file associated with
58+
the email address matching the "Author" field of your contribution's Git commits
59+
fulfills the DCO's requirement that you sign-off on your contributions.
60+
61+
For more information, please see the Eclipse Committer Handbook:
62+
https://www.eclipse.org/projects/handbook/#resources-commit
63+
64+
## Contact
65+
66+
Contact the project developers via the project's "dev" list.
67+
68+
* https://dev.eclipse.org/mailman/listinfo/dash-dev

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ No third-party beneficiary rights are created under this Agreement.
261261

262262
Exhibit A - Form of Secondary Licenses Notice
263263

264-
"This Source Code may also be made available under the following
265-
Secondary Licenses when the conditions for such availability set forth
264+
"This Source Code may also be made available under the following
265+
Secondary Licenses when the conditions for such availability set forth
266266
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
267267
version(s), and exceptions or additional permissions here}."
268268

@@ -274,4 +274,4 @@ version(s), and exceptions or additional permissions here}."
274274
file in a relevant directory) where a recipient would be likely to
275275
look for such a notice.
276276

277-
You may add additional accurate notices of copyright ownership.
277+
You may add additional accurate notices of copyright ownership.

0 commit comments

Comments
 (0)