From a548adaa790cf8a433880dde74845782f4e87c56 Mon Sep 17 00:00:00 2001 From: AndrewQuijano Date: Sun, 2 Feb 2025 16:28:50 -0500 Subject: [PATCH] Add Labeler and templates for issues and PRs --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 18 +++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 23 ++++++++++++++ .github/labeler.yml | 36 +++++++++++++++++++++ .github/workflows/labeler.yml | 19 ++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000000..7f98f4e944f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + + + +### Work environment + + + +| Questions | Answers +|------------------------------------------|-------------------- +| System PANDA runs on OS/arch/bits | panda-system-i386, panda-system-x86-64 +| PANDA module affected | dwarf2 plugin, taint2, PyPanda, etc. +| Source of PANDA | `git clone`, pip, release binaries etc. +| Version/git commit | v1.8.21, + + + +### Expected behavior + +### Actual behavior + +### Steps to reproduce the behavior + +- Use code markdown `CODE` to make your code visible + + + +### Additional Logs, screenshots, source code, configuration dump, ... + +Drag and drop zip archives containing the Additional info here, don't use external services or link. +Screenshots can be directly dropped here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000000..2dcadec83d3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,18 @@ +--- +name: Feature request +about: Suggest an idea for PANDA + +--- + +### Feature + +- [ ] New PANDA plugin +- [ ] Support for new architecture +- [ ] Optimize PANDA performance +- [ ] Other (elaborated below) + +**Describe the feature you'd like** +A clear and concise description of what you want to happen. + +**Additional context** +Add any other context about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000000..62e96f832b7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,23 @@ + + +**Your checklist for this pull request** +- [ ] I've documented or updated the documentation of every API function and struct this PR changes. +- [ ] I've added tests that prove my fix is effective or that my feature works (if possible) + +**Detailed description** + + + +... + +**Test plan** + + + +... + +**Closing issues** + + + +... diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..1c01832e3d9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +PANDA-Build: + - Dockerfile + - ./panda/build.sh + - ./panda/build-llvm.sh + - ./panda/Makefile.panda + - ./panda/Makefile.panda.target + - Makefile + - Makefile.objs + - Makefile.target + - configure + +Documentation: + - '**/*.md' + +Github-files: + - .github/** + +PyPanda: + - ./panda/python/**/*.py + +Debian: + - ./panda/debian/** + +Plugins: + - ./panda/plugins/** + +LLVM: + - ./panda/llvm/** + - ./panda/include/panda/tcg-llvm.h + +PANDA-Core: + - ./panda/src/** + +PANDA-Tests: + - ./panda/tests/** + - ./panda/plugins/taint2/tests/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..3c53667575a --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +# Automatically cancel any previous workflow on new push. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} + cancel-in-progress: true + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-22.04 + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"