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
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,14 +56,24 @@ Displays a list of open pull requests from a GitHub repository.
56
56
57
57
### Important Notes
58
58
59
-
-Before using these shortcodes, make sure you have a valid GitHub personal access token. You can create a token with appropriate permissions in your GitHub account settings.
59
+
-For public repositories, the shortcodes work without a token. Add a GitHub personal access token if you need better rate limits or private repo access.
60
60
61
61
- Replace `YourGitHubToken`, `YourRepository`, and `OwnerOfRepo` with the appropriate values for your GitHub repository.
62
62
63
-
-Ensure that cURL is enabled on your server to make API requests to GitHub.
63
+
-The plugin uses the WordPress HTTP API, so cURL-specific setup is no longer required.
64
64
65
-
-Add your own User-Agent in the code (where specified) to comply with GitHub API guidelines.
65
+
-The plugin now sends a WordPress-safe User-Agent automatically.
66
66
67
67
- Insert the desired shortcode into your WordPress post, page, or widget to display GitHub repository information on your website.
68
68
69
69
Enjoy displaying GitHub repository data on your WordPress site using these simple and efficient shortcodes!
70
+
71
+
## Change Log
72
+
73
+
### v1.1
74
+
75
+
- Replaced raw cURL requests with the WordPress HTTP API.
76
+
- Added input validation for repository owner and name.
77
+
- Added short-term caching with transients to reduce GitHub API calls.
78
+
- Improved escaping and added `rel="noopener noreferrer"` to external links.
79
+
- Made commit, issue, and pull request rendering more tolerant of missing GitHub fields.
0 commit comments