-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prs): add new input
pull-request-remove-labels-after-close
When closing a pull request, you can now remove some extra labels. This might specifically handy if you want to remove the stale label to "clean" the closed pull request. Closes #859.
- Loading branch information
Showing
22 changed files
with
1,001 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...entation/docs/08-pull-requests/01-inputs/74-remove-labels-after-close-input.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
id: pull-request-remove-labels-after-close-input | ||
title: Remove pull request labels after close input | ||
description: | | ||
All the information you need to know about the remove pull request labels after close input. | ||
Including a detailed description and an example. | ||
tags: | ||
- Pull requests | ||
- Inputs | ||
- Labels | ||
- Closing | ||
--- | ||
|
||
### Input {#input} | ||
|
||
Name: `pull-request-remove-labels-after-close` | ||
Type: `string[]` | ||
Default value: `[]` | ||
|
||
### Description {#description} | ||
|
||
This input will let you remove extra labels when the processing close the pull requests. | ||
This can be useful if you wish to easily remove extra labels to improve your triage post-closing. | ||
|
||
:::caution | ||
|
||
The labels must be real labels, existing inside your repository list of labels (_github.com/your-organization/your-repository/labels_). | ||
If not, the GitHub API will throw an error. | ||
|
||
::: | ||
|
||
:::info | ||
|
||
You can also add a comment to explain why it was closed by using the [close comment input](pull-request-close-comment-input), | ||
add labels onto it by using the [add labels after close input](pull-request-add-labels-after-close-input) | ||
and define the number of days before closing it by using the [days before close input](pull-request-days-before-close-input). | ||
|
||
::: | ||
|
||
### Example {#example} | ||
|
||
```yml {6-8} | ||
# ... | ||
name: Stale | ||
id: stale | ||
uses: sonia-corporation/stale@latest | ||
with: | ||
pull-request-remove-labels-after-close: | | ||
new author feedback | ||
closing soon! | ||
``` |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.