@@ -4,56 +4,87 @@ These are scripts used to maintain various pieces of CC's open source community
4
4
infrastructure.
5
5
6
6
7
- ## Scripts
7
+ ## Workflows
8
+
8
9
9
- ### ` normalize_repos.py `
10
+ ### Normalize Repos
10
11
12
+ - Workflow
13
+ - Status: [ ![ Normalize Repos] [ norm_badge ]] [ norm_link ]
14
+ - Schedule: Hourly at 45 minutes past the hour (` **:45 ` )
15
+ - YAML: [ ` normalize_repos.yml ` ] [ norm_pr_yml ]
11
16
- Script: ` normalize_repos.py `
12
17
- Common Modules: [ ` ccos/ ` ] ( ccos/ )
13
18
- Specific Modules: [ ` ccos/norm/ ` ] ( ccos/norm/ )
14
- - Workflow
15
- - Status: [ ![ Add Community PRs to Project] [ b1 ]] [ l1 ]
16
- - Schedule: Hourly at 45 minutes past the hour
17
- - YAML: [ ` normalize_repos.yml ` ] [ norm_pr_yml ]
18
19
- Required Environment Variables:
19
20
- ` ADMIN_GITHUB_TOKEN `
20
21
21
- This script ensures that all active repositories in the creativecommons GitHub
22
- organization are consistent in the following ways:
22
+ This workflow ensures that all active repositories in the creativecommons
23
+ GitHub organization are consistent in the following ways:
23
24
- They have all the labels defined in ` labels.yml ` present.
24
25
- They have standard branch protections set up (with some exceptions).
25
26
26
27
This script will only update color and description of existing labels or create
27
28
new labels. It will never delete labels.
28
29
29
30
[ norm_pr_yml ] : .github/workflows/normalize_repos.yml
30
- [ b2 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/normalize_repos.yml/badge.svg
31
- [ l2 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/normalize_repos.yml
31
+ [ norm_badge ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/normalize_repos.yml/badge.svg
32
+ [ norm_link ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/normalize_repos.yml
32
33
33
34
34
- ## Environment Variables
35
+ ### Push data to CC Open Source
36
+
37
+ - Workflow
38
+ - Status: [ ![ Push data to CC Open Source] [ data_badge ]] [ data_link ]
39
+ - Schedule: Daily at midnight:15 (` 00:15 ` )
40
+ - YAML: [ ` push_data_to_ccos.yml ` ] [ push_ccos_yml ]
41
+ - Script: ` push_data_to_ccos.py `
42
+ - Common Modules: [ ` ccos/ ` ] ( ccos/ )
43
+ - Specific Modules: [ ` ccos/data/ ` ] ( ccos/data/ )
44
+ - Required Environment Variables:
45
+ - ` ADMIN_ASANA_TOKEN `
46
+ - ` ADMIN_GITHUB_TOKEN `
35
47
48
+ This workflow retreives data from Asana, formats it as a lektor databag, and
49
+ pushes it to CC Open Source website source repository:
50
+ - Data Source: [ Community Team Tracking - Asana] [ asana ] (limited access)
51
+ - Data Destination:
52
+ - [ ` creativecommons.github.io-source ` ] [ ccos_source ]
53
+ - [ ` databags/community_team_members.json ` ] [ db_community ]
54
+ - [ ` databags/repos.json ` ] [ db_repos ]
36
55
37
- ### ` ADMIN_GITHUB_TOKEN `
56
+ The destination data is used by the following pages:
57
+ - [ Community Team Members — Creative Commons Open Source] [ ctlistpage ]
58
+ - [ Open Source Projects — Creative Commons Open Source] [ osproj ]
38
59
39
- GitHub token with admin permissions to the ` creativecommons ` GitHub
40
- organization.
60
+ [ data_badge ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/push_data_to_ccos.yml/badge.svg
61
+ [ data_link ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/push_data_to_ccos.yml
62
+ [ ctlistpage ] : https://opensource.creativecommons.org/community/community-team/members/
63
+ [ osproj ] : https://opensource.creativecommons.org/contributing-code/projects/
64
+ [ asana ] : https://app.asana.com/0/1172465506923657/list
65
+ [ ccos_source ] : https://github.com/creativecommons/creativecommons.github.io-source
66
+ [ db_community ] : https://github.com/creativecommons/creativecommons.github.io-source/blob/main/databags/community_team_members.json
67
+ [ db_repos ] : https://github.com/creativecommons/creativecommons.github.io-source/blob/main/databags/repos.json
41
68
42
69
43
- ## Workflows
70
+ ## Environment Variables
71
+
72
+ - ` ADMIN_ASANA_TOKEN ` : Asana token with access to the Creative Commons Asana
73
+ organization
74
+ - ` ADMIN_GITHUB_TOKEN ` : GitHub token with admin permissions to the
75
+ ` creativecommons ` GitHub organization
76
+
77
+
78
+ ## Old Workflows Documentation
44
79
45
80
| Workflow Name/Status | YML File Name | Workflow Purpose |
46
81
| -------------------- | ------------- | ---------------- |
47
82
| [ ![ Add Community PRs to Project] [ b1 ]] [ l1 ] | [ ` add_community_pr.yml ` ] [ community_pr_yml ] | Runs hourly at 5 minutes past every hour UTC and adds new Vocabulary issues to [ Vocabulary: In Progress] [ vocab_in_progress ] |
48
- | [ ![ Push data to CC Open Source] [ b3 ]] [ l3 ] | [ ` push_data_to_ccos.yml ` ] [ push_ccos_yml ] | Runs daily at 00:00 UTC and whenever someone pushes to the main branch and uses [ ` push_data_to_ccos ` ] [ push_to_ccos ] |
49
83
| [ ![ Sync Community Teams with GitHub] [ b4 ]] [ l4 ] | [ ` sync_community_team.yml ` ] [ sync_team_yml ] | Runs daily at 00:30 UTC and whenever someone pushes to the main branch and uses [ ` sync_community_team ` ] [ sync_team ] |
50
84
| [ ![ Track new issues in backlog] [ b5 ]] [ l5 ] | [ ` track_backlog.yml ` ] [ track_backlog ] | Runs hourly at 45 minutes past every hour UTC and adds PRs to [ Active Sprint: Code Review] [ active_sprint ] and new issues to [ Backlog: Pending Review] [ backlog_pending ] . Uses [ dhruvkb/issue-projector] [ issue-projector ] . |
51
85
52
86
[ b1 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/add_community_pr.yml/badge.svg
53
87
[ l1 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/add_community_pr.yml
54
-
55
- [ b3 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/push_data_to_ccos.yml/badge.svg
56
- [ l3 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/push_data_to_ccos.yml
57
88
[ b4 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/sync_community_team.yml/badge.svg
58
89
[ l4 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/sync_community_team.yml
59
90
[ b5 ] : https://github.com/creativecommons/ccos-scripts/actions/workflows/track_backlog.yml/badge.svg
0 commit comments