Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add community contribution labeling workflow #62

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iamshobhraj
Copy link

Description

Add GitHub Actions workflow to automatically manage the "community-contribution-in-progress" label on issues based on external contributor assignments. This PR implements the workflow part that calls the shared action from learningequality/.github repository.

Issue addressed

Addresses learningequality/kolibri#12923

Changelog

Steps to test

  1. Assign any issue to someone
  2. Verify the community contribution label is automatically added
  3. Unassign the issue
  4. Verify the label is automatically removed

(optional) Implementation notes

At a high level, how did you implement this?

Added a workflow file that:

  • Triggers on issue assignment/unassignment
  • Uses the shared labeling action from learningequality/.github repository
  • Configures proper authentication using workflow PAT

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included (N/A)
  • Critical and brittle code paths are covered by unit tests
  • The change is described in the changelog section above

Reviewer guidance

  • Is the code clean and well-commented?
  • Are there tests for this change?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Add other things to check for here

After review

  • The changelog item has been pasted to the CHANGELOG.md

Comments

@MisRob MisRob self-requested a review January 20, 2025 04:40
@MisRob MisRob self-assigned this Jan 28, 2025
@learning-equality-bot
Copy link

Automatically unassigning @MisRob due to inactivity. @MisRob, If you're still interested in this issue or already have work in progress, please message us here, and we'll assign you again. Thank you!

@MisRob
Copy link
Member

MisRob commented Jan 31, 2025

@iamshobhraj, please ignore the comment above, I am just testing another action that wasn't supposed to do this :)

call-label-action:
uses: learningequality/.github/.github/workflows/community-contribution-label.yml@main
secrets:
token: ${{ secrets.WORKFLOW_PAT }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here token will need to be replaced by

LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }}
LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }}

(we have these set already in this repository so it should work)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 5ba17f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants