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

Update approve-trigger.yml #1300

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
20 changes: 11 additions & 9 deletions .github/workflows/approve-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ name: Approve Command Trigger
on:
issue_comment:
types: [created]

jobs:
approve-command-trigger:
DhanshreeA marked this conversation as resolved.
Show resolved Hide resolved
if: contains(github.event.issue.labels.*.name, 'Model Request')
Copy link
Member

Choose a reason for hiding this comment

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

The label is actually called new-model, and not Model Request.

Copy link
Member

Choose a reason for hiding this comment

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

runs-on: ubuntu-latest
steps:
- name: Approve Command Trigger
uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # pin@v4.0.0
with:
token: ${{ secrets.PAT }}
issue-type: issue
permission: write
reactions: false
commands: |
approve
- name: Approve Command Trigger
Copy link
Member

Choose a reason for hiding this comment

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

We should keep the single tab indentation

Copy link
Member

Choose a reason for hiding this comment

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

@aderemi1224 can you please restore the indentation?

uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # pin@v4.0.0
with:
token: ${{ secrets.PAT }}
issue-type: issue
permission: write
reactions: false
commands: |
approve