Add GitHub actions to automatically mark community contributions#3007
Add GitHub actions to automatically mark community contributions#3007ptrendx wants to merge 4 commits into
Conversation
Signed-off-by: Przemek Tredak <ptredak@nvidia.com>
Greptile SummaryThis PR adds a GitHub Actions workflow (
Confidence Score: 4/5The workflow is safe to merge but will mislabel explicitly-invited repository collaborators as community contributors. The .github/workflows/community_label.yml — specifically the isOrgMember condition at lines 32–33. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR opened / synchronized] --> B{author_association}
B -- MEMBER or OWNER --> C[getCollaboratorPermissionLevel]
B -- COLLABORATOR
⚠️ incorrectly routed --> D[Label: community-contribution]
B -- CONTRIBUTOR / NONE / etc. --> D
C -- write or admin --> E[No label applied]
C -- read / triage / none --> F[Label: org-contribution]
C -- 404 error --> G[maintain / other → org-contribution]
D --> H[addLabels API call]
F --> H
Reviews (3): Last reviewed commit: "Remove unnecessary indentation" | Re-trigger Greptile |
Signed-off-by: Przemek Tredak <ptredak@nvidia.com>
Signed-off-by: Przemek Tredak <ptredak@nvidia.com>
Description
GitHub action to automatically mark the external contributions as community-contribution and the NVIDIA contributions from outside the core team as org-contributions.
Type of change