Skip to content

Commit 07691a1

Browse files
BekahHWadiati98
andauthored
feat: add information on guestbook (OpenSource-Communities#200)
* Add example project lists * Add action for maintainers repos * Update .github/workflows/maintainer_course.yml Co-authored-by: Ayu Adiati <45172775+adiati98@users.noreply.github.com> --------- Co-authored-by: Ayu Adiati <45172775+adiati98@users.noreply.github.com>
1 parent fa61f9c commit 07691a1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Maintainer Course Action
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
intro_course_contributor:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Post comment for course contributors
17+
if: contains(github.event.pull_request.title, 'adds repo to guestbook')
18+
run: |
19+
PR_COMMENT="Congratulations on completing the Becoming a Maintainer Course with your contribution to this repository, @${{ github.actor }}! We'd love to continue to amplify your project. Here are some ways to do that: Create a [highlight](https://app.opensauced.pizza/feed) of your contribution to our guestbook — [more info here](https://docs.opensauced.pizza/features/highlights/) — and share it with us in our Discord channel [#open-source-education-path](https://discord.gg/opensauced)!"
20+
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X POST -d "{\"body\":\"$PR_COMMENT\"}" "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"

docs/becoming-a-maintainer/maintainers-guestbook.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Congratulations on finishing the Becoming a Maintainer Course with OpenSauced. W
88
<!--
99
- [project name](link to your repository) by [GitHub username](link to your GitHub profile)
1010
-->
11+
12+
- [Virtual Coffee](https://github.com/virtual-Coffee/virtualcoffee.io/) by [VirtualCoffee](https://github.com/virtual-Coffee/)
13+
- [Postpartum Wellness App](https://github.com/BekahHW/postpartum-wellness-app) by [BekahHW](https://github.com/BekahHW/)

0 commit comments

Comments
 (0)