Commit 34254cc
authored
Update app.py for ADD_MEMBER attribute
More information in issue:
- #214
CHANGES:
- ADD: if-statement to check if ADD_MEMBER attribute is `true` and if the user is not a member of the organization
- Uses the org.add_or_update_membership function to add the user to the organization
- CHANGE: if-statement to add a user to a GitHub team only if they are a member of the organization already1 parent 743e8a8 commit 34254cc
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
| |||
0 commit comments