diff --git a/docs/en/programming.md b/docs/en/programming.md
index 005d0539dc..48bb5e65f4 100644
--- a/docs/en/programming.md
+++ b/docs/en/programming.md
@@ -19,35 +19,35 @@ GitHub provides some official RSS feeds:
### User Repo
-
+
### Trending
-
+
### Repo Issues
-
+
### Repo Pull Requests
-
+
### User Followers
-
+
### Repo Stars
-
+
### Repo Branches
-
+
### Files Commits
-
+
| User name | Repo name | Branch name | File path |
| --------- | --------- | ----------- | --------------- |
@@ -60,11 +60,11 @@ GitHub provides some official RSS feeds:
> >
> > Such as: replace `https://rsshub.app/github/file/DIYgod/RSSHub/master/lib/router%2ejs` to `https://rsshub.app/github/file/DIYgod/RSSHub/master/lib/router%2ejs.rss`
-
+
### Search Result
-
+
| Sort options | sort |
| ---------------- | --------- |
@@ -75,29 +75,29 @@ GitHub provides some official RSS feeds:
### User Starred Repositories
-
+
### Repo Contributors
-
+
## GitLab
### Explore
-
+
| Trending | Most stars | All |
| -------- | ---------- | --- |
| trending | starred | all |
-
+
## Hacker News
### Section
-
+
Website: https://news.ycombinator.com/
@@ -118,7 +118,7 @@ Website: https://news.ycombinator.com/
| story | Deault, link to shared address |
| comments | Link to Hacker News address |
-
+
## Hex-Rays
@@ -131,45 +131,45 @@ Website: https://news.ycombinator.com/
### Discussion
-
+
| hot | recent | new | top | active |
| ------- | --------------- | --------------- | ---------- | ------------- |
| Hotness | Recent Comments | Recently Posted | Most Votes | Most Comments |
-
+
### Competitions
-
+
| 空 | featured | research | recruitment | gettingStarted | masters | playground | analytics |
| -------------- | -------- | -------- | ----------- | --------------- | ------- | ---------- | --------- |
| All Categories | Featured | Research | Recruitment | Getting started | Masters | Playground | Analytics |
-
+
## LeetCode
### Articles
-
+
### Submission
-
+
## Linux Patchwork
### Patch Comments
-
+
## LWN.net
### Security alerts
-
+
| Distribution | Identification |
| :--------------- | :----------------- |
@@ -187,7 +187,7 @@ Website: https://news.ycombinator.com/
| SUSE | `SUSE` |
| Ubuntu | `Ubuntu` |
-
+
## project-zero issues
@@ -199,18 +199,16 @@ Website: https://news.ycombinator.com/
### Scala Blog
-
-part parmater can be found in the url of blog
-
+
## Visual Studio Code Marketplace
### Visual Studio Code Plugins Marketplace
-
+
| Featured | Trending Weekly | Trending Monthly | Trending Daily | Most Popular | Recently Added |
| -------- | --------------- | ---------------- | -------------- | ------------ | -------------- |
| featured | trending | trending_m | trending_d | popular | new |
-
+
diff --git a/docs/programming.md b/docs/programming.md
index 3a9f60c993..25bd7f29b1 100644
--- a/docs/programming.md
+++ b/docs/programming.md
@@ -129,7 +129,7 @@ GitHub 官方也提供了一些 RSS:
### 仓库 Contirbutors
-
+
## GitLab
diff --git a/lib/router.js b/lib/router.js
index ffdd62e26e..5e4ba6b184 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -275,7 +275,7 @@ router.get('/github/search/:query/:sort?/:order?', require('./routes/github/sear
router.get('/github/branches/:user/:repo', require('./routes/github/branches'));
router.get('/github/file/:user/:repo/:branch/:filepath+', require('./routes/github/file'));
router.get('/github/starred_repos/:user', require('./routes/github/starred_repos'));
-router.get('/github/contributors/:user/:repo/:anon?', require('./routes/github/contributors'));
+router.get('/github/contributors/:user/:repo/:order?/:anon?', require('./routes/github/contributors'));
// f-droid
router.get('/fdroid/apprelease/:app', require('./routes/fdroid/apprelease'));
diff --git a/lib/routes/github/contributors.js b/lib/routes/github/contributors.js
index dfbff149e8..071b730ef3 100644
--- a/lib/routes/github/contributors.js
+++ b/lib/routes/github/contributors.js
@@ -4,6 +4,7 @@ const config = require('@/config').value;
module.exports = async (ctx) => {
const user = ctx.params.user;
const repo = ctx.params.repo;
+ const order = ctx.params.order;
const anon = ctx.params.anon;
const host = `https://github.com/${user}/${repo}`;
@@ -53,7 +54,7 @@ module.exports = async (ctx) => {
data.forEach(function(item) {
const time = new Date();
- time.setMinutes(time.getMinutes() - data.length + index);
+ time.setMinutes(time.getMinutes() + (order === 'asc' ? -data.length + index : -index));
index++;
if (item.type === 'Anonymous') {