Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
detlefarend committed Sep 12, 2023
1 parent 963f26c commit ede75cc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/assign_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Add issues to project MLPro

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issues to project MLPro
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@RELEASE_VERSION
with:
# You can target a project in a different organization
# to the issue
project-url: https://github.com/orgs/fhswf/projects/11
github-token: ${{ secrets.ISSUE_UPDATES }}
# labeled: bug, needs-triage
# label-operator: OR
1 change: 1 addition & 0 deletions .github/workflows/marketplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
pip3 install mlpro
pip3 install PyGithub
python3 ${GITHUB_WORKSPACE}/marketplace/update_marketplace.py ${{ secrets.MARKETPLACE_UPDATE_TOKEN }}
23 changes: 16 additions & 7 deletions marketplace/update_marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,25 @@ def _report_pending_extensions(self, p_new_extensions : list):

# 1 Get MLPro's administrators
repo_mlpro = self.gh.get_repo( 'fhswf/mlpro')
mlpro_team = repo_mlpro.get_teams()
mlpro_team = repo_mlpro.get_teams()[0]
mlpro_collaborators = repo_mlpro.get_collaborators()

for team in mlpro_team:
print('Team: ', team)
members = team.get_members(role='Maintainer')
for member in members:
for team in repo_mlpro.get_teams():
if team.name != 'MLPro': continue
for member in team.get_members(role='maintainer'):
print(member)
# print(repo_mlpro.get_collaborator_permission(member))
print('\n')

# for collaborator in mlpro_collaborators:
# if not team.has_in_members(collaborator):
# print(collaborator)

# for team in mlpro_team:
# print('Team: ', team)
# members = team.get_members()
# for member in members:
# print(member)
# # print(repo_mlpro.get_collaborator_permission(member))
# print('\n')


# 1 Reporting
Expand Down

0 comments on commit ede75cc

Please sign in to comment.