Skip to content

Commit

Permalink
fix: github actions fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses committed Jan 8, 2024
1 parent 3b96749 commit c54567a
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Greetings
name: Greetings

on: [pull_request_target, issues]
on:
pull_request:
issues:

jobs:
greeting:
Expand All @@ -9,27 +11,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thank you πŸ™πŸ» for submitting your first issue to progress-tracker by @FOSS-Community'
pr-message: 'Thank you πŸ™πŸ» for contributing to progress-tracker by @FOSS-Community. Looking forward to more contributions.'

- name: Label Issues and Pull Requests
run: |
if [ "${{ github.event_name }}" == "issues" ]; then
# Label issues based on keywords in title or body
# For example, label "bug" if "bug" is found in the issue
# Add more conditions as needed
if [[ ${{ github.event.issue.title }} == *"bug"* ]]; then
echo "Adding label: bug"
gh issue add-label ${{ github.event.issue.number }} bug
fi
elif [ "${{ github.event_name }}" == "pull_request_target" ]; then
# Label pull requests based on keywords in title or body
# Add more conditions as needed
if [[ ${{ github.event.pull_request.title }} == *"feature"* ]]; then
echo "Adding label: feature"
gh pr add-label ${{ github.event.pull_request.number }} feature
fi
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

issue-message: 'Thank you πŸ™πŸ» for submitting your first issue to website-fosscu by @FOSS-Community.'
pr-message: 'Thank you πŸ™πŸ» for your first contribution to website-fosscu by @FOSS-Community. Looking forward to more contributions.'

0 comments on commit c54567a

Please sign in to comment.