Skip to content

Commit

Permalink
Fix some issues regarding to labeling and assignment (#20)
Browse files Browse the repository at this point in the history
* Fix some issues regarding to labeling and assignment

Signed-off-by: Fran Mulero <[email protected]>

* Typo

Signed-off-by: Fran Mulero <[email protected]>

---------

Signed-off-by: Fran Mulero <[email protected]>
  • Loading branch information
fmulero authored Dec 1, 2023
1 parent 8837393 commit 03f600e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/comment-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ jobs:
- name: Get item info
id: get-item
run: |
author="${{ github.event.issue != null && github.event.issue.user.login || github.event.pull_request.user.login }}"
number="${{ github.event.issue != null && github.event.issue.number || github.event.pull_request.number }}"
type="${{ github.event.issue != null && 'issue' || 'pull_request' }}"
# Note issue_comment event is slightly different than issues or pull_request. More info here: https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_comment
author="${{ github.event.issue.user.login }}"
number="${{ github.event.issue.number }}"
type="${{ github.event.issue.pull_request != null && 'pull_request' || 'issue' }}"
echo "author=${author}" >> $GITHUB_OUTPUT
echo "number=${number}" >> $GITHUB_OUTPUT
echo "type=${type}" >> $GITHUB_OUTPUT
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/item-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
- name: Assign issue/PR
uses: pozil/auto-assign-issue@edee9537367a8fbc625d27f9e10aa8bad47b8723
with:
numOfAssignee: 1
removePreviousAssignees: ${{ github.event.label.name == 'in-progress' }}
assignees: ${{ needs.get-info.outputs.assignees }}
# If we have repos with only one assignees we allow selfAssignment
Expand Down

0 comments on commit 03f600e

Please sign in to comment.