Skip to content

Commit

Permalink
Initialize dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri committed Jul 24, 2023
0 parents commit 4b0ebdc
Show file tree
Hide file tree
Showing 19 changed files with 288 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Bug Report
description: Create a report to help us improve
title: '[Bug]: '
labels: [ "bug", "triage" ]
assignees: []
body:
- type: textarea
attributes:
label: Description
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Reproduction
placeholder: |-
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
placeholder: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Additional Context
description: Add any other context about the problem here(such as a repository).
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Feature request
description: Suggest an idea for this project
title: '[Feature]: '
labels: [ "enhancement", "triage" ]
assignees: []
body:
- type: textarea
attributes:
label: Description
description: A clear and concise description of what the problem is.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Solution
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Alternatives
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
attributes:
label: Additional Context
description: Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Other
description: Submit an uncategorized issue
title: '[Other]: '
labels: [ "other" ]
assignees: []
body:
- type: textarea
attributes:
label: Description
description: A clear and concise description of what the problem is.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Additional Context
description: Add any other context about the problem here.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Click on the `Preview` tab and select a template:

- [Merge Request](?expand=1&labels=triage&quick_pull=1&template=merge_request.md)
- [Patch Release Request](?expand=1&labels=release,release%3Apatch&quick_pull=1&template=patch_release_request.md&title=Release%20vMajor.Minor.Patch%5B%20%7C%20Release%20Name%5D)
- [Minor Release Request](?expand=1&labels=release,release%3Aminor&quick_pull=1&template=minor_release_request.md&title=Release%20vMajor.Minor.0%5B%20%7C%20Release%20Name%5D)
- [Major Release Request](?expand=1&labels=release,release%3Amajor&quick_pull=1&template=major_release_request.md&title=Release%20vMajor.0.0%5B%20%7C%20Release%20Name%5D)
- [Prerelease Request](?expand=1&labels=release,release%3Aprerelease&quick_pull=1&template=prerelease_request.md&title=Prerelease%20vMajor.Minor.Patch%5B-suffix%5D%5B%20%7C%20Release%20Name%5D)
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/major_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Release Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->

## ❗ Breaking Changes
<!--
- `API.SendRequest` has been rewritten and its parameters have changed
-->
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/merge_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Description
<!-- A list of what the merge request changes. -->

## Intent
<!-- A summary of why the merge request should be merged. -->

## Additional Context
<!-- Additional information such as motivation or inspiration. -->
None.
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/minor_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
Release Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/patch_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Release Description
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/prerelease_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Prerelease Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->

## ❗ Breaking Changes
<!--
- `API.SendRequest` has been rewritten and its parameters have changed
-->
12 changes: 12 additions & 0 deletions .github/workflows/check-eol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check End-of-Line Sequence
run-name: Check End-of-Line Sequence

on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]

jobs:
check-eol:
uses: Arthri/check-eol/.github/workflows/check-eol.yml@v1
20 changes: 20 additions & 0 deletions .github/workflows/release-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Request
run-name: Release Request

on:
pull_request:
types:
- closed
- edited
- labeled
- opened
- unlabeled
branches:
- master

jobs:
handle-release-request:
name: ${{ github.event.action == 'closed' && 'Resolve ' || 'Verify ' }}Release Request
permissions:
contents: write
uses: Arthri/release-request/.github/workflows/release-request.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: New Reusable Workflow
run-name: New Reusable Workflow

on:
workflow_call:

defaults:
run:
shell: bash

jobs:
reusable-workflow:
runs-on: ubuntu-22.04
timeout-minutes: 1

steps:
- run: echo Hello, World!
9 changes: 9 additions & 0 deletions .github/workflows/run-reusable-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: New Reusable Workflow
run-name: New Reusable Workflow

on:
repository_dispatch:

jobs:
reusable-workflow:
uses: ./.github/workflows/reusable-workflow.yml
16 changes: 16 additions & 0 deletions .github/workflows/update-major-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Update v<Major> Tag
run-name: |
Update major tag: ${{ github.event_name }}${{ github.event_name == 'push' && (github.event.created && ' created' || ' deleted') || '' }} ${{ github.event.ref }}
on:
delete:

push:
tags:
- '**'

jobs:
update-tag:
permissions:
contents: write
uses: Arthri/update-major-tag/.github/workflows/update-major-tag.yml@v1
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Contributing
See https://arthri.github.io/Belp/Contributing
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MIT No Attribution

Copyright 2023 Arthri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# reusable-workflow
A reusable workflow for doing x, y, and z.

## Installation
Add a new workflow under `.github/workflows/` with the following contents.
```yml
name: New Reusable Workflow
run-name: New Reusable Workflow

on:
push:

jobs:
reusable-workflow:
uses: Arthri/reusable-workflow/.github/workflows/reusable-workflow.yml@v1

```

## Usage
1. Do this.
1. Do that.
1. This happens.
11 changes: 11 additions & 0 deletions docs/Test_List.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Test List
A list of steps for testing the workflow's features.

## Action fails randomly

### Steps
1. Push to GitHub.

### Outputs
1. Workflow triggers.
1. Workflow fails randomly.

0 comments on commit 4b0ebdc

Please sign in to comment.