Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GitlabRSSSync
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
GitlabRSSSync
Commits
74a645a3
Commit
74a645a3
authored
5 years ago
by
Adam Harrison-Fuller
Browse files
Options
Downloads
Patches
Plain Diff
Updating readme and adding example conf.
Signed-off-by:
Adam Harrison-Fuller
<
adam@adamhf.io
>
parent
1b4b53f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-4
12 additions, 4 deletions
README.md
config.yaml.example
+8
-0
8 additions, 0 deletions
config.yaml.example
with
20 additions
and
4 deletions
README.md
+
12
−
4
View file @
74a645a3
# Gitlab RSS Sync
Create Gitlab issues from RSS Feeds
Create Gitlab issues from RSS Feeds with optional labelling. Created to monitor RSS feeds and bring posts to
our attention (Security Releases, Product Updates etc)
## Config file
```
$yaml
The config file
**MUST**
be named config.yaml, an example one is provided
[
here
](
config.yaml.example
)
. Below is a brief
description of its contents.
```
yaml
interval
:
300 // Interval in seconds to check the RSS feeds.
feeds
:
-
id
:
test //Specify a feed ID that is used internally for duplicate detection.
feed_url
:
http://example.com/rss.xml // The Feed URL.
name
:
Test Feed // A User friendly display name.
gitlab_project_id
:
12345 // The Gitlab project ID to create issues under.
labels: // A list of labels to add to created Issues.
added_since
:
"
2019-03-27T15:00:00Z"
// (Optional) For longer RSS feeds specify a date to exclude items published/updated earlier than this
labels
:
// (Optional) A list of labels to add to created Issues.
- TestLabel
-
id
:
...
```
...
...
@@ -28,4 +34,6 @@ Make sure the location of your DATA_DIR environment variable is set to a persist
that is contained within it stores the state of which RSS items have already been synced.
### Run it
`docker run -e GITLAB_API_TOKEN=<INSERT_TOKEN> -e DATA_DIR=/data -e CONFIG_DIR=/app -v <PATH_TO_DATA_DIR>:/data -v <PATH_TO_CONFIG_DIR>/config adamhf/rss-sync:latest`
\ No newline at end of file
```
sh
docker run
-e
GITLAB_API_TOKEN
=
<INSERT_TOKEN>
-e
DATA_DIR
=
/data
-e
CONFIG_DIR
=
/app
-v
<PATH_TO_DATA_DIR>:/data
-v
<PATH_TO_CONFIG_DIR>/config adamhf/rss-sync:latest
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config.yaml.example
0 → 100644
+
8
−
0
View file @
74a645a3
interval: 300
feeds:
- id: reddit
feed_url: https://www.reddit.com/.rss
name: Reddit Front Page
gitlab_project_id: 12345678
labels:
- Reddit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment