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] GitHub Repo Label Automation #171

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

Conversation

unnamed-lab
Copy link
Contributor

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.

github com_unnamed-lab_ai-qr-generator_issues_8 (1)

Copy link

vercel bot commented Jun 22, 2024

@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.

@unnamed-lab
Copy link
Contributor Author

4562cbf

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.

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.

1 participant