Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ES-DOC/esdoc-errata-client
Browse files Browse the repository at this point in the history
  • Loading branch information
AtefBN committed Feb 12, 2018
2 parents 04facae + 2545baa commit ab28835
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions notebooks/esgissue-and-cmip6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"source": [
"Setting up errata access\n",
"-----------------------\n",
"1. Contact your ES-DOC-ERRATA administrator to be part the organization team specified for the institute and project you on behalf of which wishes to publish errata.\n",
"1. Ask authorization for errata publication: authorization is controlled using GitHub’s organizations invitational based structure. The ES-DOC officers are the only person qualified to add GitHub users to the requested teams. For the authorization, a user needs to be part of the organization team specified for the institute and project he/she on behalf of which wishes to publish errata. Ask [Mark Greenslate](mailto:[email protected]) or [David Hassell](mailto:[email protected]) to add your GitHub username as part of the `cmip6-<your_institute>` and `errata-publication` teams of the `ES-DOC-INSTITUTIONAL` organization\n",
"2. Go on [your GitHub profile](https://github.com/settings/profile)\n",
"3. Click on **[Developer Settings](https://github.com/settings/developers)**\n",
"4. Click on **[Personal Access Token](https://github.com/settings/tokens)**\n",
Expand Down Expand Up @@ -59,6 +59,7 @@
"esgissue changepass --oldpass xxxxxxxxx --newpass xxxxxxxx\n",
"\n",
"# Solution 2: export your GitHub token as an environement variable\n",
"export ESDOC_HOME=~/.esdoc\n",
"export ERRATA_GITHUB_USERNAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",
"export ERRATA_CLIENT_GITHUB_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
]
Expand Down Expand Up @@ -87,17 +88,19 @@
" \"project\": \"cmip6\",\n",
" \"severity\": \"medium\",\n",
" \"materials\": [\n",
" \"http://myerrata.com/images/before.jpg\",\n",
" \"http://myerrata.com/images/after.jpg\"\n",
" \"https://upload.wikimedia.org/wikipedia/commons/a/a4/Socrates_Louvre.jpg\",\n",
" \"https://upload.wikimedia.org/wikipedia/commons/b/b0/Ethanol-3D-balls.png\"\n",
" ],\n",
" \"url\": \"http://websitetest.com/\"\n",
" \"urls\": [\n",
" \"http://www.bbc.co.uk/weather/2655262\"\n",
" ]\n",
"}\n",
"EOF\n",
"\n",
"# List the affected dataset IDs\n",
"cat << EOF > dsets.txt\n",
"cmip6.CMIP.IPSL.IPSL-CM6-1.historical.r1i1p1f1.3hr.clt.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6-1.historical.r1i1p1f1.Amon.tas.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.3hr.clt.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.Amon.tas.gr.v20170531\n",
"EOF\n",
"\n",
"# Register the issue\n",
Expand Down Expand Up @@ -136,10 +139,12 @@
" \"project\": \"cmip6\",\n",
" \"severity\": \"critical\",\n",
" \"materials\": [\n",
" \"http://myerrata.com/images/before.jpg\",\n",
" \"http://myerrata.com/images/after.jpg\"\n",
" \"https://upload.wikimedia.org/wikipedia/commons/a/a4/Socrates_Louvre.jpg\",\n",
" \"https://upload.wikimedia.org/wikipedia/commons/b/b0/Ethanol-3D-balls.png\"\n",
" ],\n",
" \"urls\": [\n",
" \"http://www.bbc.co.uk/weather/2655262\"\n",
" ],\n",
" \"url\": \"http://websitetest.com/\",\n",
" \"status\": \"onhold\",\n",
" \"dateClosed\": \"YYYY-MM-DD HH:MM:SS\",\n",
" \"dateUpdated\": \"YYYY-MM-DD HH:MM:SS\"\n",
Expand All @@ -148,9 +153,9 @@
"\n",
"# Modify the affected dataset IDs list\n",
"cat << EOF > dsets.txt\n",
"cmip6.CMIP.IPSL.IPSL-CM6-1.historical.r1i1p1f1.6hr.clt.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6-1.historical.r1i1p1f1.Amon.tas.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6-1.historical.r1i1p1f1.day.tas.gr.v20170630\n",
"cmip6.CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.6hr.clt.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.Amon.tas.gr.v20170531\n",
"cmip6.CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.day.tas.gr.v20170630\n",
"EOF\n",
"\n",
"# Update the issue\n",
Expand Down

0 comments on commit ab28835

Please sign in to comment.