forked from gchq/CyberChef
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge pull request gchq#261 from Lissy93/IMPROVMENTS/user-requested…
- Loading branch information
Showing
36 changed files
with
548 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# PR labels and the branch patterns they should be auto-assigned to | ||
|
||
🦋 Bug Fix: ['FIX/*', 'HOT-FIX/*', 'BUG-FIX/*'] | ||
✨ New Feature: ['FEATURE/*'] | ||
🚚 Refactor: ['IMPROVMENTS/*', 'REFACTOR/*'] | ||
💯 Showcase: ['SHOWCASE/*'] | ||
💄 Stylistic Changes: ['STYLES/*', 'THEME/*'] | ||
🛠️ Build Changes: ['ARCH/*', 'ARCHITECTURE/*', 'DOCKER/*', 'BUILD/*'] | ||
🤖 Auto: ['AUTO/*', 'BOT/*', 'snyk-upgrade-*', 'snyk-fix-*'] | ||
⛔ Don't Merge: ['WEBSITE/*', 'EXPERIMENT/*', 'DEPLOY/*', 'deploy_*', 'gh-pages', 'dev-demo'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Automatically assigns the author as a reviewer to opened PRs and issues | ||
name: 💡 Auto-Assign Author to PR | ||
on: | ||
pull_request: | ||
types: [opened] | ||
issues: | ||
types: [opened] | ||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Assign author | ||
uses: technote-space/assign-author@v1 | ||
GITHUB_TOKEN: ${{secrets.BOT_GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# When a '/rebase' comment is added to a PR, it will be rebased from the main branch | ||
name: 🏗️ Automatic PR Rebase | ||
on: | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
rebase: | ||
name: Rebase | ||
if: > | ||
github.event.issue.pull_request != '' | ||
&& contains(github.event.comment.body, '/rebase') | ||
&& github.event.comment.author_association == 'MEMBER' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
# Creates a new tag, whenever the app version (in package.json) is updated in master | ||
name: 🏗️ Create Tag on Version Change | ||
# And marks any relevant issues as fixed | ||
name: 🏗️ Release Tag new Versions | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
tag-pre-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: butlerlogic/action-autotag@stable | ||
with: | ||
GITHUB_TOKEN: '${{ secrets.BOT_GITHUB_TOKEN }}' | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
strategy: package | ||
commit_message_template: "🔖 {{number}} {{message}} (by {{author}})\nSHA: {{sha}}\n." | ||
mark-issue-fixed: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: butlerlogic/action-autotag@stable | ||
- name: Label Fixed Issues | ||
uses: gh-bot/fix-labeler@master | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
label: '✅ Fixed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Attempts to auto-detect weather an issue is a duplicate, and adds a comment | ||
name: 🎯 Issue Duplicate Check | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
jobs: | ||
check-duplicate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: wow-actions/potential-duplicates@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
filter: '' | ||
exclude: '[BUG] [QUESTION] [FEEDBACK] [SHOWCASE]' | ||
label: '🕸️ Potential Duplicate' | ||
state: all | ||
threshold: 0.6 | ||
reactions: 'eyes' | ||
comment: > | ||
Potential duplicates: {{#issues}} | ||
- [#{{ number }}] {{ title }} ({{ accuracy }}%) | ||
{{/issues}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Checks for any broken links in the docs, and raises an issue if found | ||
name: 🌈 Broken Link Checker | ||
on: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * 0' # At 01:00 on Sunday. | ||
jobs: | ||
link-checker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Check for Broken Links | ||
uses: lycheeverse/[email protected] | ||
with: | ||
args: --verbose --no-progress **/*.md **/*.html | ||
env: | ||
GITHUB_TOKEN: ${{secrets.BOT_GITHUB_TOKEN}} | ||
LYCHEE_OUT: .github/broken-link-report.md | ||
|
||
- name: Raise an Issue with Results | ||
uses: peter-evans/create-issue-from-file@v3 | ||
with: | ||
title: '[DOCS] Broken Links found in Documentation' | ||
content-filepath: .github/broken-link-report.md | ||
labels: '📕 Docs, 👩💻 Good First Issue, 💤 Low Priority, 🤖 Auto' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 📕 Check Docs Domain Expiry | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * 0' # At 01:00 on Sunday. | ||
jobs: | ||
check-domain: | ||
runs-on: ubuntu-latest | ||
name: Check domain | ||
strategy: | ||
matrix: | ||
domain: | ||
- https://dashy.to | ||
steps: | ||
- name: Check domain SSL and registry expire date | ||
id: check-domain | ||
uses: codex-team/action-check-domain@v1 | ||
with: | ||
url: ${{ matrix.domain }} | ||
- name: Raise issue if domain expiring soon | ||
if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 30 }} | ||
uses: rishabhgupta/git-action-issue@v2 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
assignees: Lissy93 | ||
title: '[WEBSITE] Domain Expiring Soon' | ||
body: > | ||
**Priority Notice** | ||
Domain, ${{ matrix.domain }} will expire in ${{ steps.check-domain.outputs.paid-till-days-left }} days. | ||
@Lissy93 - Please take action immediately to prevent any downtime | ||
- name: Raise issue if SSL Cert expiring soon | ||
if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 14 }} | ||
uses: rishabhgupta/git-action-issue@v2 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
assignees: Lissy93 | ||
title: '[WEBSITE] SSL Cert Expiring Soon' | ||
body: > | ||
**Priority Notice** | ||
The SSL Certificate for ${{ matrix.domain }} will expire in ${{ ssl-expire-days-left }} days, on ${{ steps.check-domain.outputs.ssl-expire-date }}. | ||
@Lissy93 - Please take action immediately to prevent any downtime | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,18 @@ jobs: | |
committer_username: liss-bot | ||
committer_email: [email protected] | ||
|
||
|
||
make-author-list: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wow-actions/update-authors@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
sort: commits | ||
bots: true | ||
path: .github/AUTHORS.txt | ||
commit: ':blue_heart: Makes author list' | ||
template: '{{name}} <{{email}}> - {{commits}} commits' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Labels pull requests based on their branch name | ||
name: 💡 PR Branch Labeler | ||
on: pull_request | ||
jobs: | ||
label-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Label PR | ||
if: github.event.action == 'opened' | ||
uses: ffittschen/pr-branch-labeler@v1 | ||
with: | ||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.