This action gets the issues in a repository marked with specified label. After that it posts those issues to a HTTP endpoint (Flow or Logic App) which can then post those issues in a nicely formatted way to a Teams channel.
The action requires a HTTP triggered Flow to be created. So please make sure to create Flow like this one before using this action.
The action requires the following inputs:
githubToken
: The GitHub Secret Token.filterLabel
: The label with which the required issues are tagged. e.g. bugfilterState
: The state of the required issues. e.g. openhttpEndpoint
: The URL of the HTTP triggered Flow created earlier. (Found in the first step of the Flow)
Below is a sample workflow code
name: Weekly Issues Report
on:
schedule:
# Runs at 9AM UTC every Monday
- cron: '0 9 * * 1'
jobs:
GetIssues:
runs-on: ubuntu-latest
steps:
- name: Get issues and call flow using action
uses: anoopt/get-issues-http-post@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
filterLabel: bug
filterState: open
httpEndpoint: https://prod-16.uksouth.logic.azure.com:443/workflows/......