Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create comment-issue-due-date helper #443

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/comment-issue-due-date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Comment Issue Due Date

on:
issues:
types:
- labeled
paths:
- 'src/helpers/comment-issue-due-date.ts'

jobs:
test:
if: contains(fromJSON('["Priority: Critical", "Priority: High", "Priority: Medium", "Priority: Low"]'), github.event.label.name)
Copy link
Contributor

@danadajian danadajian Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be more intuitive to run this helper for each label and have it do nothing in the case the label doesn't match

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./
with:
helper: comment-issue-due-date
label: ${{ github.event.label.name }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ with:

## Available Helpers
Each of the following helpers are defined in a file of the same name in `src/helpers`:
### [comment-issue-due-date](.github/workflows/comment-issue-due-date.yml)
* When an issue is labeled with a priority label, adds a comment stating the due date based on SLA guidelines

### [are-reviewers-required](.github/workflows/are-reviewers-required.yml)
* Returns true if all teams specified are requested for review on a pull request

Expand Down
8 changes: 8 additions & 0 deletions dist/0.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/0.index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/101.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/101.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading