Skip to content

Commit af855d3

Browse files
committed
set default fix
1 parent e1762b4 commit af855d3

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

2.42 KB
Binary file not shown.

publiccode.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ categories:
22
- it-development
33
description:
44
en:
5+
apiDocumentation: ''
6+
awards: []
7+
documentation: ''
8+
features: []
59
genericName: This GitHub Action automatically generates and updates a publiccode.yaml
610
file in the root of your repository, based on repository metadata. The file
711
is updated each time a push is made to the main branch.
12+
localisedName: ''
13+
longDescription: ''
14+
screenshots: []
15+
shortDescription: ''
16+
videos: []
817
developmentStatus: development
918
landingURL: ''
1019
legal: []

update_publiccode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from datetime import datetime
44

55
def set_default(d, key, default_value):
6+
if not isinstance(d, dict):
7+
return
68
if key not in d:
79
d[key] = default_value
810

0 commit comments

Comments
 (0)