Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
54c7b1f2
Unverified
Commit
54c7b1f2
authored
Jul 23, 2020
by
Silvano Cerza
Committed by
GitHub
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip changelog] Add workflow to mirror issue on Jira to ease grooming (#851)
parent
e6f8274c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
.github/workflows/jira-issue.yaml
.github/workflows/jira-issue.yaml
+48
-0
No files found.
.github/workflows/jira-issue.yaml
0 → 100644
View file @
54c7b1f2
name
:
"
Mirror
new
issue
to
Jira
for
grooming"
on
:
issues
:
types
:
[
opened
]
jobs
:
create-issue
:
runs-on
:
ubuntu-latest
env
:
JIRA_API_TOKEN
:
${{ secrets.JIRA_API_TOKEN }}
steps
:
-
name
:
Installs Jira CLI
uses
:
atlassian/gajira-cli@master
with
:
version
:
1.0.23
-
name
:
Create issue
run
:
|
jira create \
--noedit \
-e ${{ secrets.JIRA_BASE_URL }} \
-u ${{ secrets.JIRA_USER_EMAIL }} \
-p ${{ secrets.JIRA_PROJECT_CODE }} \
-i Task \
-o summary="${{ github.event.issues.issue.title }}" \
-o description="${{ github.event.issues.issue.body }}\n${{ github.event.issues.issue.html_url }}" \
>> output
-
name
:
Set label on Jira issue
run
:
|
jira label add
$(cat output | awk '{split($0,a," "); print a[2]}')
grooming arduino-cli
-
name
:
Set label on Github issue
uses
:
actions/github-script@v2
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
script
:
|
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['tracked']
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment