You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,24 +32,32 @@ This GitHub Action automatically fetches all your public repositories (excluding
32
32
```
33
33
Then commit and push the changes.
34
34
35
-
*Make sure to update the workflow file with your GitHub username wherever required.*
35
+
2.**Customize Language Output**
36
36
37
-
2.**Generate a GitHub Personal Access Token (PAT)**
37
+
To customize which languages are shown or excluded, visit lines 59 and 60 of `analyze-code.yml` and edit the `INCLUDE_LANGUAGES` and `EXCLUDE_LANGUAGES` variables as needed.
38
+
39
+
Languages not listed in `INCLUDE_LANGUAGES` and not excluded by `EXCLUDE_LANGUAGES` will be counted together and displayed as "Other languages" in the breakdown.
40
+
41
+
4.**Update GitHub Username**
42
+
43
+
Make sure to update the workflow file with your GitHub username wherever required.
44
+
45
+
6.**Generate a GitHub Personal Access Token (PAT)**
38
46
You need a **Personal Access Token (PAT)** with **`repo`** permissions.
39
47
Refer to [GitHub Docs](https://github.com/settings/tokens) on how to generate one.
40
48
41
-
3.**Add the Token to Repository Secrets**
49
+
7.**Add the Token to Repository Secrets**
42
50
- Go to **Settings → Secrets and variables → Actions → New repository secret**
43
51
- Name the secret **`GH_PAT`**
44
52
- Paste the generated token and save.
45
53
46
-
4.**Update Workflow Permissions**
54
+
8.**Update Workflow Permissions**
47
55
In the repository where you're running the action, make sure to update workflow permissions:
48
56
- Go to **Settings → Actions → General**.
49
57
- Under **Workflow permissions**, select **"Read and write permissions"**.
50
58
- This allows the workflow to update files like `README.md` automatically.
51
59
52
-
5.**Trigger the Workflow**
60
+
9.**Trigger the Workflow**
53
61
- The workflow runs **by default every Sunday at midnight UTC (customizable)**.
54
62
- To **run manually**, go to **GitHub Actions → Select Workflow → Run Workflow**.
55
63
- To **run on every push**, modify the workflow's `on:` section to:
@@ -60,10 +68,10 @@ This GitHub Action automatically fetches all your public repositories (excluding
60
68
- main
61
69
```
62
70
63
-
6. **Wait for Processing**
71
+
10. **Wait for Processing**
64
72
The time taken depends on the number of repositories and their sizes. Once completed, your `README.md` will be updated with the latest **lines of code breakdown**.
65
73
66
-
7. **Ensure Placeholders Are Present**
74
+
11. **Ensure Placeholders Are Present**
67
75
To allow automatic updates, your `README.md` must include the following placeholders:
68
76
```
69
77
<!-- LANGUAGES BREAKDOWN (STATIC EXAMPLE) START -->
0 commit comments