Skip to content

Commit

Permalink
feat: add information on guestbook (#200)
Browse files Browse the repository at this point in the history
* Add example project lists

* Add action for maintainers repos

* Update .github/workflows/maintainer_course.yml

Co-authored-by: Ayu Adiati <[email protected]>

---------

Co-authored-by: Ayu Adiati <[email protected]>
  • Loading branch information
BekahHW and adiati98 authored May 20, 2024
1 parent fa61f9c commit 07691a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/maintainer_course.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Maintainer Course Action

on:
pull_request_target:
types:
- opened

permissions:
pull-requests: write

jobs:
intro_course_contributor:
runs-on: ubuntu-latest
steps:

- name: Post comment for course contributors
if: contains(github.event.pull_request.title, 'adds repo to guestbook')
run: |
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)!"
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"
3 changes: 3 additions & 0 deletions docs/becoming-a-maintainer/maintainers-guestbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Congratulations on finishing the Becoming a Maintainer Course with OpenSauced. W
<!--
- [project name](link to your repository) by [GitHub username](link to your GitHub profile)
-->

- [Virtual Coffee](https://github.com/virtual-Coffee/virtualcoffee.io/) by [VirtualCoffee](https://github.com/virtual-Coffee/)
- [Postpartum Wellness App](https://github.com/BekahHW/postpartum-wellness-app) by [BekahHW](https://github.com/BekahHW/)

0 comments on commit 07691a1

Please sign in to comment.