-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update comment label action and repro document (#399)
* chore: fix can not assign assignee on issue * chore: update checkout action version * chore: update action branch * chore: update action and jobs name * chore: update action add null check * doc: add repro document * chore: update comment issue action
- Loading branch information
Showing
10 changed files
with
66 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
name: Auto Assign Issue(bot) | ||
name: auto assign issue(bot) | ||
|
||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
assign_assignee: | ||
name: Assign Assignees | ||
name: assign assignees | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
console.log(context) | ||
github.rest.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
assignees: [context.repo.owner] | ||
assignees: [context.actor] | ||
}) | ||
assign_label: | ||
name: Assign Label | ||
name: assign label | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] | ||
|
@@ -33,7 +32,7 @@ jobs: | |
include-title: 1 | ||
|
||
assign_miletone: | ||
name: Assign Milestone | ||
name: assign milestone | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
|
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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
name: Auto Comment on Issue(bot) | ||
name: auto comment on issue(bot) | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
comment: | ||
name: Comment Issue | ||
name: comment issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const issue = await github.rest.issues.get({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}) | ||
const content = `@${context.payload.issue.user.login}. Thank you for filing this issue. In order for us to investigate this issue, please provide [a minimalistic repro project](https://github.com/dotnetcore/bootstrapblazor/blob/main/docs/repro.md) that illustrates the problem.` | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '👋 Thanks for reporting! @' + issue.data.user.login + ' Please provide your code. If it is already provided, please ignore this message.' | ||
body: content | ||
}) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Bug Report Reproduction Guide | ||
|
||
When customers plan to report an issue with BootstrapBlazor, we will most likely ask them to provide a so called `minimal reproduction project (repro)`. | ||
This serves two purposes: | ||
- It helps issue reporters validate their assumptions by trying to recreate the behavior in a new project. | ||
- It helps eliminate ambiguity and speeds up investigations. We may also be able to provide workarounds in certain scenarios. | ||
|
||
This document describes what a minimal repro project is, and why it's important to us. | ||
|
||
## What is a minimal repro project? | ||
A repro (or a reproduction) is a project, which can be used to reproduce the reported behavior with minimal effort from a product team, which has the minimum code required to demonstrate the concerning behavior. | ||
|
||
There are two ways you can provide a minimal repro project. The first and simpler option is to use some type of public web-hosted REPL-based environment which supports ASP.NET Core. The other option is to provide a project hosted in GitHub as described below: | ||
- Create a new project, based on one of the Blazor Server/WebAssembly project templates. | ||
- **Please use the `Empty*` project templates** if they're available for that project type. | ||
- Add the minimum amount of code necessary to reproduce the behavior you are reporting on this newly created project. | ||
- Make sure you **do not** add any dependencies that are irrelevant to the behavior. | ||
- Host the project as a **public** repository on GitHub. | ||
- Make sure you haven't included any binaries in your project (this is usually about the `bin` and `obj` folders in your project) | ||
Note: that this step is important and we won't be able to open zip attachments in your issues. | ||
Zip files are potential attack vectors that we try to avoid at all cost. | ||
|
||
## Important considerations | ||
- **Never** include any sensitive information in your reproduction project. | ||
- **Never** include any code that is not intended to be public in a repro. | ||
- **Do not** reference any external services or data sources. |