Skip to content

Commit

Permalink
Repository Configuration (#26)
Browse files Browse the repository at this point in the history
* chore: github templates
* cicd: standard workflows
  • Loading branch information
mfw78 authored Sep 17, 2023
1 parent 3562f7b commit 7812a8e
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Report any bugs or unexpected behaviour
title: 'bug: '
labels: bug, track:maintenance
assignees: ''

---

### Problem
A clear and concise description of what the bug is.

### Impact
Indicate how significant you believe the impact of the bug is. Bugs that lead to data loss or corruption would be considered `critical`. In such cases, please also add the `critical` label.

### To reproduce
If you can reproduce the behaviour, steps to reproduce:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### Expected behaviour
A clear and concise description of what you expected to happen.

### Screenshots/logs
If applicable, add screenshots or logs to help explain your problem.

### Tenderly watch-tower version/commit hash
State the version of tenderly-watch-tower where you've encountered the bug or, if built off a specific commit, the relevant commit hash.
- e.g. `v0.9` or `ed53bcd`

### Additional context
Add any other context about the problem here.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Questions & Support Requests
url: https://discord.gg/cowprotocol
about: Ask in the CoW Protocol Discord
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for the watch-tower implementation
title: 'feat: '
labels: track:production
assignees: ''

---

### Problem
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

### Suggested solution
A clear and concise description of what you want to happen.

### Alternatives 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.

### Acceptance criteria
A list of tasks that need to be done for the issue to be considered resolved.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Improvement
about: Suggest improvements to the codebase or processes. This includes refactoring,
docs and any other chores.
title: 'chore:'
labels: track:maintenance
assignees: ''

---
### Background
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]; There is a spelling error in [...]; It's difficult to read the code in module [...]

### Details
A clear and concise description of what you want to happen.

### Acceptance criteria
A list of tasks that need to be done for the issue to be considered resolved.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/research_related_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Research-related issue
about: Use this template if your issue is related to any research work
title: 'research:'
labels: ''
assignees: ''

---

### Problem

### Acceptance criteria

### Details

### Possible Solutions

### Research track
Indicate the research track that this issue relates to. Please also add the relevant track as a label.
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Description
<!--- Describe your changes to provide context for reviewers, including why it is needed -->

# Changes
<!-- List of detailed changes (how the change is accomplished) -->

- [ ] ...
- [ ] ...

## How to test
<!--- Include details of how to test your changes, including any pre-requisites. If no unit tests are included, please explain why and how to test manually
1.
2.
3.
-->

<!--
## Related Issues
Fixes #
-->
16 changes: 16 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Add new issues to project board

on:
issues:
types: [opened]

jobs:
add-to-project:
if: github.repository_owner == 'cowprotocol'
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/cowprotocol/projects/8
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
23 changes: 23 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "cla"

on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]

jobs:
cla:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: ((github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target') && github.repository_owner == 'cowprotocol' && github.repository != 'cowprotocol/cla'
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }}
with:
branch: 'cla-signatures'
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/cowprotocol/cla/blob/main/CLA.md'
allowlist: '*[bot]'

0 comments on commit 7812a8e

Please sign in to comment.