Skip to content

Provide github token via inputs instead of env. variables #67

@StefMa

Description

@StefMa

Right now you have to put the github token via environment variables:

    - uses: blackjacx/backlog-notifier@1.4.0
      with:
        repo-references: |
          {
            "data": [
              { "repo_id": "BACKLOG", "repo_name": "backlog" },
            ]
          }
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

See

const token = process.env.GITHUB_TOKEN

If we move this to an input, then we can also provide the default github token.
Not sure if this is useful as probably this github token don't have access to other repos, but maybe you want to inform your issues within that repo as well? 🤔

Additionally, I think it looks nicer if this is part of the with block and doesn't require an extra env statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions