Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
337 commits
Select commit Hold shift + click to select a range
659e641
Update the description to mention pull requests
tkuramoto33 Feb 2, 2024
587380d
Create enablement.md
rinikeda Dec 15, 2023
a74be26
draft of enablement.md
rinikeda Dec 31, 2023
c416c92
Update carbon-aware-cli.md
JasonLuuk Jan 27, 2024
c7d4563
Initial codespace branch and associated docs
danuw Dec 11, 2023
a51782f
updated vs code extensions
danuw Jan 30, 2024
80d6e59
DCO Remediation Commit for Dan Benitah <[email protected]>
danuw Jan 31, 2024
bd7ad15
Update README.md
vaughanknight Feb 6, 2024
693beed
More updates
vaughanknight Feb 6, 2024
1d78756
Added plcaeholder images
vaughanknight Feb 6, 2024
a7bc0fc
Updated images
vaughanknight Feb 7, 2024
571e217
More updates
vaughanknight Feb 7, 2024
a07870f
Updates with theory of change details
vaughanknight Feb 7, 2024
0314c47
Minor updates, included adopters page link
vaughanknight Feb 7, 2024
3af6f73
Update README.md
vaughanknight Feb 6, 2024
932a665
More updates
vaughanknight Feb 6, 2024
9f09493
Added plcaeholder images
vaughanknight Feb 6, 2024
02ea4d6
Updated images
vaughanknight Feb 7, 2024
183a676
More updates
vaughanknight Feb 7, 2024
0481081
Updates with theory of change details
vaughanknight Feb 7, 2024
042123d
Signed-off-by: Vaughan Knight <[email protected]>
vaughanknight Feb 7, 2024
d6795a0
Update tests.md
danuw Feb 12, 2024
ddc6a26
Merge pull request #461 from Green-Software-Foundation/danuw-carbonha…
Sophietn Feb 12, 2024
c1d006f
Merge pull request #462 from Green-Software-Foundation/docs/test-cove…
Sophietn Feb 12, 2024
e19101a
Update README.md
danuw Feb 12, 2024
5745ba9
adding the banner image
danuw Feb 12, 2024
5798e14
Create SECURITY.md
Willmish Feb 12, 2024
cc15035
merge and bug fixes
danuw Feb 12, 2024
3c62bd4
Qucikstart fix and overview link adjustment following move
danuw Feb 12, 2024
98c4543
Up Helm chart version to 1.1.0
YaSuenag Feb 12, 2024
bfdb8ef
Signed-off-by: Vaughan Knight <[email protected]>
vaughanknight Feb 7, 2024
de8d88c
CarbonHack24 Update to README.md
danuw Feb 11, 2024
1cc4302
Create tests.md
danuw Feb 7, 2024
a3a5da6
Update tests.md
danuw Feb 12, 2024
13becaf
Signed-off-by: Vaughan Knight <[email protected]>
vaughanknight Feb 7, 2024
e0507cf
Merge pull request #463 from Green-Software-Foundation/danuw-hack-ban…
danuw Feb 13, 2024
db78f30
Merge pull request #464 from Willmish/Willmish-patch-securitymd
danuw Feb 13, 2024
751724e
Merge pull request #454 from JasonLuuk/patch-3
danuw Feb 13, 2024
f5a58db
Merge pull request #453 from JasonLuuk/patch-2
danuw Feb 13, 2024
b45c456
Merge pull request #449 from YaSuenag/pr/helm-location-sources
danuw Feb 13, 2024
590f262
blog updates
danuw Feb 13, 2024
20d120b
Merge branch 'dev' into docs/docusaurus
danuw Feb 13, 2024
aa01e63
DCO Remediation Commit for Dan Benitah <[email protected]>
danuw Feb 13, 2024
6aed17f
DCO Remediation Commit for danuw <[email protected]>
danuw Feb 13, 2024
3b8abfa
Update baseURL docusaurus config
osamajandali Feb 14, 2024
3f4fb30
Update docusaurus.config.js
osamajandali Feb 14, 2024
7dcb7d3
Revert changes
osamajandali Feb 14, 2024
53b5d7a
Update domain from docusaurus
osamajandali Feb 14, 2024
6fee055
Update docusaurus.config.js
osamajandali Feb 14, 2024
ee4532b
Create CNAME file
osamajandali Feb 14, 2024
ed464fc
clean up for title
danuw Feb 19, 2024
5f0bbff
Option to show the samples in the local docs using `nm run start-with…
danuw Feb 19, 2024
f5b3eb6
seo for the doc site
danuw Feb 19, 2024
89c1d64
docs fixes
danuw Feb 20, 2024
093ecb4
layout update for blogs
danuw Feb 20, 2024
2dc06f8
Update SECURITY.md
vaughanknight Feb 20, 2024
893439f
DCO Remediation Commit for Vaughan Knight <[email protected]>
vaughanknight Feb 20, 2024
5efc85e
Merge pull request #469 from Green-Software-Foundation/Security-Docum…
danuw Feb 20, 2024
f15a593
Ensure pictures on the blog are correctly sized
danuw Feb 20, 2024
f3c6a73
Merge pull request #466 from Green-Software-Foundation/docs/docusaurus
vaughanknight Feb 20, 2024
8cabb04
updated links to videos
danuw Feb 21, 2024
faf44cb
Update README.md
jacksorjacksor Feb 26, 2024
c062723
Update README.md
jacksorjacksor Feb 26, 2024
834d6b7
Merge pull request #472 from jacksorjacksor/patch-1
danuw Feb 26, 2024
c7e5ecd
first draft of release 1.3 changelog
danuw Feb 26, 2024
7d5e50e
Update README.md with updated link to overview
danuw Feb 27, 2024
85d83d3
Fix overview URL in README
Willmish Feb 27, 2024
fd6b5cd
Update README.md
russelltrow Feb 27, 2024
8776a69
Merge pull request #470 from Green-Software-Foundation/fix/readmefile…
danuw Feb 27, 2024
2788f56
Merge pull request #478 from Green-Software-Foundation/russelltrow-pa…
danuw Feb 27, 2024
f267eba
Updates to the contribution documentation
vaughanknight Feb 27, 2024
3ce2ba3
DCO Remediation Commit for Vaughan Knight <[email protected]>
vaughanknight Feb 27, 2024
57f50a7
Merge pull request #480 from Green-Software-Foundation/vk-contributing
vaughanknight Feb 28, 2024
1e84f60
Merge pull request #475 from Green-Software-Foundation/Changelog-1.3
vaughanknight Mar 5, 2024
fe6797d
Readme as project overview in docs, disclaimer update for graduated p…
danuw Mar 6, 2024
52705a6
DCO Remediation Commit for Vaughan Knight <[email protected]>
vaughanknight Mar 6, 2024
734605d
Merge pull request #485 from Green-Software-Foundation/docs/update-ov…
vaughanknight Mar 6, 2024
9d51f79
Migrate to .NET 8
tiwatsuka Mar 27, 2024
94b428a
fix typos
omahs Mar 27, 2024
58b548c
fix typo
omahs Mar 27, 2024
c2101f8
fix typo
omahs Mar 27, 2024
9eb3fa2
fix typos
omahs Mar 27, 2024
5b3a352
fix typos
omahs Mar 27, 2024
85d113b
fix typos
omahs Mar 27, 2024
fd6db72
Merge pull request #493 from YaSuenag/pr/dotnet8
danuw Apr 3, 2024
9b6dbc2
Update agenda-template.md
Sophietn Apr 9, 2024
38af213
Merge pull request #497 from Green-Software-Foundation/Sophietn-patch-1
Sophietn Apr 9, 2024
abd9e6b
Resolve NU1605 relating to System.IO.FileSystem.Primitives
YaSuenag Apr 10, 2024
da7a254
Use RID rather than QEMU to build WebAPI container image
YaSuenag Apr 10, 2024
6799e5b
Separate OpenAPI document generation from build-env stage
YaSuenag Apr 10, 2024
10104a2
Merge pull request #498 from YaSuenag/pr/containerize-refinement
danuw Apr 10, 2024
5921f99
Merge pull request #494 from omahs/patch-1
danuw Apr 10, 2024
d0d5e72
Add GHA workflow for generating WebAPI client library for Java
YaSuenag Feb 23, 2024
5e2b5ac
Create case-study-template.md
vaughanknight Apr 16, 2024
22c09c3
Update case-study-template.md
vaughanknight Apr 16, 2024
412f185
Up Helm chart version to 1.2.0 (#500)
YaSuenag Apr 23, 2024
b9490e4
First draft of the ADR for watt time v3 changes
vaughanknight May 7, 2024
faae742
Initial changelog 1.4.0 (#511)
danuw May 7, 2024
c6b2c14
overview.md: Fixed three broken links Signed-off-by: joecus1 <joecusa…
joecus1 May 7, 2024
add24fe
DCO Remediation Commit for joecus1 <[email protected]>
joecus1 May 7, 2024
9fb9ba0
Update enablement.md
nttDamien May 8, 2024
cd44f46
(fix) broken links - Update enablement.md
nttDamien May 8, 2024
b991bac
Moved ADR to correct location
vaughanknight May 8, 2024
f4bbf52
Further updates for the watt time v2 to v3 upgrade
vaughanknight May 8, 2024
d6ad67c
Further updates for the watt time v2 to v3 upgrade
vaughanknight May 8, 2024
15a6f9c
Merge branch 'wattime-v3-support' of https://github.com/Green-Softwar…
vaughanknight May 8, 2024
4192933
Update SECURITY.md (.NET 8 upgrade)
nttDamien May 13, 2024
3398e5a
Update enablement.md
nttDamien May 14, 2024
27f41df
Merge pull request #516 from nttDamien/dev
danuw May 14, 2024
85e6c72
Merge pull request #515 from joecus1/dev
danuw May 14, 2024
2664153
Merge branch 'main' into dev
vaughanknight May 14, 2024
f29f4c9
Update docusaurus.config.js
danuw May 14, 2024
a08a9d9
Update docusaurus.config.js
danuw May 14, 2024
db72545
documentation-change.yml: Created issue template for documentation ch…
joecus1 May 15, 2024
cb46877
Update 0016-watt-time-v3.md
vaughanknight May 15, 2024
e324f36
First draft of the ADR for watt time v3 changes
vaughanknight May 7, 2024
be6663c
Moved ADR to correct location
vaughanknight May 8, 2024
17210ed
Further updates for the watt time v2 to v3 upgrade
vaughanknight May 8, 2024
7920786
Update 0016-watt-time-v3.md
vaughanknight May 15, 2024
3a7c681
Add blog article for .NET 8 upgrade
YaSuenag May 16, 2024
1106968
Merge pull request #522 from Green-Software-Foundation/remove-hack24-…
Sophietn May 17, 2024
8f1297a
Update article
YaSuenag May 24, 2024
e4f1494
Create 0016-watt-time-v3.md
vaughanknight May 31, 2024
b443e9e
Added base url to the configuration with validation
vaughanknight May 31, 2024
ab1205d
Updated start and end configuration
vaughanknight May 31, 2024
7c115fa
Balancing Authority Parameter Renamed to Region
vaughanknight May 31, 2024
2541119
Update GHA workflow for uploading Javadoc
YaSuenag Jun 4, 2024
4f5dbd2
Add example for 'podman play kube' (#340)
YaSuenag Jun 11, 2024
e047c9a
Updates for historical data API
vaughanknight Jun 17, 2024
aa81382
Removed accidental file
vaughanknight Jun 17, 2024
8640c8c
Lots of test updates
vaughanknight Jun 17, 2024
880fcf7
Historical forecasts updated
vaughanknight Jun 17, 2024
92f8dbc
DCO Remediation Commit for Vaughan Knight <[email protected]>
vaughanknight Jun 17, 2024
39e45a6
Many tests reworked, a few to go
vaughanknight Jun 18, 2024
fbfcac1
Further test updates
vaughanknight Jun 18, 2024
0080ae8
Merge branch 'wattime-v3-support' of https://github.com/Green-Softwar…
vaughanknight Jun 18, 2024
f3fd570
Merge branch 'wattime-v3-support' of https://github.com/Green-Softwar…
vaughanknight Jun 18, 2024
9aabd27
Further updates, just 1 test left to remediate
vaughanknight Jun 18, 2024
8127a92
Updated to add authentication client to the service builder for the t…
vaughanknight Jun 18, 2024
4ff0151
Renaming of Balancing Authority to Region
vaughanknight Jun 18, 2024
d93320f
Fixed spelling error in latitude
vaughanknight Jun 18, 2024
91799f7
Fixed a bug where location sources were loading twice
vaughanknight Jun 19, 2024
4665813
Fixed typo for method name
vaughanknight Jun 19, 2024
b228cf7
DCO Remediation Commit for Vaughan Knight <[email protected]>
vaughanknight Jun 19, 2024
8137659
Updates based on code review for WattTime Tests
vaughanknight Jun 19, 2024
f64ec8e
Cleaned up a lot of the string literals
vaughanknight Jun 19, 2024
daa4503
More cleanup of some of the strings
vaughanknight Jun 20, 2024
903a58f
Updates to documentation and changelog
vaughanknight Jun 25, 2024
301db94
Fix
YaSuenag Jun 26, 2024
55b9b10
Merge pull request #532 from Green-Software-Foundation/wattime-v3-sup…
danuw Jun 28, 2024
61420cc
Update azure-regions.json (#536)
danuw Jul 2, 2024
a734c56
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
8bf03bc
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
28e0c2f
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
16ba58b
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
4c72759
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
0daeb94
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
fc11261
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
670b6c0
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
af44de1
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
cee7dd5
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
9af35e5
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
8b7930d
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
bdebd19
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
9a5fa5f
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
7e60a26
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
7dfe8ca
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
d415c3a
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
1d375ab
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
b49f6c1
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
a51a284
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
f30a4a8
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
25c6833
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
5f405b0
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
e80947a
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
ea59427
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
406f7b0
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
42d991e
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
6cecab3
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
bdfb40b
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
a4e5a03
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
0f15148
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
c076597
Update casdk-docs/blog/2024-05-16-dotnet8/index.md
YaSuenag Jul 9, 2024
6cdcabc
Fix comments
YaSuenag Jul 10, 2024
07fb748
Update CHANGELOG.md for v1.5
danuw Jul 12, 2024
05e6a91
Update CHANGELOG.md
danuw Jul 16, 2024
fd2f560
Merge pull request #541 from Green-Software-Foundation/Changelog-1.5
danuw Jul 17, 2024
01465dd
Add env directive to values.yaml and troubleshooting guide to avoid i…
YaSuenag Jun 13, 2024
a9d1690
Add env directive into explanation of values.yaml for Helm chart
YaSuenag Jul 20, 2024
4123038
Merge branch 'main' into dev
vaughanknight Jul 23, 2024
1c57aee
Merge pull request #523 from joecus1/dev
danuw Jul 23, 2024
6bbd05e
Merge pull request #524 from YaSuenag/pr/dotnet8-blog
danuw Aug 6, 2024
878f630
typo: fix incorrect usage of it's
trent-s Aug 13, 2024
0b092c9
Docs/blog update for releases 1.3 to1.5 and fix (#551)
danuw Aug 13, 2024
5f0ed0c
Merge branch 'Green-Software-Foundation:dev' into dev
trent-s Aug 13, 2024
89a5ba3
Merge pull request #553 from trent-s/dev
danuw Aug 14, 2024
ecda90d
Add a configuration for disabling to cache JSON emission data
YaSuenag Aug 24, 2024
e67716d
Merge pull request #555 from YaSuenag/pr/update-json-emissiondata
danuw Aug 27, 2024
4a8aa9e
Merge pull request #544 from YaSuenag/pr/inotify
danuw Aug 27, 2024
a036409
Update CHANGELOG.md for 1.6
danuw Sep 10, 2024
d5bd112
Merge pull request #560 from Green-Software-Foundation/Changelog-1.6
danuw Sep 17, 2024
93d9ba2
Merge branch 'main' into dev
danuw Sep 17, 2024
d81d12c
Update 1-pr.yaml
danuw Sep 18, 2024
48d743b
Update dev_carbon-aware-api.yml
danuw Sep 18, 2024
5a5ba8f
Merge pull request #562 from Green-Software-Foundation/hotfix/discrep…
danuw Sep 18, 2024
705e72e
fixes and release notes post for 1.6
danuw Sep 19, 2024
d3b054b
updated blog post
danuw Sep 24, 2024
f412591
docs workflow's node version updated to latest LTS -> 22
danuw Sep 24, 2024
2057c32
DCO Remediation Commit for Dan Benitah <[email protected]>
danuw Sep 24, 2024
cefcd73
blogs with truncate
danuw Sep 24, 2024
3d265a1
node version update back to 20
danuw Sep 24, 2024
eae5bd1
adding yarn.lock
danuw Sep 24, 2024
dfea675
pipelines fixes
danuw Sep 24, 2024
e8b8e84
Update CarbonAwareController.cs (minor typos)
jacksorjacksor Sep 24, 2024
e8e7530
DCO Remediation Commit for Dan Benitah <[email protected]>
danuw Sep 24, 2024
c50f5f5
Merge pull request #568 from Green-Software-Foundation/docs/hotfix
danuw Sep 24, 2024
f05dcf4
Merge pull request #569 from jacksorjacksor/patch-1
danuw Sep 24, 2024
0afba03
Consider null value in carbonIntensity on EM (#575)
YaSuenag Oct 15, 2024
0cd1998
EM datasource didn't filter out-of-range emission data (#572)
YaSuenag Oct 15, 2024
e7def2b
Update CHANGELOG.md
danuw Oct 29, 2024
ead82a2
Merge pull request #580 from Green-Software-Foundation/Changelog-1.6.1
danuw Oct 29, 2024
b502723
Add configuration for tracing log (#531)
YaSuenag Nov 5, 2024
f35bb59
Updating 1.6.1 to include #531 straight away
danuw Nov 5, 2024
a3290f1
DCO Remediation Commit for Dan Benitah <[email protected]
danuw Nov 5, 2024
c723398
fix
danuw Nov 5, 2024
08560c3
Merge pull request #582 from Green-Software-Foundation/Changelog-1.6.…
danuw Nov 5, 2024
f5182d6
add gh cli to devcontainer/codespace
danuw Nov 12, 2024
8ade7de
Merge branch 'main' into hotfix/1.6.1-merge-issues
danuw Nov 12, 2024
e7ba0ff
Merge pull request #586 from Green-Software-Foundation/hotfix/1.6.1-m…
danuw Nov 12, 2024
2380486
Merge branch 'dev' into pr/generate-java-webapi-client
YaSuenag Nov 13, 2024
4abb9c6
Add developerEmail to config.json
YaSuenag Nov 13, 2024
2e51a3e
Fix typo in commit message for Javadoc
YaSuenag Nov 13, 2024
d650520
Upgrade actions/checkout to v4
YaSuenag Nov 13, 2024
6ee03f6
Fix compile error in Program.cs in WebAPI
YaSuenag Nov 13, 2024
a82b090
Merge pull request #471 from YaSuenag/pr/generate-java-webapi-client
danuw Nov 19, 2024
f363695
Merge pull request #588 from Green-Software-Foundation/features/add-g…
danuw Nov 19, 2024
189c3bc
Add workflow for generating NPM library
YaSuenag Nov 20, 2024
b9b7e0b
Add WebAPI client example for TS
YaSuenag Dec 6, 2024
14554d3
Add client API docs into sidebar
YaSuenag Dec 6, 2024
fedbb6d
Merge pull request #591 from YaSuenag/pr/generate-npm-client
danuw Dec 10, 2024
5f97ba6
Add Client API documents for WebAPI 1.0.0
danuw Dec 11, 2024
48bcdaf
Merge pull request #597 from Green-Software-Foundation/gha/pr/webapid…
danuw Dec 17, 2024
ec78553
Update CHANGELOG.md for 1.7
danuw Jan 7, 2025
e5c66ce
Create 2025-01-07-release-1.7.mdx
danuw Jan 7, 2025
ba0d5f0
Create 2024-11-30-relese1.6.1.mdx
danuw Jan 7, 2025
6d372af
Merge pull request #602 from Green-Software-Foundation/Chnagelog-1.7
danuw Jan 14, 2025
f2ab21d
Update CHANGELOG.md
danuw Jan 14, 2025
5dffbcc
Merge pull request #604 from Green-Software-Foundation/Chnagelog-1.7
danuw Jan 14, 2025
44415fa
Merge branch 'dev' into feature/main-merge-conflicts-1.6.1
danuw Jan 19, 2025
a9412ac
Merge pull request #606 from Green-Software-Foundation/feature/main-m…
danuw Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@

// Uncomment the line below to mount your local usersecrets into the devcontainer from a Mac/Linux OS
// "mounts": [ "source=${localEnv:HOME}/.microsoft/usersecrets,target=/root/.microsoft/usersecrets,type=bind" ],

"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},

// Add the IDs of extensions you want installed when the container is created in the array below.
"customizations": {
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/4-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
detect-current-api-version:
uses: ./.github/workflows/detect-webapi-version.yaml
with:
# We cannot use environment variables here due to workflow limitation.
# https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#limitations
registry: ghcr.io
image-repo: ${{ github.repository }}

publish-container-image:
runs-on: ubuntu-latest
needs: detect-current-api-version
permissions:
packages: write
steps:
Expand Down Expand Up @@ -39,3 +48,28 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false

detect-newer-api-version:
needs: publish-container-image
uses: ./.github/workflows/detect-webapi-version.yaml
with:
# We cannot use environment variables here due to workflow limitation.
# https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#limitations
registry: ghcr.io
image-repo: ${{ github.repository }}

generate-webapi-clients:
needs:
- detect-current-api-version
- detect-newer-api-version
if: ${{ needs.detect-current-api-version.outputs.apiver != needs.detect-newer-api-version.outputs.apiver }}
uses: ./.github/workflows/4.a-generate-webapi-clients.yaml
permissions:
contents: write
packages: write
pull-requests: write
with:
# We cannot use environment variables here due to workflow limitation.
# https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#limitations
registry: ghcr.io
image-repo: ${{ github.repository }}
89 changes: 89 additions & 0 deletions .github/workflows/4.a-generate-webapi-clients.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: 4.a-Generate WebAPI client libraries

on:
workflow_call:
inputs:
registry:
type: string
required: true
image-repo:
type: string
required: true
tag:
type: string
required: false
default: latest
workflow_dispatch:
inputs:
registry:
type: string
required: false
default: ghcr.io
image-repo:
type: string
required: false
default: "green-software-foundation/carbon-aware-sdk"
tag:
type: string
required: false
default: latest

permissions:
contents: write
packages: write
pull-requests: write

jobs:
detect-api-version:
uses: ./.github/workflows/detect-webapi-version.yaml
with:
registry: ${{ inputs.registry }}
image-repo: ${{ inputs.image-repo }}
tag: ${{ inputs.tag }}

generate-java-client:
needs: detect-api-version
uses: ./.github/workflows/4.a.1-generate-webapi-client-java.yaml
with:
image: ${{ needs.detect-api-version.outputs.image }}
apiver: ${{ needs.detect-api-version.outputs.apiver }}

generate-npm-client:
needs: detect-api-version
uses: ./.github/workflows/4.a.1-generate-webapi-client-npm.yaml
with:
image: ${{ needs.detect-api-version.outputs.image }}
apiver: ${{ needs.detect-api-version.outputs.apiver }}

push-apidocs:
runs-on: ubuntu-latest
needs:
- detect-api-version
- generate-java-client
- generate-npm-client
env:
DOCPATH: casdk-docs/static/client-apidocs/${{ needs.detect-api-version.outputs.apiver }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: dev
- name: Extract Javadoc
uses: actions/download-artifact@v4
with:
name: javadoc
path: ${{ env.DOCPATH }}/java
- name: Extract TypeDoc
uses: actions/download-artifact@v4
with:
name: typedoc
path: ${{ env.DOCPATH }}/npm
- name: Create PR for Client API docs
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Add Client API documents for WebAPI ${{ needs.detect-api-version.outputs.apiver }}"
branch: gha/pr/webapidoc-${{ needs.detect-api-version.outputs.apiver }}
delete-branch: true
title: "Add Client API documents for WebAPI ${{ needs.detect-api-version.outputs.apiver }}"
body: |
This PR has been created by 4.a-generate-webapi-clients.yaml due to WebAPI version update.
56 changes: 56 additions & 0 deletions .github/workflows/4.a.1-generate-webapi-client-java.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: 4.a.1-Generate WebAPI client library for Java

on:
workflow_call:
inputs:
image:
required: true
type: string
apiver:
required: true
type: string

jobs:
generate-java-client:
runs-on: ubuntu-latest
services:
webapi:
image: ${{ inputs.image }}
ports:
- 8080:8080
options: >-
--health-cmd "curl -sS http://localhost:8080/health"
--health-interval 3s
--health-timeout 5s
--health-retries 5
permissions:
packages: write
env:
API: http://localhost:8080/api/v1/swagger.yaml
steps:
- name: Prepare
run: |
mkdir work pages
npm install -g @openapitools/[email protected]
- name: Generate client library
run: |
echo '{"apiPackage": "foundation.greensoftware.carbonaware.webapi.client", "artifactDescription": "Carbon Aware SDK client library for Java", "artifactId": "casdk-client", "artifactVersion": "${{ inputs.apiver }}", "developerOrganization": "Green Software Foundation", "developerOrganizationUrl": "https://greensoftware.foundation/", "groupId": "foundation.greensoftware", "licenseName": "MIT License", "scmUrl": "${{ env.REPO }}", "artifactUrl": "${{ env.REPO }}/packages/", "scmConnection": "${{ github.repositoryUrl }}", "scmDeveloperConnection": "${{ github.repositoryUrl }}", "licenseUrl": "https://opensource.org/license/mit/", "developerName": "Green Software Foundation", "developerEmail": "[email protected]"}' > config.json
openapi-generator-cli generate -i ${{ env.API }} -g java -o work -c config.json
sed -i "s|</project>|<distributionManagement><repository><id>github</id><name>GitHub Packages</name><url>https://maven.pkg.github.com/${{ github.repository }}</url></repository></distributionManagement></project>|" work/pom.xml
shell: bash
- name: Setup Java 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: maven
- name: Run Maven
run: mvn -B deploy javadoc:javadoc
env:
GITHUB_TOKEN: ${{ github.token }}
working-directory: work
- name: Upload Javadoc
uses: actions/upload-artifact@v4
with:
name: javadoc
path: work/target/apidocs
65 changes: 65 additions & 0 deletions .github/workflows/4.a.1-generate-webapi-client-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: 4.a.1-Generate WebAPI client library for NPM

on:
workflow_call:
inputs:
image:
required: true
type: string
apiver:
required: true
type: string

jobs:
generate-npm-client:
runs-on: ubuntu-latest
services:
webapi:
image: ${{ inputs.image }}
ports:
- 8080:8080
options: >-
--health-cmd "curl -sS http://localhost:8080/health"
--health-interval 3s
--health-timeout 5s
--health-retries 5
permissions:
packages: write
env:
API: http://localhost:8080/api/v1/swagger.yaml
steps:
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: https://npm.pkg.github.com
- name: Prepare
run: |
mkdir work
npm install -g @openapitools/[email protected]
- name: Generate client library
run: |
echo -n '{"npmName": "@${{ github.repository_owner }}/casdk-client", "npmVersion": "${{ inputs.apiver }}", "licenseName": "MIT", "gitUserId": "${{ github.repository_owner }}", "gitRepoId": "' > config.json
echo -n "${{ github.repository }}" | sed -e 's|^.\+/||' >> config.json
echo -n '", "npmRepository": "https://npm.pkg.github.com"}' >> config.json
openapi-generator-cli generate -i ${{ env.API }} -g typescript-axios -o work -c config.json
shell: bash
- name: Publish NPM library
working-directory: work
run: |
npm install
npm publish
env:
NODE_AUTH_TOKEN: ${{ github.token }}
- name: Setup TypeDoc
run: npm install -g typedoc
- name: Generate documents
working-directory: work
run: |
echo '{"out": "docs", "excludePrivate": true, "excludeProtected": true, "excludeExternals": true, "includeVersion": true}' > ../typedoc.json
npx typedoc --options ../typedoc.json --entryPoints index.ts
- name: Upload TypeDoc
uses: actions/upload-artifact@v4
with:
name: typedoc
path: docs
55 changes: 55 additions & 0 deletions .github/workflows/detect-webapi-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Detect API version from OpenAPI document in WebAPI container image

on:
workflow_call:
inputs:
registry:
type: string
required: true
image-repo:
type: string
required: true
tag:
type: string
required: false
default: latest
outputs:
image:
value: ${{ jobs.make-image-name-for-pull.outputs.image }}
apiver:
value: ${{ jobs.detect-api-version.outputs.apiver }}

jobs:
make-image-name-for-pull:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.make-image-name.outputs.IMAGE_NAME }}
steps:
- name: Make string for pulling container image
id: make-image-name
run: |
REPO=${{ inputs.registry }}/${{ inputs.image-repo }}
REPO_LOWER=${REPO,,}
echo "IMAGE_NAME=$REPO_LOWER:${{ inputs.tag }}" >> "$GITHUB_OUTPUT"

detect-api-version:
needs: make-image-name-for-pull
runs-on: ubuntu-latest
services:
webapi:
image: ${{ needs.make-image-name-for-pull.outputs.image }}
ports:
- 8080:8080
options: >-
--health-cmd "curl -sS http://localhost:8080/health"
--health-interval 3s
--health-timeout 5s
--health-retries 5
outputs:
apiver: ${{ steps.detect-api-version.outputs.CURRENT_API_VERSION }}
steps:
- name: Detect API version
id: detect-api-version
run: |
API_VERSION=`curl -sS http://localhost:8080/api/v1/swagger.yaml | yq -r .info.version`
echo "CURRENT_API_VERSION=$API_VERSION" >> "$GITHUB_OUTPUT"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ src/data/location-sources/custom-azure-zones.json
# exclude artifacts on java-client example
samples/java-client/target

casdk-docs/docs/samples/*
casdk-docs/docs/samples/*
node_modules/
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

All notable changes to the Carbon Aware SDK will be documented in this file.

## [1.7] - 2025-01

This release mainly introduces new clients libraries for NPM and Java [https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.7](https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.7)

### Added

- [PR #591] Publish WebAPI client library for NPM ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/591)
- [PR #597] Add Client API documents for WebAPI 1.0.0 ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/597)
- [PR #588] Add gh cli to devcontainer/codespace ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/588)
- [PR #471] Add GHA workflow for generating WebAPI client library for Java ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/471)

### Fixed

- [#571] [Bug]: Cannot get the value of a token type 'Null' as a number ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/571)
- [#570] [Bug]: webapi query on bylocation shows 24 hours worth of data even when smaller range requested ](https://github.com/Green-Software-Foundation/carbon-aware-
sdk/issues/570)

For more details, checkout [https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/601](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/601)

## [1.6.1] - 2024-11

Release addressing minor issues [https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.6.1](https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.6.1)
Expand Down
23 changes: 23 additions & 0 deletions casdk-docs/blog/2024-11-30-relese1.6.1.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
slug: release-v1.6.1
title: Release v1.6.1
tags: [v1.6.1, release]
---

Release 1.6.1


Release addressing minor issues [https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.6.1](https://github.com/Green-Software-Foundation/carbon-aware-sdk/labels/v1.6.1)

<!-- truncate -->

### Added

- [PR #531] Add configuration for tracing log](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/531)

### Fixed

- [PR #575] Consider null value in carbonIntensity on EM ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/575)
- [PR #572] EM datasource didn't filter out-of-range emission data ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/572)

For more details, checkout [https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/579](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/579)
Loading
Loading