-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from calimero-network/chore--add-action
chore: add action
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Needs Attention Labeler" | ||
description: "Applies 'needs attention' and other labels to PRs or issues" | ||
inputs: | ||
repo-token: | ||
description: "GitHub token with repository permissions" | ||
required: true | ||
response-required-label: | ||
description: "Label to apply when response is required" | ||
required: true | ||
needs-attention-label: | ||
description: "Label to apply when attention is needed" | ||
required: true | ||
outputs: | ||
result: | ||
description: "Result of the labeling action" | ||
value: ${{ steps.needs-attention.outputs.result }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Apply Needs Attention Label | ||
uses: hramos/[email protected] | ||
with: | ||
repo-token: ${{ inputs.repo-token }} | ||
response-required-label: ${{ inputs.response-required-label }} | ||
needs-attention-label: ${{ inputs.needs-attention-label }} | ||
id: needs-attention | ||
|
||
- name: Set output result | ||
shell: bash | ||
run: echo "result=${{ steps.needs-attention.outputs.result }}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters