Skip to content

Commit

Permalink
update issues.yml workflow (#6)
Browse files Browse the repository at this point in the history
* update issues.yml workflow

* use correct component name

* update CODEOWNERS
  • Loading branch information
lucabello authored Feb 2, 2023
1 parent fb48333 commit bcf2058
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ jobs:
steps:
- name: Dump Github Context
run: |
echo '${{ toJSON(github) }}'
echo "update=false" >> $GITHUB_ENV
echo "update=false" >> $GITHUB_ENV
if [ ${{ github.event_name }} != "issues" ]; then
echo "This action only operates on issues"
exit 0
fi
echo "update=true" >> $GITHUB_ENV
- name: Determine action
run: |
Expand All @@ -38,20 +35,19 @@ jobs:
fi
- name: Update
if: ${{ env.update == 'true' }}
env:
ID: ${{ github.event.issue.html_url }}
TITLE: ${{github.event.issue.title }}
COMPONENT: cos-tool
DESCRIPTION: Opened by ${{ github.event.issue.user.login }}.
run: |
id="${{ github.event.issue.html_url }}"
title="${{ github.event.issue.title }}"
component="cos-tool"
description="Opened by ${{ github.event.issue.user.login }}."
data=$(jq -n \
--arg id "$id" \
--arg id "$ID" \
--arg action "${{ env.action }}" \
--arg title "$title" \
--arg description "$description" \
--arg component "$component" \
--arg title "$TITLE" \
--arg description "$DESCRIPTION" \
--arg component "$COMPONENT" \
--arg type "${{ env.type }}" \
'{data: {id: $id, action: $action, title: $title, description: $description, component: $component, type: $type}}')
curl -X POST -H 'Content-type: application/json' --data "${data}" "${{ secrets.JIRA_URL }}"
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @sed-i @abuelodelanada @rbarry82 @balbirthomas @dstathis @simskij
* @sed-i @abuelodelanada @rbarry82 @lucabello @pietropasotti @dstathis @simskij

0 comments on commit bcf2058

Please sign in to comment.