-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: auto-close issues without repro, auto-label (#8725)
Implement Nissuer to auto-close issues without valid reproduction and auto-label based upon selections. **NOTE:** This does not exempt Payload team members from having a valid reproduction link.
- Loading branch information
Showing
3 changed files
with
90 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
We cannot recreate the issue with the provided information. **Please add a reproduction in order for us to be able to investigate.** | ||
|
||
### Why was this issue marked with the `invalid-reproduction` label? | ||
|
||
To be able to investigate, we need access to a reproduction to identify what triggered the issue. We prefer a link to a public GitHub repository created with `create-payload-app@beta -t blank` or a forked/branched version of this repository with tests added (more info in the [reproduction-guide](https://github.com/payloadcms/payload/blob/main/.github/reproduction-guide.md)). | ||
|
||
To make sure the issue is resolved as quickly as possible, please make sure that the reproduction is as **minimal** as possible. This means that you should **remove unnecessary code, files, and dependencies** that do not contribute to the issue. Ensure your reproduction does not depend on secrets, 3rd party registries, private dependencies, or any other data that cannot be made public. Avoid a reproduction including a whole monorepo (unless relevant to the issue). The easier it is to reproduce the issue, the quicker we can help. | ||
|
||
Please test your reproduction against the latest version of Payload to make sure your issue has not already been fixed. | ||
|
||
### I added a link, why was it still marked? | ||
|
||
Ensure the link is pointing to a codebase that is accessible (e.g. not a private repository). "[example.com](http://example.com/)", "n/a", "will add later", etc. are not acceptable links -- we need to see a public codebase. See the above section for accepted links. | ||
|
||
### Useful Resources | ||
|
||
- [Reproduction Guide](https://github.com/payloadcms/payload/blob/main/.github/reproduction-guide.md) | ||
- [Contributing to Payload](https://www.youtube.com/watch?v=08Qa3ggR9rw) |
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,28 @@ | ||
name: triage | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
triage: | ||
name: nissuer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: balazsorban44/[email protected] | ||
with: | ||
label-area-prefix: "" | ||
label-area-match: "name" | ||
label-area-section: 'Which area\(s\) are affected\? \(Select all that apply\)(.*)### Environment Info' | ||
reproduction-comment: '.github/comments/invalid-reproduction.md' | ||
reproduction-blocklist: 'github.com/\\w*/?$,github.com$' | ||
reproduction-link-section: '### Link to the code that reproduces this issue(.*)### Reproduction Steps' | ||
reproduction-invalid-label: 'invalid-reproduction' | ||
reproduction-issue-labels: 'status: needs-triage,' |