mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-04 02:38:16 +00:00
Merge remote-tracking branch 'origin/docs/issue-management-actions' into rewrite/master
This commit is contained in:
commit
215e20cabe
44
.github/label-actions.yml
vendored
Normal file
44
.github/label-actions.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# Configuration for Label Actions - https://github.com/dessant/label-actions
|
||||||
|
|
||||||
|
# Automatically close issues and pull requests when the `status: duplicate` label is applied
|
||||||
|
'status: duplicate':
|
||||||
|
issues:
|
||||||
|
# Post a comment
|
||||||
|
comment: >
|
||||||
|
This issue is a duplicate. Please direct all discussion to the original issue.
|
||||||
|
# Close the issue
|
||||||
|
close: true
|
||||||
|
# Remove other status labels
|
||||||
|
unlabel:
|
||||||
|
- 'status: pending triage'
|
||||||
|
# Set a close reason
|
||||||
|
close-reason: 'not planned'
|
||||||
|
prs:
|
||||||
|
# Post a comment
|
||||||
|
comment: >
|
||||||
|
This pull request is a duplicate. Please direct all discussion to the original pull request.
|
||||||
|
# Remove other status labels
|
||||||
|
unlabel:
|
||||||
|
- 'status: pending triage'
|
||||||
|
# Close the pull request
|
||||||
|
close: true
|
||||||
|
# Set a close reason
|
||||||
|
close-reason: 'not planned'
|
||||||
|
|
||||||
|
'status: rejected':
|
||||||
|
issues:
|
||||||
|
# Close the issue
|
||||||
|
close: true
|
||||||
|
# Remove other status labels
|
||||||
|
unlabel:
|
||||||
|
- 'status: pending triage'
|
||||||
|
# Set a close reason
|
||||||
|
close-reason: 'not planned'
|
||||||
|
prs:
|
||||||
|
# Close the pull request
|
||||||
|
close: true
|
||||||
|
# Remove other status labels
|
||||||
|
unlabel:
|
||||||
|
- 'status: pending triage'
|
||||||
|
# Set a close reason
|
||||||
|
close-reason: 'not planned'
|
29
.github/workflows/label-actions.yml
vendored
Normal file
29
.github/workflows/label-actions.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Perform actions when labels are applied to issues, discussions, or pull requests
|
||||||
|
# See .github/label-actions.yml
|
||||||
|
name: 'Label Actions'
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
discussion:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
discussions: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
action:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: dessant/label-actions@v4
|
52
.github/workflows/label-issue.yml
vendored
Normal file
52
.github/workflows/label-issue.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
name: "Issue Labeler"
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- edited
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# When an issue is opened, perform a similarity check for potential duplicates.
|
||||||
|
# If some are found, add a label and comment listing the potential duplicate issues.
|
||||||
|
potential-duplicate:
|
||||||
|
name: Detect potential duplicate issues
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: wow-actions/potential-duplicates@v1
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
|
||||||
|
# Any matched issue will stop detection immediately.
|
||||||
|
# You can specify multi filters in each line.
|
||||||
|
filter: ''
|
||||||
|
# Exclude keywords in title before detecting.
|
||||||
|
exclude: ''
|
||||||
|
# Label to set, when potential duplicates are detected.
|
||||||
|
label: 'potential duplicate'
|
||||||
|
# Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
|
||||||
|
state: all
|
||||||
|
# If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
|
||||||
|
# Turn this up if the detection is too sensitive
|
||||||
|
threshold: 0.6
|
||||||
|
# Reactions to be add to comment when potential duplicates are detected.
|
||||||
|
# Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
|
||||||
|
# reactions: '-1'
|
||||||
|
# Comment to post when potential duplicates are detected.
|
||||||
|
comment: >
|
||||||
|
Potential duplicates: {{#issues}}
|
||||||
|
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
|
||||||
|
{{/issues}}
|
||||||
|
# When an issue is opened, detect if it has an empty body or incomplete issue form.
|
||||||
|
# If it does, close the issue immediately.
|
||||||
|
empty-issues:
|
||||||
|
name: Close empty issues
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Run empty issues closer action
|
||||||
|
uses: rickstaa/empty-issues-closer-action@v1
|
||||||
|
env:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
close_comment: Closing this issue because it appears to be empty. Please update the issue for it to be reopened.
|
||||||
|
open_comment: Reopening this issue because the author provided more information.
|
|
@ -3,6 +3,7 @@ on:
|
||||||
- pull_request_target
|
- pull_request_target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Apply labels to pull requests based on which files were edited
|
||||||
labeler:
|
labeler:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -13,6 +14,7 @@ jobs:
|
||||||
uses: actions/labeler@v5
|
uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
# Apply labels to pull requests based on how many lines were edited
|
||||||
changed-lines-count-labeler:
|
changed-lines-count-labeler:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
Loading…
Reference in a new issue