Skip to content

Commit a241b02

Browse files
authored
Initial commit
0 parents  commit a241b02

File tree

768 files changed

+24614
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

768 files changed

+24614
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root=true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
insert_final_newline = true
8+
9+
[*.py]
10+
indent_size = 4

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Proposed Changes
2+
3+
-
4+
-
5+
-

.github/workflows/cd.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Continuous Delivery of Template
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: release
9+
10+
jobs:
11+
ci-check-python:
12+
name: Check Python
13+
uses: ./.github/workflows/check-python.yaml
14+
15+
tag-release:
16+
runs-on: "ubuntu-latest"
17+
needs: ci-check-python
18+
steps:
19+
- name: Checkout source code
20+
uses: actions/checkout@v3
21+
22+
- name: Tag release
23+
id: tag
24+
uses: TriPSs/conventional-changelog-action@v3.18.0
25+
with:
26+
skip-commit: "true"
27+
tag-prefix: ""
28+
skip-on-empty: "false"
29+
30+
- name: Create Release
31+
uses: softprops/action-gh-release@v1
32+
if: ${{ steps.tag.outputs.skipped == 'false' }}
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ steps.tag.outputs.tag }}
37+
body: ${{ steps.tag.outputs.clean_changelog }}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Check Template
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
check-python:
8+
runs-on: "ubuntu-latest"
9+
steps:
10+
- name: Checkout source code
11+
uses: actions/checkout@v3
12+
13+
- name: Install poetry
14+
run: pipx install poetry
15+
16+
- name: Install algokit
17+
run: pipx install algokit
18+
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.10"
23+
cache: "poetry"
24+
25+
- name: Install dependencies
26+
run: poetry install --no-interaction --no-root
27+
28+
- name: Check formatting with Black
29+
run: |
30+
# stop the build if there are files that don't meet formatting requirements
31+
poetry run black --check .
32+
33+
- name: Check linting with Ruff
34+
run: |
35+
# stop the build if there are Python syntax errors or undefined names
36+
poetry run ruff .
37+
38+
- name: Configure git
39+
shell: bash
40+
run: |
41+
# set git user and email as test invoke git
42+
git config --global user.email "actions@github.com" && git config --global user.name "github-actions"
43+
44+
- name: Run tests
45+
shell: bash
46+
run: |
47+
set -o pipefail
48+
poetry run pytest --junitxml=pytest-junit.xml -n auto
49+
50+
- name: Check generated templates have been reviewed
51+
shell: bash
52+
run: |
53+
# Add untracked files as empty so they come up in diff
54+
git add -N ./tests_generated
55+
# Look for changes in generated templates and error if there are any
56+
git diff --exit-code --minimal ./tests_generated

.github/workflows/issue_closed.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Solve zendesk ticket when the issue is closed
2+
on:
3+
issues:
4+
types: [closed]
5+
jobs:
6+
issue_closed:
7+
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_closed.yml@main
8+
with:
9+
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
10+
ISSUE_LABEL: makerx
11+
secrets:
12+
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Add comment to zendesk ticket on GitHub issue commented
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
issue_closed:
7+
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_commented.yml@main
8+
with:
9+
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
10+
ISSUE_LABEL: makerx
11+
secrets:
12+
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Create Zendesk ticket when an issue is labelled with makerx
2+
on:
3+
issues:
4+
types: [labeled]
5+
jobs:
6+
issue_created:
7+
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_labelled.yml@main
8+
with:
9+
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
10+
ISSUE_LABEL: makerx
11+
secrets:
12+
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}

.github/workflows/pr.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Pull Request validation
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
pr-check:
7+
name: Check Python
8+
uses: ./.github/workflows/check-python.yaml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Add comment to GitHub issue on Zendesk ticket commented
2+
on:
3+
repository_dispatch:
4+
types:
5+
- zendesk_github_add_comment
6+
permissions:
7+
issues: write
8+
jobs:
9+
add-comment:
10+
name: Add comment to issue
11+
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/zendesk_github_add_comment.yml@main

0 commit comments

Comments
 (0)