mirror of https://github.com/BRAVO68WEB/shx.git
Worked over new release + actions 🚂
This commit is contained in:
parent
de9f6090ff
commit
9a74047f0e
|
@ -0,0 +1,6 @@
|
|||
# Support Dashy's Development!
|
||||
|
||||
github: bravo68web
|
||||
custom: [
|
||||
'https://buymeacoffee.com/bravo68web',
|
||||
]
|
|
@ -0,0 +1,144 @@
|
|||
# Config file for pull-request-badge. See: https://pullrequestbadge.com/ by @stefanbuck
|
||||
# Dynamically inserts status badges into PR description, based on certain conditions
|
||||
|
||||
# Show submitting user's username and profile link
|
||||
- label: 💕 Submitted by
|
||||
message: $payload.pull_request.user.login
|
||||
color: '#f73ae6'
|
||||
when: $payload.pull_request.author_association !== 'OWNER'
|
||||
url: 'https://github.com/$payload.pull_request.user.login'
|
||||
|
||||
# Show a badge indicating the PR category, based on tag
|
||||
- label: Type
|
||||
message: ✨ Feature
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('✨ New Feature')
|
||||
- label: Type
|
||||
message: 🐛 Fix
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🦋 Bug Fix')
|
||||
- label: Type
|
||||
message: 📕 Docs
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('📕 Docs')
|
||||
- label: Type
|
||||
message: 🛠️ Build Changes
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🛠️ Build Changes')
|
||||
- label: Type
|
||||
message: 🛠️ Build Changes
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🛠️ Build Changes')
|
||||
- label: Type
|
||||
message: 🚚 Refactor
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🚚 Refactor')
|
||||
- label: Type
|
||||
message: 💄 Stylistic Changes
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('💄 Stylistic Changes')
|
||||
- label: Type
|
||||
message: 🌟 Showcase Addition
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('💯 Showcase')
|
||||
- label: Type
|
||||
message: 🏗️ Architecture
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🏗️ Architectural Changes')
|
||||
- label: Type
|
||||
message: 🤖 Auto Submission
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🤖 Auto')
|
||||
- label: Type
|
||||
message: 🌐 Language Update
|
||||
color: '#39b0fd'
|
||||
when: $labels.includes('🌐 Language')
|
||||
|
||||
# Add size label based on very large or tiny PRs
|
||||
- label: PR Size
|
||||
message: Extra Large
|
||||
color: '#f9833e'
|
||||
when: '$additions > 1000'
|
||||
- label: PR Size
|
||||
message: Large
|
||||
color: '#f4b546'
|
||||
when: '$additions > 500 && $additions < 1000'
|
||||
- label: PR Size
|
||||
message: Medium
|
||||
color: '#f3ff59'
|
||||
when: '$additions > 10 && $additions < 500'
|
||||
- label: PR Size
|
||||
message: Quick
|
||||
color: '#3eef8b'
|
||||
when: '$additions < 10'
|
||||
|
||||
# Show badge indicating PR status
|
||||
- label: Status
|
||||
message: ✏️ Draft
|
||||
when: $isDraft
|
||||
color: '#ffa933'
|
||||
- label: Status
|
||||
message: 🧱 Work in Progress
|
||||
when: $payload.pull_request.title.includes('WIP')
|
||||
color: '#29e3f4'
|
||||
- label: Status
|
||||
message: ✅ Ready
|
||||
color: '#3ef963'
|
||||
when: $labels.includes('🔀 Ready for Merge')
|
||||
|
||||
# Show PR number, to destination and from destination
|
||||
- label: '#$prNumber'
|
||||
message: '$payload.pull_request.user.login /$payload.pull_request.head.ref → $payload.repository.full_name'
|
||||
color: '#ab5afc'
|
||||
url: 'https://github.com/$slug/tree/$branchName'
|
||||
|
||||
# Show total code added minus deleted
|
||||
- label: New Code
|
||||
message: 'Commits: $payload.pull_request.commits | Files Changed: $payload.pull_request.changed_files | Additions: $payload.pull_request.additions-$payload.pull_request.deletions'
|
||||
color: '#dddd00'
|
||||
|
||||
# Checks if the required sections are missing
|
||||
- label: ⚠️Missing
|
||||
message: Category
|
||||
color: '#f25265'
|
||||
when: $payload.pull_request.body.includes('Category') === false
|
||||
- label: ⚠️Missing
|
||||
message: Overview
|
||||
color: '#f25265'
|
||||
when: $payload.pull_request.body.includes('Overview') === false
|
||||
- label: ⚠️Missing
|
||||
message: Quality Checklist
|
||||
color: '#f25265'
|
||||
when: $payload.pull_request.body.includes('Code Quality Checklist') === false
|
||||
- label: ⚠️Description
|
||||
message: Incomplete
|
||||
color: '#f25265'
|
||||
when: $payload.pull_request.body.length < 25
|
||||
- label: ⚠️Missing
|
||||
message: Label
|
||||
color: '#f25265'
|
||||
when: $labels.length == 0
|
||||
|
||||
# Show note when task list has unfinished items
|
||||
- label: ⚠️Notice
|
||||
message: Unchecked Tasks
|
||||
when: $payload.pull_request.body.includes('- [ ] ')
|
||||
color: '#f25265'
|
||||
|
||||
# Show warning, when certain tags are applied
|
||||
- label: Warning
|
||||
message: ⛔ Do Not Merge
|
||||
color: '#f25265'
|
||||
when: $labels.includes("⛔ Don't Merge")
|
||||
- label: Warning
|
||||
message: 🚫 Merge Conflicts
|
||||
color: '#f25265'
|
||||
when: $labels.includes('🚫 Merge Conflicts')
|
||||
- label: Warning
|
||||
message: 🕸️ Inactive
|
||||
color: '#f25265'
|
||||
when: $labels.includes('🕸️ Inactive')
|
||||
- label: Warning
|
||||
message: 💀 Spam
|
||||
color: '#f25265'
|
||||
when: $labels.includes('💀 Spam')
|
|
@ -0,0 +1,11 @@
|
|||
name: 💡 Apply Done Label
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, merged, closed]
|
||||
jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: logerfo/close-label@0.0.4
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -0,0 +1,38 @@
|
|||
name: 🏗️ Release Tag new Versions
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
tag-pre-release:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tag: ${{ steps.autotag.outputs.tagname }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: butlerlogic/action-autotag@stable
|
||||
id: autotag
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
strategy: package
|
||||
commit_message_template: "🔖 {{number}} {{message}} (by {{author}})\nSHA: {{sha}}\n."
|
||||
github-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tag-pre-release
|
||||
if: ${{ needs.tag-pre-release.outputs.tag }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: ${{ needs.tag-pre-release.outputs.tag }}
|
||||
bodyFile: ".github/LATEST_CHANGELOG.md"
|
||||
mark-issue-fixed:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Label Fixed Issues
|
||||
uses: gh-bot/fix-labeler@master
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
label: '✅ Fixed'
|
|
@ -0,0 +1,11 @@
|
|||
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.GITHUB_TOKEN }}
|
|
@ -0,0 +1,20 @@
|
|||
name: 📊 Wiki Sync
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
schedule:
|
||||
- cron: '0 1 * * 0' # At 01:00 on Sunday.
|
||||
jobs:
|
||||
update-wiki:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- name: Upload Docs to GH Wiki
|
||||
uses: docker://decathlon/wiki-page-creator-action:latest
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||
ACTION_MAIL: jbandyopadhayaya
|
||||
ACTION_NAME: bravo68web
|
||||
OWNER: bravo68web
|
||||
REPO_NAME: shx
|
||||
MD_FOLDER: docs/
|
|
@ -0,0 +1 @@
|
|||
## SHX Wiki Docs
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "shx",
|
||||
"version": "1.0.0",
|
||||
"version": "1.2.0",
|
||||
"description": "File and Data sharing Service",
|
||||
"repository": "git@github.com:BRAVO68WEB/shx.git",
|
||||
"author": "Jyotirmoy Bandyopadhyaya [Bravo68] <jbandyopadhayaya@gmail.com>",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "shx-api",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "My ShareX Server acting as Daddy",
|
||||
"main": "index.ts",
|
||||
"repository": "https://github.com/bravo68web/shx.git",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "shx-cli",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "CLI Utility for SHX API",
|
||||
"main": "build/src/shx.js",
|
||||
"author": "BRAVO68WEB",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dashboard",
|
||||
"version": "0.1.0",
|
||||
"version": "1.2.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
|
Loading…
Reference in New Issue