Skip to content

GitHub action to periodically label all PRs in repository

License

Notifications You must be signed in to change notification settings

potiuk/periodic-labeler

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branch Cleanup Action

A GitHub action to automatically label all PRs according to file patterns.

Table of Contents

Usage

Action is meant to be run as periodic job. This is needed to workaround issues regarding lack of write access when executed from fork which is a common problem when using https://github.com/actions/labeler.

---
name: Pull request labeler
on:
  schedule:
    - cron: '*/5 * * * *'
jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:
      - uses: docker://docker.pkg.github.com/potiuk/periodic-labeler/periodic-labeler:v0.0.5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_REPOSITORY: ${{ github.repository }}
          LABEL_MAPPINGS_FILE: .github/labeler.yml

By default action uses .github/labeler.yml located in repository from GITHUB_REPOSITORY as a source of pattern matchers. This file uses the same schema as in https://github.com/actions/labeler

About

GitHub action to periodically label all PRs in repository

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 91.3%
  • Dockerfile 8.7%