This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
970 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: validate | ||
on: [pull_request] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
validate: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Change Log | ||
|
||
> **_NOTE:_** This file includes all relevant changes to the backend of the [PACT Catalog](https://catalog.carbon-transparency.com). All changes related to the catalog's front end will be listed in the [`pact-catalog-frontend`](https://github.com/sine-fdn/pact-catalog-frontend) repository | ||
**************Changed************** | ||
|
||
## 2023-07-20 | ||
Updated the T&Cs as per the latest T&Cs from WBCSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,14 @@ This repository holds the [PACT Online Catalog](https://pact-catalog.sine.dev). | |
|
||
To contribute to the PACT Online Catalog with an <strong>Data Model Extension</strong>, a <strong>Conformant Solution</strong>, or a <strong>Conformance Test Result</strong>, please follow these steps: | ||
|
||
### 1. Fork the `pact-catalog` repository and clone it into your local machine | ||
### 1. Fork the `pact-catalog` repository | ||
|
||
#### 1.1 Fork and clone the `pact-catalog` repository | ||
|
||
If you have GitHub CLI tools installed, open a terminal window and run | ||
|
||
```sh | ||
gh repo fork https://github.com/sine-fdn/pact-catalog.git --clone | ||
gh repo fork https://github.com/wbcsd/pact-catalog.git --clone | ||
``` | ||
|
||
Otherwise, navigate to the [pact-catalog repository](https://github.com/sine-fdn/pact-catalog.git) and fork it in your browser (instructions can be found [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo#forking-a-repository)). | ||
|
@@ -22,15 +24,67 @@ Then, open a terminal window and run | |
git clone [email protected]:<your-github-id>/pact-catalog.git | ||
``` | ||
|
||
### 2. Checkout a new branch with your institution's name | ||
#### 1.2 Enable workflows | ||
|
||
Go to your forked repository on GitHub, click on the `Actions` tab and then on the green button `I understand my workflows, go ahead and enable them`: | ||
|
||
<p align="center"> | ||
<img src="https://github.com/wbcsd/pact-catalog/assets/100690574/971ec9e4-2222-44d9-ae5c-259d5e4b26f4" width=800> | ||
</p> | ||
|
||
Automatic validation will now run when you commit your branch to GitHub, allowing you to know whether your contribution to the catalog is syntactically correct and minimizing back-and-forth messages and turnover time. | ||
|
||
### 2. Checkout a new branch | ||
|
||
Run | ||
|
||
```sh | ||
git checkout -b <your-name> | ||
git checkout -b <your-branch> | ||
``` | ||
### 3. Create a new user in the `users` directory | ||
|
||
> **_NOTE:_** If you have already created a user, do not create a new one. Instead, please make sure the user you have created is in the `users` directory and that all fields are correct. Then, skip to step 5. | ||
From the parent directory of your local repository run | ||
|
||
|
||
<strong>Please note:</strong> All text between angle brackets (`< >`) should be replaced by actual values. Please make sure that the value replacing `<your-user-id>` only includes <strong>lowercase letters and dashes</strong> (instead of whitespace). The value replacing `<solutionprovider | ngo | company>` should be `"solutionprovider"`, `"ngo"`, or `"company"`, depending on your situation. | ||
|
||
```sh | ||
touch catalog/users/<your-user-id>.json | ||
``` | ||
|
||
E.g., `touch catalog/users/abc-corp.json` | ||
|
||
### 4. Fill in your user's details | ||
|
||
Open the `json` file created in step 4. and fill it by adapting the following structure: | ||
|
||
```javascript | ||
{ | ||
"id": "<your-user-id>", // e.g. 'ABC Corp' has user id "abc" or "abc-corp" | ||
"kind": "<solutionprovider | ngo | company>", // select one | ||
"name": "<Your Name>", // e.g. "ABC Corp" | ||
"email": "<your-email>", | ||
"website": "<your-website>", | ||
"logo": "<url-to-your-logo>" // to be displayed in the collaborators page (optional) | ||
} | ||
``` | ||
|
||
### 3. Follow the contribution-specific tests | ||
If you already endorse Data Model Extensions, please include also the field `"extensions_endorsed"`, based on the following structure: | ||
```javascript | ||
"extensions_endorsed": [ | ||
{ | ||
"namespace": "@<user-id>", // the id of the user that developed the extension | ||
"extension_name": "<extension-id>", | ||
"version": "<extension-version>" | ||
} | ||
] | ||
``` | ||
|
||
Please refer to [this example](./catalog/examples/users/example-institution.json) to see how your `<your-user-id>.json` file should look like. | ||
|
||
### 5. Follow the contribution-specific tests | ||
|
||
If you want to contribute an <strong>Data Model Extension</strong>, please follow [these steps](/CONTRIB_EXTENSION.md). | ||
|
||
|
@@ -40,24 +94,24 @@ If you want to contribute a <strong>Conformance Test Result</strong>, please fol | |
|
||
Once you have done that, please proceed to the next step. | ||
|
||
### 4. Commit and push your branch | ||
### 6. Commit and push your branch | ||
|
||
From the parent directory of the repository, run | ||
|
||
```sh | ||
git add . | ||
git commit -m "feat: <commit-message>" | ||
git push origin <your-name> | ||
git push origin <yourbranch> | ||
``` | ||
|
||
Please replace `<commit-message>` with a short description, such as `add <extension-id> extension`, `add <your-solution-id> solution`, or `add <tested-solution-id> test result`. | ||
|
||
## 5. Open a Pull Request | ||
### 7. Open a Pull Request | ||
|
||
Go to the original [pact-catalog repository](https://github.com/sine-fdn/pact-catalog), choose the `Pull requests` tab and click the `New pull request` button. | ||
Open a Pull Request to merge the branch `<your-name>` from your forked repository into the `main` branch of the `pact-catalog` repository. Instructions on how to open Pull Requests across forks can be found [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork). | ||
Open a Pull Request to merge the branch `<your-user-id>` from your forked repository into the `main` branch of the `pact-catalog` repository. Instructions on how to open Pull Requests across forks can be found [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork). | ||
|
||
<strong>Please note:</strong> All text between angle brackets (`< >`) should be replaced by actual values. Please make sure that the values replacing `<your-name>`, `<extenion-id>`, `<extension-version>`,`<your-solution-id>` only include <strong>lowercase letters and dashes</strong> (instead of whitespaces). The values replacing `<extension-version>` and `<your-solution-version>` should follow the `X.Y.Z` format. Please make sure that these remain consistent. | ||
<strong>Please note:</strong> All text between angle brackets (`< >`) should be replaced by actual values. Please make sure that the values replacing `<your-user-id>`, `<extenion-id>`, `<extension-version>`,`<your-solution-id>` only include <strong>lowercase letters and dashes</strong> (instead of whitespaces). The values replacing `<extension-version>` and `<your-solution-version>` should follow the `X.Y.Z` format. Please make sure that these remain consistent. | ||
|
||
Your Pull Request will be reviewed and your solution added to the PACT Online Catalog as soon as possible. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"tested_solution": { | ||
"solution_id": "atma-io", | ||
"version": "2.0.1" | ||
}, | ||
"tested_by": { | ||
"solution_name": "TrueCarbon", | ||
"version": "2.0.0", | ||
"solution_id": "cirrus-nexus-true-carbon-for-pact-01" | ||
}, | ||
"test_result": "passed", | ||
"test_date": "2023-06-28T00:00:00Z", | ||
"pathfinder_version": "2.0.0", | ||
"extensions_tested": [] | ||
} |
Oops, something went wrong.