blog.dipien.com Open in urlscan Pro
162.159.152.4  Public Scan

Submitted URL: https://blog.dipien.com/add-useful-labels-to-your-pull-requests-with-github-actions-33c3f8ca59b2
Effective URL: https://blog.dipien.com/add-useful-labels-to-your-pull-requests-with-github-actions-33c3f8ca59b2?gi=fe08c138e34d
Submission: On September 12 via manual from GB — Scanned from GB

Form analysis 0 forms found in the DOM

Text Content

Open in app

Sign up

Sign In

Write


Sign up

Sign In


Mastodon

Member-only story


ADD USEFUL LABELS TO YOUR PULL REQUESTS WITH GITHUB ACTIONS


3 USEFUL LABELS TO AUTOMATICALLY ADD TO YOUR PULL REQUEST USING GITHUB ACTIONS.

Maxi Rosson

·

Follow

Published in

Dipien

·
3 min read
·
Sep 3, 2021

18



Listen

Share



Github Actions has lots of useful third-party actions to help you to improve
your productivity. One of them isLabeler, which lets you easily add automatic
labels to your pull requests.

Let’s explore this Github Action and see how we can use it to automatically add
some useful labels to your PRs.

> You can support this publication by becoming a member of Medium and getting
> unlimited access to every story. The writer will receive a portion of your
> membership fee. Just Buy Medium Membership here


CONFIGURATION

To start using the Labeler Github Action, you need to create
the.github/workflows/labeler.yml file with the following content:

name: "Pull Request Labeler"
on:
  - pull_request

jobs:
  label:
    runs-on: ubuntu-latest
    steps:

      # https://github.com/marketplace/actions/pr-labeler-based-on-multiple-rules
      - uses: srvaroa/labeler@v0.8
        with:
          config_path: .github/labeler_config.yml
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

On the .github/labeler_config.yml file you can define the action configuration.

Now, let's explore some interesting use cases for this GitHub Action.


DIFF SIZE LABELS

As a pull request reviewer, sometimes you don’t have enough time to review a big
pull request. In certain moments you have some free minutes to review small pull
requests.

Adding a label to the pull request with its size it’s very helpful, so you have
a quick preview of the time it will take to you to review it.

On the .github/labeler_config.yml file you can configure the action to assign
different labels according to the diff size:

version: 1
labels:
  - label: "xsmall-diff"
    size-below: 10
  - label: "small-diff"
    size-above: 9
    size-below: 100
  - label: "medium-diff"
    size-above: 99…

READ THE FULL STORY WITH A FREE ACCOUNT.

The author made this story available to Medium members only.
Sign up to read this one for free.



Continue in app
Or, continue in mobile web



Sign up with Google

Sign up with Facebook

Sign up with email

Already have an account? Sign in





18

18



Follow




WRITTEN BY MAXI ROSSON

1.7K Followers
·Editor for

Dipien

I write about Bitcoin, Productivity tools & ideas for Android, Kotlin & Gradle
developers | ⚡️maxirosson@getalby.com

Follow





MORE FROM MAXI ROSSON AND DIPIEN

Maxi Rosson

in

Dipien


STOP GENERATING THE BUILDCONFIG ON YOUR ANDROID MODULES


WHY GENERATING THE BUILDCONFIG CLASS IS A BAD IDEA


·5 min read·Nov 21, 2020

325

4




Maxi Rosson

in

Dipien


THE BEST BOOKS TO LEARN KOTLIN IN 2022


THE BEST BOOKS TO START LEARNING THIS INCREDIBLE PROGRAMMING LANGUAGE

8 min read·Nov 12, 2020

61





Maxi Rosson

in

Dipien


30 IDEAS TO REDUCE YOUR ANDROID APP STARTUP TIMES


THE ULTIMATE GUIDE TO ACCELERATING YOUR ANDROID APP: TIPS FOR REDUCING STARTUP
TIMES AND BOOSTING USER SATISFACTION


·16 min read·Mar 28

103

1




Maxi Rosson

in

Dipien


HOW TO MEASURE AND IMPROVE YOUR ANDROID APP STARTUP TIMES


EXPLORE THE DIFFERENT WAYS TO MEASURE AND IMPROVE YOUR ANDROID APP LAUNCH TIMES.


·14 min read·Aug 8, 2022

37




See all from Maxi Rosson
See all from Dipien



RECOMMENDED FROM MEDIUM

Abdullah Siddique

in

Dev Genius


AUTOMATING YOUR PYTHON UNIT TESTS WITH GITHUB ACTIONS: A STEP-BY-STEP GUIDE


TURBOCHARGE YOUR DEVELOPMENT WORKFLOW AND CATCH BUGS BEFORE THEY BITE — ALL WITH
THE POWER OF GITHUB ACTIONS AND PYTHON UNIT TESTS.

3 min read·May 13

1





oumuamua


GITHUB ACTIONS


GITHUB ACTIONS IS A POWERFUL AND FLEXIBLE AUTOMATION PLATFORM PROVIDED BY
GITHUB. IT ENABLES DEVELOPERS TO AUTOMATE VARIOUS TASKS AND…

2 min read·Jun 24




LISTS


ICON DESIGN

30 stories·79 saves


NOW IN AI: HANDPICKED BY BETTER PROGRAMMING

266 stories·136 saves


GENERATIVE AI RECOMMENDED READING

52 stories·220 saves


MEDIUM PUBLICATIONS ACCEPTING STORY SUBMISSIONS

147 stories·535 saves


Dmitry Kruglov

in

Better Programming


THE ARCHITECTURE OF A MODERN STARTUP


HYPE WAVE, PRAGMATIC EVIDENCE VS THE NEED TO MOVE FAST

16 min read·Nov 7, 2022

5.6K

50




Hansel

in

Bina Nusantara IT Division


A STEP-BY-STEP GUIDE TO REVERT A PUSHED COMMIT USING GITHUB ACTIONS BOT


GITHUB HAS PROVIDED A FEATURE THAT ENABLES US TO AUTOMATE TASKS AS A CI/CD
PLATFORM CALLED GITHUB ACTIONS. IN THIS ARTICLE, I’M GOING TO…

4 min read·Mar 30

1





Pooja Kamat


INTEGRATING TEAMS WITH GITHUB ACTIONS CI/CD WORKFLOW


IN OUR DAY TO DAY DEVELOPMENT, DEVOPS HAS HAS TAKEN AN INTEGRAL PART OF BUILDING
AND DEPLOYMENT, WE ALWAYS HAVE BEEN FINDING THE BEST WAYS…

2 min read·Mar 28



Juan Tejeria


BEST PRACTICES FOR BRANCH NAMING IN GIT FOR SUCCESSFUL CI/CD IMPLEMENTATION


GIT IS A POWERFUL VERSION CONTROL SYSTEM THAT PLAYS A CRUCIAL ROLE IN SUPPORTING
CONTINUOUS INTEGRATION/CONTINUOUS DEPLOYMENT (CI/CD)…

3 min read·May 17

8




See more recommendations

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams

To make Medium work, we log user data. By using Medium, you agree to our Privacy
Policy, including cookie policy.