kentaro-m / auto-assign-action

An action which adds reviewers to the pull request when the pull request is opened.
MIT License
298 stars 89 forks source link

Does not add a reviewer #55

Open Power-Maverick opened 3 years ago

Power-Maverick commented 3 years ago

I have the config as presented below. The action is adding the author but does not adds me as a reviewer.

addReviewers: true
addAssignees: author
reviewers:
  - Power-Maverick
numberOfReviewers: 0
grandeljay commented 1 year ago

I am getitng an error though. Is this still an issue or am I doing something wrong?

The workflow is not valid. .github/workflows/auto-assign.yml (Line: 15, Col: 23): A sequence was not expected .github/workflows/auto-assign.yml (Line: 17, Col: 23): A sequence was not expected
name: "Auto Assign"
on:
    pull_request:
        types: [opened, ready_for_review]

jobs:
    add-reviews:
        runs-on: ubuntu-latest
        steps:
            - uses: kentaro-m/auto-assign-action@v1.2.4
              with:
                  addReviewers: true
                  addAssignees: author
                  reviewers:
                      - "grandeljay"
                  skipKeywords:
                      - wip
OrlinVasilev commented 1 year ago

@grandeljay from my experience so far you have to add your yaml config as separate file for example under .github/auto-assignee.yml and then specify that file under the workflows config

    with:
      configuration-path: ".github/auto-assignees.yml"
grandeljay commented 1 year ago

That seems to work, thank you!