Skip to content

Commit

Permalink
chore: common .github files
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jan 24, 2024
1 parent 384069c commit 70bd6ee
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 26 deletions.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!--
NOTE
NOTE In most cases, you should create an issue first, and only then
NOTE a pull request. Please see the contribution guidelines for
NOTE further information. In particular related to conventional
NOTE commit messages.
NOTE
The title should have the following format:
<type>: description (#<issue>)
-->
27 changes: 27 additions & 0 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: add issues to project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: add issue to project
runs-on: ubuntu-latest
steps:
- name: register bug/needs-triage with bug tracker project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/varfish-org/projects/3
github-token: ${{ secrets.BOT_TOKEN }}
labeled: bug, needs-triage
label-operator: OR

- name: register bug/enhancement issues with release planning project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/varfish-org/projects/2
labeled: bug, needs-triage, enhancement
label-operator: OR
github-token: ${{ secrets.BOT_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/add-pr-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: add needs-review pull requests to projects

on:
pull_request:
types:
- labeled

jobs:
add-to-project:
name: Add pull request to project
runs-on: ubuntu-latest
steps:
- name: register pull requests with release planning project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/varfish-org/projects/2
github-token: ${{ secrets.BOT_TOKEN }}
labeled: needs-review
19 changes: 19 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Dependabot auto-merge

on: pull_request

permissions:
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
# GitHub provides this variable in the CI env. You don't
# need to add anything to the secrets vault.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 0 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,2 @@
*
!workflow
!workflow/*
!workflow/report/*
!workflow/envs/*
!workflow/scripts/*
!workflow/rules/*
!workflow/rules/annotation/*
!workflow/resources/*
!workflow/igsr-metadata/*
!config
!config/*.example
!LICENSE
!README.md
!CHANGELOG.md
!environment.yaml
!.gitignore
!.gitattributes
!.editorconfig
!.travis.yml
!.test
!.test/**/*
!.github
!.github/workflows
!.github/workflows/main.yml
.DS_Store
*~
.*.sw?

0 comments on commit 70bd6ee

Please sign in to comment.