-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (33 loc) · 1.57 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Hardcoding all the args for now, can be dynamic later
_default:
@just --list
# Start a server on http://localhost:3000 which receives webhook events and dumps the payloads into the fixtures folder
listen:
python3 server.py
# Requires the following commands to be run first:
# - gh extension install cli/gh-webhook
# - gh auth refresh -h github.com -s admin:org_hook
#
# Create a development GitHub webhook and forward all webhook events to http://localhost:3000
register_webhook:
gh webhook forward --events='*' --org=catppuccin-rfc --url="http://localhost:3000"
# Create a new issue, close and reopen it in catppuccin-rfc/polybar
issues:
#!/usr/bin/env bash
ISSUE_URL=$(gh issue create --title "rockdove-{{datetime_utc("%Y%m%d_%H%M%S")}}" --body "rockdove" --repo catppuccin-rfc/polybar)
gh issue close "$ISSUE_URL"
gh issue reopen "$ISSUE_URL"
# Rename an existing repository under catppuccin-rfc
repository_rename current_repo new_repo:
gh repo rename {{new_repo}} --repo catppuccin-rfc/{{current_repo}}
# The reason for using `gh api`: https://github.com/cli/cli/issues/5292
#
# Transfer an existing repository to a new owner
repository_transfer current_owner_plus_repo new_owner:
gh api repos/{{current_owner_plus_repo}}/transfer -f new_owner={{new_owner}}
# Create a pull request, close and reopen it in catppuccin-rfc/polybar
pull_request:
#!/usr/bin/env bash
PR_URL=$(gh pr create --base main --head sgoudham-patch-1 --title "rockdove-{{datetime_utc("%Y%m%d_%H%M%S")}}" --body "rockdove" --repo catppuccin-rfc/polybar)
gh pr close "$PR_URL"
gh pr reopen "$PR_URL"