Skip to content

Commit 046e38c

Browse files
committed
Update issue templates, funding, and add activity notification workflow
1 parent 1234001 commit 046e38c

6 files changed

Lines changed: 89 additions & 14 deletions

File tree

.github/FUNDING.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# These are supported funding model platforms
22

3-
github: ["rukamori"]
4-
ko_fi: rukamori
5-
custom: ["https://koiiverse.cloud/donate"]
3+
github: ["urstark"]
4+
ko_fi: urstark
5+
custom: ["https://urstark.is-a.dev/donate"]

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Bug Report
2-
description: Report a reproducible ArchiveTune bug
2+
description: Report a reproducible Solstice bug
33
labels: [BUG]
44
body:
55
- type: markdown
66
attributes:
77
value: |
8-
Thank you for helping improve ArchiveTune.
8+
Thank you for helping improve Solstice.
99
1010
Before submitting, verify the bug on the latest nightly build whenever possible. Stable releases may already contain bugs fixed in nightly builds, so stable-only reports need a clear reason and may be closed if they cannot be reproduced on nightly.
1111
@@ -15,7 +15,7 @@ body:
1515
label: Required pre-submission checklist
1616
description: Reports that skip these checks are difficult to triage and may be closed.
1717
options:
18-
- label: I have tested this bug on the [latest nightly version](https://github.com/SolsticeIO/ArchiveTune/actions).
18+
- label: I have tested this bug on the [latest nightly version](https://github.com/SolsticeIO/Solstice/actions).
1919
required: true
2020
- label: This report describes one specific bug, not multiple unrelated problems.
2121
required: true
@@ -65,7 +65,7 @@ body:
6565
- type: input
6666
id: app-version
6767
attributes:
68-
label: ArchiveTune version
68+
label: Solstice version
6969
description: Found in Settings -> About, or from the APK/build artifact name.
7070
placeholder: "Example: 13.4.0, debug build, or nightly hash abc1234"
7171
validations:
@@ -113,7 +113,7 @@ body:
113113
label: Steps to reproduce
114114
description: Provide exact steps from a clean app state when possible.
115115
placeholder: |
116-
1. Open ArchiveTune.
116+
1. Open Solstice.
117117
2. Go to ...
118118
3. Tap ...
119119
4. Observe ...

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Feature Request
2-
description: Share an idea to improve ArchiveTune
2+
description: Share an idea to improve Solstice
33
labels: [ENHANCEMENT]
44
body:
55
- type: checkboxes
@@ -44,7 +44,7 @@ body:
4444
id: proposed-solution
4545
attributes:
4646
label: Proposed Solution
47-
description: Describe what you want to happen. How should this feature work in ArchiveTune?
47+
description: Describe what you want to happen. How should this feature work in Solstice?
4848
placeholder: Provide a detailed breakdown of the desired behavior or UI changes.
4949
validations:
5050
required: true
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Notify Activity to Telegram
2+
3+
on:
4+
watch:
5+
types: [started]
6+
fork:
7+
issues:
8+
types: [opened]
9+
pull_request:
10+
types: [opened]
11+
12+
jobs:
13+
notify:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.x'
20+
21+
- name: Install dependencies
22+
run: pip install requests
23+
24+
- name: Send notification to Telegram
25+
env:
26+
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
27+
CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
28+
TOPIC_ID: ${{ secrets.TELEGRAM_TOPIC_ID }}
29+
EVENT_NAME: ${{ github.event_name }}
30+
ACTOR: ${{ github.actor }}
31+
REPO: ${{ github.repository }}
32+
run: |
33+
python -c "
34+
import os, requests
35+
36+
bot_token = os.environ.get('BOT_TOKEN')
37+
chat_id = os.environ.get('CHAT_ID')
38+
topic_id = os.environ.get('TOPIC_ID')
39+
event = os.environ.get('EVENT_NAME')
40+
actor = os.environ.get('ACTOR')
41+
repo = os.environ.get('REPO')
42+
43+
if not bot_token or not chat_id:
44+
print('Telegram credentials not configured.')
45+
exit(0)
46+
47+
if event == 'watch':
48+
action = 'starred'
49+
elif event == 'fork':
50+
action = 'forked'
51+
elif event == 'issues':
52+
action = 'opened an issue in'
53+
elif event == 'pull_request':
54+
action = 'opened a PR in'
55+
else:
56+
action = f'triggered {event} in'
57+
58+
message = f'User [{actor}](https://github.com/{actor}) {action} the repository [{repo}](https://github.com/{repo})!'
59+
60+
url = f'https://api.telegram.org/bot{bot_token}/sendMessage'
61+
payload = {
62+
'chat_id': chat_id,
63+
'text': message,
64+
'parse_mode': 'Markdown',
65+
'disable_web_page_preview': True
66+
}
67+
if topic_id:
68+
payload['message_thread_id'] = topic_id
69+
70+
response = requests.post(url, json=payload)
71+
if response.status_code != 200:
72+
print(f'Failed to send message: {response.status_code} {response.text}')
73+
else:
74+
print('Message sent successfully!')
75+
"

.github/workflows/notify_telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525
commit_author, commit_message, commit_hash, commit_hash_short = get_git_commit_info()
2626

2727
message = (
28-
f"A new [commit](https://github.com/ArchiveTuneApp/ArchiveTune/commit/{commit_hash}) has been merged to the repository by *{commit_author}*.\n\n"
28+
f"A new [commit](https://github.com/SolsticeIO/Solstice/commit/{commit_hash}) has been merged to the repository by *{commit_author}*.\n\n"
2929
f"*What has changed:*\n>{escape_parentheses(commit_message)}\n\n"
3030
f"I'm currently building it and will send you the APKs here within ~9 mins if the build is successful.\n\n#{commit_hash_short}"
3131
)

.github/workflows/notify_user.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ jobs:
3333
const nightlyLinks = [
3434
{
3535
label: "GMS",
36-
url: "https://nightly.link/ArchiveTuneApp/ArchiveTune/workflows/build/dev/app-gms-mobile-universal-release"
36+
url: "https://nightly.link/SolsticeIO/Solstice/workflows/build/dev/app-gms-mobile-universal-release"
3737
},
3838
{
3939
label: "FOSS",
40-
url: "https://nightly.link/ArchiveTuneApp/ArchiveTune/workflows/build/dev/app-foss-mobile-universal-release"
40+
url: "https://nightly.link/SolsticeIO/Solstice/workflows/build/dev/app-foss-mobile-universal-release"
4141
}
4242
];
4343
const nightlyUrls = nightlyLinks.map((link) => link.url);
4444
const labelName = process.env.ISSUE_LABEL;
4545
const labelColor = process.env.ISSUE_LABEL_COLOR;
4646
const labelDescription = process.env.ISSUE_LABEL_DESCRIPTION;
47-
const commentMarker = "<!-- archivetune-notify-user:nightly-reference -->";
47+
const commentMarker = "<!-- solstice-notify-user:nightly-reference -->";
4848
const referencedIssuePattern = /#([1-9]\d*)\b/g;
4949
const issueClosedReason = "completed";
5050
const workflowRun = context.payload.workflow_run;

0 commit comments

Comments
 (0)