Skip to content

How to only post the url to the issue instead of the body? #53

@ReenigneArcher

Description

@ReenigneArcher
jobs:
  rss-monitor:
    runs-on: ubuntu-latest
    steps:
      - name: RSS to issues
        uses: git-for-windows/rss-to-issues@v0
        with:
          github-token: ${{ secrets.GH_BOT_TOKEN }}
          feed: https://lizardbyte.github.io/feed.xml
          character-limit: 0
          dry-run: false
          max-age: 48h
          labels: blog

Results in:
image

But I would like only the url. Is it possible?

Looking at the code it looks like this would need to be adjusted:

rss-to-issues/index.js

Lines 94 to 97 in 668f251

// truncate if characterLimit > 0
if (characterLimit && markdown.length > characterLimit) {
markdown = `${markdown.substr(0, characterLimit)}…\n\n---\n## Would you like to know more?\nRead the full article on the following website:`
}

Would you accept a PR to either:

  1. Have a value of 0 to not have anything except the url
  2. Have a negative value (e.g. -1) to not have anything except the url
  3. Add an input option to only show the url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions