This action searches for team pings in issues and pull requests in an organization. The issues and pull requests are added to an organization project board. You can add a comment to the issue or pull request letting people know that your team will first respond soon.
token
: Required: An access token.team
: Required: The team ping to search for that is part of theorg
specified below. Do not include the org name (for example, usedocs-content-ecosystem
). Issues and pull requests authored or commented on by members ofteam
are ignored unless you specify an alternateignore-team
parameter.org
: Required: The organization where the action should search for issues and pull requests.since
: The start date to search for team pings. The action searches for issues or pull requests created since the date specified. Form: {4 digit year}-{month}-{day}. For example: '2020-5-20'project-board
: The URL of the project board to place issues and pull requests. Must be an org project board.project-column
: The id of the column to add issues and pull requests.ignore-team
: Ignores issues and pull requests authored or commented on by members of this team. Issues and pull requests authored or commented on by members ofteam
are ignored unless you specify an alternateignore-team
parameter. You can useignore-team
to specify a larger team or a team that does not match the team ping being searched. The value you specify forignore-team
overrides theteam
value.include-repos
: Repositories to include when searching issues and pull requests. You can add more than one repository by using a comma-separated list. Format: {owner}/{repo}. For example: 'octocat/hello-world, octocat/foobar'. Note: This cannot be used withignore-repos
.ignore-repos
: Repositories to ignore when searching issues and pull requests. You can add more than one repository by using a comma-separated list. Format: {owner}/{repo}. For example: 'octocat/hello-world, octocat/foobar'. Note: This cannot be used withinclude-repos
.ignore-authors
: Ignores issues and pull requests authored by these accounts. You can add more than one repository by using a comma-separated list (for example, 'actions-bot, hubot')ignore-commenters
: Ignores issues and pull requests commented by thee accounts. You can add more than one repository by using a comma-separated list (for example, 'actions-bot, hubot')comment-body
: A comment added to the issue or pull request.
To read and write organization project boards, you need to use an access token with repo
and write:org
access. Ensure that you add the user that owns the access token to the project board with admin permission. For help creating an access token or managing project board members see the GitHub docs:
- Creating a personal access token
- Managing team access to an organization project board
- Managing an individual's access to an organization project board
This workflow includes two team pings and runs every hour and can also be run manually.
name: First responder triage
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
first-responder-product:
name: Spacely product team pings
runs-on: ubuntu-latest
steps:
- name: Get team pings for Spacely product division
uses: rachmari/first-responder@v1.0.0
with:
token: ${{secrets.FR_ACCESS_TOKEN}}
team: 'spacely-product'
org: 'spacelysprocketsinc'
since: '2020-08-05'
project-board: 'https://github.com/orgs/spacelysprocketsinc/projects/1'
project-column: 9
ignore-repos: 'spacelysprocketsinc/product-spacely, spacelysprocketsinc/product-spacely-sprockets'
ignore-authors: 'sprocketbot, github-actions'
ignore-commenters: 'sprocketbot'
comment-body: ':rocket: Thanks for the ping! :bellhop_bell: This issue was added to our first-responder project board. A team member will be along shortly to review this issue.'
first-responder-product-subteam:
name: Spacely product sprockets pings
runs-on: ubuntu-latest
steps:
- name: Get team pings for Spacely sprockets product division
uses: rachmari/first-responder@v1.0.0
with:
token: ${{secrets.FR_ACCESS_TOKEN}}
team: 'spacely-sprockets-product'
org: 'spacelysprocketsinc'
since: '2020-08-05'
project-board: 'https://github.com/orgs/spacelysprocketsinc/projects/1'
project-column: 10
ignore-repos: 'spacelysprocketsinc/product-spacely, spacelysprocketsinc/product-spacely-sprockets'
ignore-authors: 'sprocketbot, github-actions'
ignore-commenters: 'sprocketbot'
comment-body: ':robot: Thanks for the ping to team sprockets! :bellhop_bell: This issue was added to our first-responder project board. A team member will be along shortly to review this issue.'
To get started read the Contributing docs.