mirror of
https://github.com/actions/labeler.git
synced 2025-12-10 11:41:56 +00:00
* Adding pr-number as an optional parameter * Updated README * Tests on the pr-number parameter * Added missing | to table * re-built script * Adding support for multiple pr-numbers * excluded .idea * Updated readme to reflect that there might be more than one PR * Additional warning * Removed unused * Reformatted and re-built * Corrected message * Removed required check * Added (s) to pull request numbers in the description Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> * Reworded PR-number parameter description Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> * adding getMultilineInput into the tests * Fixing tests for single pr * Fixing tests for multiple prs * Updated README.md to make it more obvious that it can take a list of PRs * Added example that labels PR's 1-3 * Handled no pull requests better (from code review) * Handled no pull requests better (from code review) * Handled missing pull request better (from code review) * Back out suggested change as it broke the tests * Rebuilt dist * Update src/labeler.ts Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> * Added Emphasis to the note Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> * Changed mockInput for pr-number to be string[] --------- Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
33 lines
972 B
YAML
33 lines
972 B
YAML
name: 'Labeler'
|
|
description: 'Automatically label new pull requests based on the paths of files being changed'
|
|
author: 'GitHub'
|
|
inputs:
|
|
repo-token:
|
|
description: 'The GitHub token used to manage labels'
|
|
required: false
|
|
default: ${{ github.token }}
|
|
configuration-path:
|
|
description: 'The path for the label configurations'
|
|
default: '.github/labeler.yml'
|
|
required: false
|
|
sync-labels:
|
|
description: 'Whether or not to remove labels when matching files are reverted'
|
|
default: false
|
|
required: false
|
|
dot:
|
|
description: 'Whether or not to auto-include paths starting with dot (e.g. `.github`)'
|
|
default: false
|
|
required: false
|
|
pr-number:
|
|
description: 'The pull request number(s)'
|
|
required: false
|
|
|
|
outputs:
|
|
new-labels:
|
|
description: 'A comma-separated list of all new labels'
|
|
all-labels:
|
|
description: 'A comma-separated list of all labels that the PR contains'
|
|
runs:
|
|
using: 'node16'
|
|
main: 'dist/index.js'
|