![]() |
1 year ago | |
---|---|---|
.commit.checklist | 1 year ago | |
NEWS.md | 1 year ago | |
README.md | 1 year ago | |
extra_tabs.tmpl | 1 year ago | |
gitea-feed-workaround.sh | 1 year ago | |
gitea-feed-workaround.webp | 1 year ago | |
gpl-3.0.txt | 1 year ago | |
lgpl-3.0.txt | 1 year ago | |
signatures.sha256 | 1 year ago | |
signatures.sha256.1E906D4F04AFD7A4E0D09080B09F435DBFDEF8B5.asc | 1 year ago | |
signatures.sha384 | 1 year ago | |
signatures.sha384.1E906D4F04AFD7A4E0D09080B09F435DBFDEF8B5.asc | 1 year ago |
A relatively simple script for generating RSS feeds for commits, releases, and issues on Gitea.
This script has been confirmed to work with Gitea version 1.11.0. Newer and older versions may work but are untested.
Copy gitea-feed-workaround.sh
to a persistent location.
Edit the variables at the beginning of gitea-feed-workaround.sh
.
Variables should reflect the configuration of your specific gitea
setup.
Run the script or install it as a system service. The user used to run this script must have:
read
access to the sqlite database fileread
access to the git repositoriesread/write
access to output directoriesBy default, generated files can be accessed at:
/_feeds/USER/REPOSITORY/commits.rss
/_feeds/USER/REPOSITORY/issues.rss
/_feeds/USER/REPOSITORY/releases.rss
/_feeds/all/feeds.opml
(disabled by default)/_feeds/all/feeds.txt
(disabled by default)This script works by periodically polling Gitea’s databases
and git directories for recent updates. These updates are aggregated
into static .rss
files and hosted by a normal HTTP web server. Gitea
itself can host these files by placing them in gitea’s
custom/public
directory.
Considered updates are one of the following events:
commits.rss
).issues.rss
).releases.rss
).Only a limited number of the updates are included in each feed (with the exception of announcements, which are always included). Updates are sorted by date and only the most recent are included.
The data formats used by this script:
If you want to add a “Feeds” tab to each repository page, copy
or append extra_tabs.tmpl
to the correct location. See the comments
at the top of the file for more information.
Announcements are special feed entries that are pinned in all
generated feeds. They are derived from files stored in the
announcements directory ANNOUNCEMENT_DIR
:
Announcements are always included in every single feed. They persist until their source files are removed from the announcements directory.
This script can be configured to generate a complete list of every
feed it generates. This list is meant to ease importing feeds in
other software. By setting ENABLE_GLOBAL_FEED_LISTS
to YES
, a
feeds list will be generated at /_feeds/all/feeds.opml
and
/_feeds/all/feeds.txt
.
When Gitea inevitably introduces feed support, you can use Feed Announcements to let subscribers know about the changes and the migration schedule.
Commercial integration and development support is available. Please send inquires to contact@ka.com.kw
The source code of this project is maintained in a git repository at code.ka.com.kw. Bug reports and features request are welcome there. You can visit this repository at: https://code.ka.com.kw/miscellaneous/gitea-feed-workaround
Alternatively, you can report bugs to support@ka.com.kw
Files in this repository are available under the LGPLv3.
(ح) حقوق المؤلف محفوظة لشركة كوتوميتا لبرمجة وتشغيل الكمبيوتر وتصميم وإدارة مواقع الإنترنت (ش.ش.و) - سنة ٢٠٢٠
تنفي الشركة أي مسئولية عن عدم أهلية البرنامج لأداء وظيفته المعلن عنها أو عن الأضرار التي قد يتكبدها المستخدم وغيره نتيجة استخدام هذا البرنامج. تقع مسؤولية أي ضرر ناجم عن استخدام هذا البرنامج على عاتق المستخدم وحده. اطلع على المستندات المرافقة لهذا البرنامج لمزيد من المعلومات.
Copyright © 2020 Kutometa SPC, Kuwait All rights reserved. Unless explicitly stated otherwise, this program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. See accompanying documentation for more details.