Skip to content

Commit

Permalink
Merge pull request #26 from tyg3rr/ci
Browse files Browse the repository at this point in the history
Ci
  • Loading branch information
h3mmy authored Jul 25, 2023
2 parents 2540b42 + 539bb5c commit 51ed65f
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/basic_pull_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Pull Request

## Proposed changes

<!-- Describe the scope of your change - i.e. what the change does. -->

## Benefits

<!-- What benefits will be realized by the code change? -->

## Possible drawbacks

<!-- Describe any known limitations with your change -->

## Applicable issues

<!-- Enter any applicable Issues here (You can reference an issue using #) -->
- fixes #

## Additional information

<!-- If there's anything else that's important and relevant to your pull request, mention that information here.-->

## Checklist (Optional)

_Put an `x` in the boxes that apply.

- [ ] I have read the [CONTRIBUTING](https://github.com/tyg3rr/Epi_Helper/blob/main/CONTRIBUTING.md) doc
- [ ] Lint and unit tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
- [ ] Any dependent changes have been merged and published in downstream modules
29 changes: 29 additions & 0 deletions .github/review-groups.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
reviewers:
# The default reviewers
defaults:
- repository-owners # group

# Reviewer groups each of which has a list of GitHub usernames
groups:
repository-owners:
- tyg3rr
core:
- tyg3rr
ci:
- tyg3rr
- h3mmy

files:
'**':
- repository-owners
'.github':
- ci
'src/**':
- core
'pyproject.toml':
- core
- ci

options:
ignore_draft: true
18 changes: 18 additions & 0 deletions .github/workflows/meta-assign-reviewers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Assign PR Review

on:
workflow_dispatch:

# pull_request:
# types: [opened, ready_for_review, reopened]

jobs:
auto-request-review:
name: Auto Request Review
runs-on: ubuntu-latest
steps:
- name: Request review based on files changes and/or groups the author belongs to
uses: necojackarc/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/reviewers-groups.yaml # Config file location override
57 changes: 57 additions & 0 deletions .github/workflows/scheduled-broken-link-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: Broken Link Check

on: # yamllint disable-line rule:truthy
workflow_dispatch:
# Enable after setting up Github App for automation
# schedule:
# - cron: "0 0 * * *"

jobs:
check:
name: Check
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Generate Token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1.8.0
id: generate-token
with:
app_id: "${{ secrets.APP_ID }}"
private_key: "${{ secrets.APP_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
token: "${{ steps.generate-token.outputs.token }}"

- name: Scan for broken links
uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421 # v1.8.0
id: lychee
env:
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
with:
args: >
--verbose
--no-progress
--exclude-mail
'./**/*.md'
- name: Find Link Checker Issue
id: broken-link-check-issue
uses: micalevisk/last-issue-action@305829d9728f47beb0029417167a0af890edfd6e # v2.1.0
with:
state: open
labels: |
broken-links
- name: Update Issue
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # renovate: tag=v4.0.1
with:
title: Broken links detected 🔗
issue-number: "${{ steps.broken-link-check-issue.outputs.issue-number }}"
content-filepath: ./lychee/out.md
token: "${{ steps.generate-token.outputs.token }}"
labels: |
broken-links

0 comments on commit 51ed65f

Please sign in to comment.