Skip to content

Commit

Permalink
Add Labeler and templates for issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Feb 2, 2025
1 parent 3ac8e59 commit a548ada
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve

---

<!-- This template is meant for GENERAL bug reports.
Please be as descriptive as possible
-->

### Work environment

<!-- Filling this table is mandatory -->

| 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, <commit hash>

<!-- OTHER BUGS -->

### Expected behavior

### Actual behavior

### Steps to reproduce the behavior

- Use code markdown `CODE` to make your code visible

<!-- ADDITIONAL CONTEXT -->

### 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.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -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.
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- Filling this template is mandatory -->

**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**

<!-- Explain the **details** for making this change. Is a new feature implemented? What existing problem does the pull request solve? How does the pull request solve these issues? Please provide enough information so that others can review your pull request. -->

...

**Test plan**

<!-- What steps should the reviewer take to test your pull request? Demonstrate the code is solid. Or what test cases you added. Ideally provide screenshots to show the your code changes work as expected -->

...

**Closing issues**

<!-- put "closes #XXXX" in your comment to auto-close the issue that your PR fixes (if any). -->

...
36 changes: 36 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**
19 changes: 19 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit a548ada

Please sign in to comment.