Skip to content

Commit

Permalink
Merge pull request #17 from HamHangOut/actions
Browse files Browse the repository at this point in the history
Some actions
  • Loading branch information
PartTimeLegend authored Mar 26, 2024
2 parents 08ee230 + fb84ac5 commit 1914e2d
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
github:
- changed-files:
- any-glob-to-any-file: .github/*
docker:
- changed-files:
- any-glob-to-any-file: Dockerfile
license:
- changed-files:
- any-glob-to-any-file: LICENSE
docs:
- changed-files:
- any-glob-to-any-file: [docs/*, '*.md']
python:
- changed-files:
- any-glob-to-any-file: [requirements.txt, '*.md']
deploy:
- changed-files:
- any-glob-to-any-file: [deploy/*]
terraform:
- changed-files:
- any-glob-to-any-file: [deploy/terraform/*]
20 changes: 20 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# trunk-ignore-all(checkov/CKV2_GHA_1)
name: gitleaks
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: 0 4 * * * # run once a day at 4 AM
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Pull Request Labeler
on:
- pull_request_target

jobs:
triage:
# trunk-ignore(checkov/CKV2_GHA_1)
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
26 changes: 26 additions & 0 deletions .github/workflows/mind-your-language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# trunk-ignore-all(checkov/CKV2_GHA_1)
name: Mind your language
on:
issues:
types:
- opened
- edited
issue_comment:
types:
- created
- edited
pull_request_review_comment:
types:
- created
- edited
jobs:
echo_issue_comment:
runs-on: ubuntu-latest
name: profanity check
steps:
- name: Checkout
uses: actions/checkout@v4 # v4
- name: Profanity check step
uses: tailaiw/mind-your-language-action@v1.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: size-label
on: pull_request
jobs:
size-label:
# trunk-ignore(checkov/CKV2_GHA_1)
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: size-label
uses: pascalgn/size-label-action@v0.5.0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
15 changes: 15 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# trunk-ignore-all(checkov/CKV2_GHA_1)
name: Close stale issues and PRs
on:
schedule:
- cron: 30 1 * * *

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
days-before-stale: 30
days-before-close: 5
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hammy McHamilton Discord Quiz Bot

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md) [![Build and Publish Docker Image](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/docker.yml/badge.svg)](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/docker.yml) [![CodeQL](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/github-code-scanning/codeql) [![Generate terraform docs](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/terraform-docs.yml/badge.svg)](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/terraform-docs.yml) [![gitleaks](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/gitleaks.yml/badge.svg)](https://github.com/HamHangOut/hammy-mchamilton/actions/workflows/gitleaks.yml)

This is a Discord bot written in Python that hosts a quiz game with questions and answers on from the RSGB Amateur Radio Examination questions list. The bot randomly selects questions from a predefined quiz data set and prompts users to answer them within a specified time limit.

Expand Down

0 comments on commit 1914e2d

Please sign in to comment.