[feat] GitHub Repo Label Automation
MagicUI GitHub Actions Automation
Description:
This workflow triggers when an issue is opened or reopened. It defines four jobs: “error,” “help,” “question,” “feature” and "component." Each job corresponds to specific conditions based on the issue title. For example, the error job runs if the issue title indicates a bug, while the help job activates for titles related to fixing, assistance, or typos. Each job identifies the issue using environment variables and adds an appropriate label (such as bug, help wanted, question, or enhancement) using the gh issue edit command.
Workflow Name and Trigger:
The workflow is named “Search & Update Issue Label by Unnamed.” It triggers when an issue is opened or reopened. Jobs:
- The workflow defines four jobs: error, help, question, and feature.
- Each job corresponds to a specific condition based on the issue title.
Job Conditions:
- The error job runs if the issue title starts with “bug,” “bugs,” “[bug],” or contains the word “bug.”
- The help job runs if the issue title starts with “fix,” “[fix],” contains “help,” “help needed,” “HELP,” “HELP NEEDED,” “assist,” or “typo.”
- The question job runs if the issue title starts with “question,” “[question],” or contains the word “question.”
- The feature job runs if the issue title starts with “feature,” “[feature],” “enhancement,” or “[enhancement],” or contains “enhancement” or “feature.”
- The component job runs if the issue title starts with “component,” “[component],” or contains the word “component.”
Job Steps:
- Each job performs the following steps:
- Identifies the issue using environment variables (GH_TOKEN, GH_REPO, NUMBER).
- Adds a specific label (bug, help wanted, question, or enhancement) to the issue using the gh issue edit command.
@unnamed-lab is attempting to deploy a commit to the product-studio Team on Vercel.
A member of the Team first needs to authorize it.
https://github.com/magicuidesign/magicui/pull/171/commits/4562cbf069b01061a97abe3c034256f7a53b5859
This is a GitHub Actions workflow file that automates a welcoming message to new contributors who open an issue or pull request in a repository.
The workflow, named "Greet New Contributor", is triggered when a new issue or pull request is opened. The message is customized based on whether it's an issue or pull request, and includes emojis to make it friendly and welcoming.
The workflow runs on an Ubuntu environment and uses the GITHUB_TOKEN secret to authenticate the interaction. The message is posted as a comment on the issue or pull request, making the contributor feel welcome and acknowledged by the community.
This automation aims to create a positive experience for new contributors, encouraging them to engage more with the project and fostering a sense of community.
closing for now as not needed at the moment. appreciate it!