avinashkranjan / Pentesting-and-Hacking-Scripts

🚀 A curated collection of Pentesting and Hacking Scripts for Script Kiddie to Advanced Pentesters. 👨‍💻
Creative Commons Zero v1.0 Universal
181 stars 131 forks source link

docs: add workflow to include labels after analyzing title of PR #494

Closed Anmol-Baranwal closed 10 months ago

Anmol-Baranwal commented 11 months ago

Reference: https://github.com/hoho4190/issue-pr-labeler

About Regex Expression

You can test it here: https://regex101.com/

I am taking two examples, which you must read so that you can properly review the PR.

Description

Reference

There are two workflows that I found to implement this:

  1. https://github.com/TimonVS/pr-labeler-action
  2. https://github.com/hoho4190/issue-pr-labeler (used this due to recent release and no issues on the repository)

What you need to do

  1. This is the only label goal: build that I have used since there was none. So, you can create them, or it will automatically be created during the analysis, but it will not be permanently stored in the labels of the repository.
- label: 'goal: build'
    regexs:
      - /build/i
    events: [pull_request]
    targets: [title]
  1. Double check the issue forms, and the labels in the repository, because it will be a huge mess if the label is wrong.

Fixes Issue Number

Closes #473

Have you read the Contributing Guidelines on Pull Requests?

Type of change

Checklist:

Anmol-Baranwal commented 11 months ago

If you want to see an example.

image