Skip to content

Commit

Permalink
Merge pull request #100 from asfadmin/release
Browse files Browse the repository at this point in the history
v2.0.0 release
  • Loading branch information
jhkennedy authored Jun 15, 2020
2 parents 827fbb6 + 6051c5a commit 14e5edb
Show file tree
Hide file tree
Showing 62 changed files with 5,497 additions and 3,132 deletions.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
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: enhancement
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.
38 changes: 38 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Description of this release

<!--
Please describe the release here, including a brief overview of the changes in this release
-->

<!--
If applicable, indicate any upstream packages/projects this is relevant too, and the associated issues
or pull requests
-->

### Developer checklist

- [ ] Assigned a reviewer
<!-- NOTE: Pull requests should only be opened for merges to protected branches (required) and any
changes which you'd like reviewed. Do not open a pull request to update a feature or personal
branch -- simply merge with `git`.
-->
- [ ] Indicated the level of changes to this package by affixing one of these labels:
* ~"major" -- Major changes to the API that may break current workflows
* ~"minor" -- Minor changes to the API that do not break current workflows
* ~"patch" -- Patches and bugfixes for the current version that do not break current workflows
* ~"bumpless" -- Changes to documentation, CI/CD pipelines, etc. that don't affect the software's version

- [ ] (If applicable) Updated the dependencies and indicated any downstream changes that are required

- [ ] Updated the CHANGELOG.md
- [ ] Added/updated documentation for these changes
- [ ] Added/updated tests for these changes

### Reviewer checklist

- [ ] Are all the Checks passing?
- [ ] Have all dependencies been updated and required changes merged downstream?
- [ ] Is the level of changes labeled appropriately?
- [ ] Are all the changes described appropriately in the changelog?
- [ ] Has the documentation been adequately updated?
- [ ] Are the test adequate?
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
If this is a pull request for a new release, please use the release template:
https://github.com/asfadmin/hyp3-rtc-gamma/compare/master...develop?template=release.md
NOTE: Pull requests should only be opened for merges to protected branches (required) and any
changes which you'd like reviewed. Do not open a pull request to update a feature or personal
branch -- simply merge with `git`.
-->
28 changes: 28 additions & 0 deletions .github/queries/asssociated-pr.query.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
query: '
query($owner:String!, $name:String!, $sha:String!) {
repository(owner:$owner, name:$name) {
commit: object(expression:$sha) {
... on Commit {
associatedPullRequests(first:1, orderBy:{field: UPDATED_AT, direction: DESC}){
edges{
node{
title
number
body
}
}
}
}
}
}
}'
variables:
owner:
type: arg
name: owner
name:
type: arg
name: name
sha:
type: arg
name: sha
24 changes: 24 additions & 0 deletions .github/queries/pr-labels.query.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
query: '
query($owner:String!, $name:String!, $pr:Int!) {
repository(owner:$owner, name:$name) {
pullRequest(number:$pr) {
labels(first:100) {
nodes {
name
}
}
}
}
}'
variables:
owner:
type: arg
name: owner
name:
type: arg
name: name
pr:
type: jq
file: pr.json
query: '.data.repository.commit.associatedPullRequests.edges[0].node.number'
cast: Int
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Write release and finish

on:
push:
tags:
- v*


jobs:
finish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.TOOLS_BOT_PAK }}

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}
with:
tag_name: ${{ github.ref }}
release_name: HyP3 RTC GAMMA ${{ github.ref }}

- name: Attempt fast-forward develop from master
run: |
git fetch --prune
git checkout develop && git pull --ff-only
git merge --ff-only origin/master
git push
- name: Open PR to bring master back to develop
if: ${{ failure() }}
uses: repo-sync/pull-request@v2
with:
source_branch: master
destination_branch: develop
pr_title: Pulling ${{ github.ref }} into default
pr_body: Fast-forward of master to default failed!
pr_assignee: ${{ github.actor }}
pr_label: tools-bot
pr_draft: false
github_token: ${{ secrets.TOOLS_BOT_PAK }}
58 changes: 58 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Static analysis

on: push

jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-import-order flake8-blind-except flake8-builtins
- name: Lint with flake8
run: |
flake8 --max-line-length=120 --import-order-style=pycharm --statistics \
--application-import-names hyp3_rtc_gamma
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Scan for secrets with gitleaks
uses: zricethezav/gitleaks-action@master


trufflehog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install trufflehog gitdb2=="2.*"
- name: Scan for secrets with trufflehog
run: |
git fetch origin +refs/tags/*:refs/tags/*
export LAST_TAG_HASH=$(git show-ref --hash -- $(git describe --abbrev=0))
trufflehog --regex --entropy True --since_commit "${LAST_TAG_HASH}" \
--exclude_paths .trufflehog.txt file://"${PWD}"
Loading

0 comments on commit 14e5edb

Please sign in to comment.