Skip to content

Commit

Permalink
chore(ci): check for valid org names
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Dec 16, 2023
1 parent ebd8185 commit aabb3b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ The institution blocks look like this:
"sector": "<sector where this institution belongs to>",
"ts": null,
"shortname": "<the short name of the institution>",
"name_de": "<the german name of the instution>",
"name_de": "<the german name of the institution>",
"orgs": [
{ "name": "<name of the github orga of this instituion>", "ts": null },
{ "name": "<name of the github orga of this institution>", "ts": null },
{
"name": "<name of the other github orga(s) of this instituion>",
"name": "<name of the other github orga(s) of this institution>",
"ts": null
}
]
Expand Down Expand Up @@ -43,6 +43,8 @@ sector needs to be one of these:
- Pharma
- PolitcalParties

**Important** The name of the GitHub org needs to match the org URL and can't contain any spaces.

Just edit or append a new block to the file and make a pull request.

If everything is correct it will be added and updated on the website.
Expand Down
2 changes: 2 additions & 0 deletions validate_github_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def fileError(err):
fileError(org)
if not org["name"]:
fileError(org)
if " " in org["name"]:
fileError(org)

repos.close()
print("File ok")

0 comments on commit aabb3b9

Please sign in to comment.