@@ -62,44 +62,42 @@ The following workflows are ordered by schedule frequency and start time.
62
62
63
63
This creates GitHub teams for the Community teams and updates their membership
64
64
based on the [ ` community_team_members.json ` ] [ databag ] Lektor databag.
65
- - The databag is used to:
66
- - create the [ Community Team Members — Creative Commons Open
67
- Source] [ ctlistpage ] page
68
- - configure GitHub team memberships and repository permissions
69
- - The databag is kept up-to-date by [ Push data to CC Open
70
- Source] ( #push-data-to-cc-open-source ) , below
65
+ - The databag is used to:
66
+ - create the [ Community Team Members — Creative Commons Open
67
+ Source] [ ctlistpage ] page
68
+ - configure GitHub team memberships and repository permissions
69
+ - The databag is kept up-to-date by [ Push data to CC Open
70
+ Source] ( #push-data-to-cc-open-source ) , below
71
71
72
72
[ sync_teams_yml ] : .github/workflows/sync_community_teams.yml
73
73
[ teams_file ] : sync_community_teams.py
74
74
[ databag ] : https://github.com/creativecommons/creativecommons.github.io-source/blob/master/databags/community_team_members.json
75
75
[ ctlistpage ] : https://opensource.creativecommons.org/community/community-team/members/
76
76
77
77
78
- ### Manage issues and pull requests in projects
78
+ ### Manage new issues and pull requests in projects
79
79
80
80
| ** Workflow** | | |
81
81
| -- | --: | --- |
82
82
| | Schedule: | Hourly at 45 minutes past the hour (` **:45 ` ) |
83
83
| | YAML: | [ ` manage_issues.yml ` ] [ manage_issues ] |
84
84
| ** Script** | | |
85
- | | File: | [ ` move_closed_issues.py ` ] [ move_file ] |
86
- | | File: | [ ` track_issues_and_pull_requests.py ` ] [ track_issues ] |
85
+ | | File: | [ ` manage_new_issues_and_pull_requests.py ` ] [ manage_new_issues ] |
87
86
| | Common Modules: | [ ` ccos/ ` ] ( ccos/ ) |
88
87
| ** Env** | | |
89
88
| | Required: | ` ADMIN_GITHUB_TOKEN ` |
90
89
91
- This manages issues and pull requests to ensure they are properly tracked
92
- within the [ Active Sprint] [ active_sprint ] and [ Backlog] [ backlog ] projects:
93
- - Move closed issues from [ Backlog] [ backlog ] to [ Active
94
- Sprint] [ active_sprint ] : Done
95
- - Track open issues in [ Backlog] [ backlog ] : Pending Review
96
- - Track open pull requests in [ Active Sprint] [ active_sprint ] : Code Review
90
+ This manages new issues and pull requests to ensure they are properly tracked
91
+ in a GitHub project:
92
+ - [ Applications project] [ proj_applications ]
93
+ - [ Systems project] [ proj_systems ]
94
+ - [ WebDev project] [ proj_webdev ]
97
95
98
96
[ manage_issues ] : .github/workflows/manage_issues.yml
99
- [ move_file ] : move_closed_issues .py
100
- [ track_issues ] : track_issues_and_pull_requests.py
101
- [ active_sprint ] : https://github.com/orgs/creativecommons/projects/7
102
- [ backlog ] : https://github.com/orgs/creativecommons/projects/10
97
+ [ manage_new_issues ] : manage_new_issues_and_pull_requests .py
98
+ [ proj_applications ] : https://github.com/orgs/creativecommons/projects/15/views/1
99
+ [ proj_systems ] : https://github.com/orgs/creativecommons/projects/22/views/1
100
+ [ proj_webdev ] : https://github.com/orgs/creativecommons/projects/23/views/1
103
101
104
102
105
103
### Normalize Repos
@@ -206,37 +204,59 @@ GitHub Action:
206
204
` ` `
207
205
208
206
209
- ## Python Dependencies
207
+ ## Development
208
+
209
+ Local development and testing is facilitated by helper scripts:
210
+ - ` ./dev/tools.sh`: Checks and updates Python formatting
211
+ - `.dev/test.sh` : Uses act and Docker to test workflows
212
+ - [nektos/act](https://github.com/nektos/act) : _Run your GitHub Actions
213
+ locally 🚀_
214
+
210
215
211
- - [Asana/python-asana][python-asana]: Official Python client library for the
212
- Asana API v1
213
- - [carpedm20/emoji][emoji]: emoji terminal output for Python
214
- - [gitpython-developers/GitPython][gitpython]: GitPython is a python library
215
- used to interact with Git repositories.
216
- - [PyGithub/PyGithub][pygithub]: Typed interactions with the GitHub API v3
217
- - [PyYAML][pyyaml] is a full-featured YAML framework for the Python programming
218
- language
219
- - [Requests][requests]: HTTP for Humans™
216
+ # ## Python Dependencies
217
+
218
+ - [Asana/python-asana][python-asana] : _Official Python client library for the
219
+ Asana API v1_
220
+ - [carpedm20/emoji][emoji] : _e_moji terminal output for Python_
221
+ - [gitpython-developers/GitPython][gitpython] : _GitPython is a python library
222
+ used to interact with Git repositories._
223
+ - [graphql-python/gql][pygql] : _A GraphQL client in Python_
224
+ - [PyGithub/PyGithub][pygithub] : _Typed interactions with the GitHub API v3_
225
+ - [PyYAML][pyyaml] : _a full-featured YAML framework for the Python
226
+ programming language_
227
+ - [Requests][requests] : _HTTP for Humans™_
220
228
221
229
[python-asana] : https://github.com/asana/python-asana
222
230
[emoji] : https://github.com/carpedm20/emoji/
223
231
[gitpython] : https://github.com/gitpython-developers/GitPython
232
+ [pygql] : https://github.com/graphql-python/gql
224
233
[pygithub] : https://github.com/pygithub/pygithub
225
234
[pyyaml] : https://pyyaml.org/
226
235
[requests] : https://requests.readthedocs.io/en/latest/
227
236
228
237
229
- ## Development
238
+ # ## GitHub GraphQL API
230
239
231
- Local development and testing is facilitated by helper scripts:
232
- - ` ./dev/tools.sh`: Checks and updates Python formatting
233
- - `.dev/test.sh` : Uses act and Docker to test workflows
234
- - [nektos/act]( https://github.com/nektos/act) : _Run your GitHub Actions
235
- locally 🚀_
240
+ - [Using the API to manage Projects - GitHub Docs][projectsv2api]
241
+ - [Forming calls with GraphQL - GitHub Docs][formingcalls]
242
+
243
+ [projectsv2api] : https://docs. github.com/en/issues/planning-and-tracking-with-projects/automating- your-project/using-the-api-to-manage-projects
244
+ [formingcalls] : https://docs.github.com/en/graphql/guides/forming-calls-with-graphql
236
245
237
246
238
247
# # License
239
248
240
249
- [`LICENSE`](LICENSE) (Expat/[MIT][mit] License)
241
250
242
251
[mit] : http://www.opensource.org/licenses/MIT "The MIT License | Open Source Initiative"
252
+
253
+
254
+ # ## GitHub GraphQL API schema
255
+
256
+ The GitHub GraphQL API public schema
257
+ ([`ccos/schema.docs.graphql`][graphqlschema]) was downloaded from [Public
258
+ schema - GitHub Docs][publicschema] and is not within scope of the Expat/MIT
259
+ license of this project.
260
+
261
+ [graphqlschema] : ccos/schema.docs.graphql
262
+ [publicschema] : https://docs.github.com/en/graphql/overview/public-schema
0 commit comments