Skip to content

Commit 9ad4ef5

Browse files
Merge pull request #209 from githubevents/improve/standardize-and-consolidate
Standardize time zones, consolidate scheduled workflows, add CONTRIBUTING.md
2 parents 083facb + fdfb82f commit 9ad4ef5

8 files changed

Lines changed: 137 additions & 111 deletions

File tree

.github/workflows/host-reminder.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/notify-scheduled-guests.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Scheduled Guest & Host Notifications
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
notify-guest:
9+
runs-on: ubuntu-latest
10+
if: github.event.label.name == 'scheduled'
11+
steps:
12+
- name: Notify guest with schedule and prep guide
13+
uses: actions/github-script@v7
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
script: |
17+
const githubHandle = context.payload.issue.user.login;
18+
19+
console.log('Processing issue #', context.issue.number, 'by author:', githubHandle);
20+
21+
if (!githubHandle) {
22+
console.log('No GitHub handle found for issue #', context.issue.number);
23+
return;
24+
}
25+
26+
const isValidGitHubHandle = (handle) => {
27+
if (!handle || typeof handle !== 'string') return false;
28+
if (handle.length < 1 || handle.length > 39) return false;
29+
return /^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$|^[a-zA-Z0-9]$/.test(handle);
30+
};
31+
32+
if (!isValidGitHubHandle(githubHandle)) {
33+
console.log('Handle validation failed for issue #', context.issue.number);
34+
return;
35+
}
36+
37+
const safeHandle = githubHandle.replace(/[<>'"&]/g, '');
38+
39+
const commentBody = [
40+
`Hey @${safeHandle} ✨`,
41+
'',
42+
"You're officially scheduled for **Open Source Friday**! 🚀🎥",
43+
'',
44+
'The stream starts at **1:00 PM ET**. Please join at **12:45 PM ET** for prep and tech checks. Be ready with your demo—our audience strongly prefers technical demos.',
45+
'',
46+
'Here are some guidelines on preparing for the live stream:',
47+
'',
48+
'[Preparation Instructions](https://github.com/githubevents/open-source-friday/blob/main/admin/guest-assets/Streaming-Guide.md)',
49+
'',
50+
'Let us know if you have any questions!',
51+
'',
52+
'Kedasha, Andrea & Kevin 👯',
53+
].join('\n');
54+
55+
try {
56+
const result = await github.rest.issues.createComment({
57+
owner: context.repo.owner,
58+
repo: context.repo.repo,
59+
issue_number: context.issue.number,
60+
body: commentBody,
61+
});
62+
console.log('Guest notification created, ID:', result.data.id);
63+
} catch (error) {
64+
console.error('Failed to create guest comment for issue #', context.issue.number);
65+
}
66+
67+
remind-hosts:
68+
runs-on: ubuntu-latest
69+
if: github.event.label.name == 'scheduled'
70+
steps:
71+
- name: Post host checklist
72+
uses: actions/github-script@v7
73+
with:
74+
github-token: ${{ secrets.GITHUB_TOKEN }}
75+
script: |
76+
const commentBody = [
77+
'Hi @LadyKerr, @AndreaGriffiths11, and @KevinCrosby,',
78+
'',
79+
'This stream has been scheduled. Please complete the following tasks:',
80+
'',
81+
'- [ ] Create social card',
82+
'- [ ] Create meetup link',
83+
'- [ ] Create and schedule twitch stream (LinkedIn, Twitch, YouTube)',
84+
'- [ ] Schedule social media post (Twitter)',
85+
'- [ ] Send prep doc to guests',
86+
'',
87+
'You can find the instructions in this [guide](https://github.com/githubevents/open-source-friday/blob/main/admin/guest-assets/Streaming-Guide.md).',
88+
].join('\n');
89+
90+
await github.rest.issues.createComment({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: context.issue.number,
94+
body: commentBody,
95+
});

.github/workflows/send-guest-guidelines.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing to Open Source Friday
2+
3+
Thank you for your interest in contributing to Open Source Friday! 🎉
4+
5+
## How to Participate as a Guest
6+
7+
If you'd like to be featured on the show, check out our [project criteria](admin/project-criteria.md) and submit a [guest invite request](https://github.com/githubevents/open-source-friday/issues/new?template=osf-guest-invite.yml&assignees=AndreaGriffiths11%2CLadyKerr&labels=open-source%2Copen-source-friday%2Cpending%2Ctwitch).
8+
9+
## Contributing to This Repository
10+
11+
We welcome contributions that improve the guest experience, automation, or documentation.
12+
13+
### Getting Started
14+
15+
1. Fork this repository
16+
2. Create a feature branch (`git checkout -b my-improvement`)
17+
3. Commit your changes (`git commit -m "Describe your change"`)
18+
4. Push to your branch (`git push origin my-improvement`)
19+
5. Open a Pull Request
20+
21+
### Areas Where We'd Love Help
22+
23+
- **Documentation** — Improving guest guides, translating to new languages
24+
- **Automation** — Enhancing GitHub Actions workflows for guest onboarding
25+
- **Templates** — Improving issue templates and guest communication
26+
27+
### Guidelines
28+
29+
- Keep changes focused and well-described in your PR
30+
- Test workflow changes with [act](https://github.com/nektos/act) or in a fork before submitting
31+
- Follow existing file and folder conventions
32+
33+
## Code of Conduct
34+
35+
This project follows [GitHub's Community Guidelines](https://docs.github.com/en/site-policy/github-terms/github-community-guidelines). Please be respectful and constructive in all interactions.
36+
37+
## Questions?
38+
39+
Open an issue or reach out to the maintainers: [@AndreaGriffiths11](https://github.com/AndreaGriffiths11), [@LadyKerr](https://github.com/LadyKerr), and [@KevinCrosby](https://github.com/KevinCrosby).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
## Open Source Friday - Live Stream Event ✨
7-
_Every Friday at 1 PM EST_
7+
_Every Friday at 1 PM ET_
88

99
Join [Andrea Griffiths](https://www.x.com/alacolombiadev/), [Kedasha Kerr](https://www.instagram.com/itsthatlady.dev/), and [Kevin Crosby](https://www.linkedin.com/in/kevinanthonycrosby/) for Open Source Friday, where we dive into engaging discussions with maintainers from some of GitHub's most popular projects. Interested in participating? Start by checking out our [project criteria](https://github.com/githubevents/open-source-friday/blob/main/admin/project-criteria.md) and then open an issue using our [guest invite template](https://github.com/githubevents/open-source-friday/issues/new?template=osf-guest-invite.yml&assignees=AndreaGriffiths11%2CLadyKerr&labels=open-source%2Copen-source-friday%2Cpending%2Ctwitch).
1010

admin/guest-assets/preguntas-generales.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Unirse a la Transmisión
22
Puedes unirte a la transmisión desde este enlace:
33

4-
La hora oficial de inicio es: 12:00 pm, hora del este (ET). Por favor, intenta unirte 10-15 minutos (alrededor de las 11:45) antes para que podamos probar el audio, el video y el intercambio de pantalla.
4+
La hora oficial de inicio es: 1:00 PM ET (hora del este). Por favor, intenta unirte 10-15 minutos (alrededor de las 12:45) antes para que podamos probar el audio, el video y el intercambio de pantalla.
55

66
## Formato
77

admin/project-criteria.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Additionally, projects with the following characteristics will be given preferen
1515

1616
As a maintainer or contributor, you should be:
1717

18-
1. Available to participate in the live stream on the designated Friday at 10am PST. We're also happy to accommodate exceptions for pre-recording sessions for certain projects.
18+
1. Available to participate in the live stream on the designated Friday at 1:00 PM ET. We're also happy to accommodate exceptions for pre-recording sessions for certain projects.
1919
2. Willing to receive and review the show notes and live streaming preparation guide.
2020
3. Available for a live stream scheduled at least two weeks in advance.
2121

0 commit comments

Comments
 (0)