Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 339dbbc

Browse files
committed
docs(quickstart): Usage documentation #36 #43
1 parent b16f916 commit 339dbbc

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.github/workflows/community.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
types: [ created ]
1313

1414
jobs:
15+
1516
welcome:
1617
runs-on: ubuntu-latest
1718
steps:

README.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
11
# GitHub Action Community <img src="https://i.imgur.com/m6EYre1.png" width="50px">
22

3-
GitHub Action for the Community - from welcoming first timers to badges!
3+
GitHub Action for the Community - from welcoming first timers to logging your activity for badges!
44

5-
## Features 💡
5+
## GitHub Action Features 💡
66

7-
- Replies to new Issues and Pull Requests
8-
- Logs statistics of user activity
7+
These GitHub Actions will:
8+
- reply to all new **Issues** and **Pull Requests**
9+
- log statistics of user activity to Firestore DB (Firebase)
910

11+
## Quickstart
12+
13+
You can use 1 or all of these GitHub Actions.
14+
15+
### Welcoming message
16+
17+
This GitHub Action will reply to all new **Issues** and **Pull Requests** with a custom message
18+
19+
Example usage (you can change the replies for `issue-message` and `pr-message`)
20+
```yaml
21+
welcome:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: EddieJaoudeCommunity/gh-action-community/src/welcome@main
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
issue-message: '<h1>It''s great having you contribute to this project</h1> Feel free to raise an <strong>Issue</strong>! Welcome to the community :nerd_face:'
29+
pr-message: '<h1>It''s great having you contribute to this project</h1> Feel free to create a <strong>Pull Request</strong>! Welcome to the community :nerd_face:'
30+
```
31+
32+
### Store community acitivity
33+
34+
This GitHub Action will log statistics of user activity to Firestore DB (Firebase)
35+
36+
```yaml
37+
statistics:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v1
41+
- uses: EddieJaoudeCommunity/gh-action-community/src/statistics@main
42+
if: ${{ <expression> }}
43+
with:
44+
firebase-key: ${{ secrets.FIREBASE_KEY }}
45+
```

0 commit comments

Comments
 (0)