Skip to content

Commit 1ff0b6b

Browse files
authoredNov 18, 2022
ARC-1820 transfer ownership (#37)
1 parent c0a9c69 commit 1ff0b6b

19 files changed

+37884
-6064
lines changed
 

‎.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[*.md]
10+
insert_final_newline = false
11+
trim_trailing_whitespace = false
12+
13+
[*.{js,jsx,json,ts,tsx,yml}]
14+
indent_size = 2
15+
indent_style = tab
16+
tab_width = 2

‎.eslintrc.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"extends": "@atlassian-partner-engineering",
3-
"rules": {
4-
"no-plusplus": "off"
5-
}
6-
}
7-
2+
"extends": [
3+
"eslint:recommended"
4+
],
5+
"rules": {
6+
}
7+
}

‎.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @atlassian/fusion-arc

‎.github/pull_request_template.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**What's in this PR?**
2+
3+
**Why**
4+
5+
**Affected issues**
6+
_Jira Issues_
7+
8+
**How has this been tested?**
9+
_Include how to test if applicable_
10+
11+
**Whats Next?**
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
on:
2-
push
1+
on: push
32

43
name: Test Create Issue
54

@@ -11,6 +10,9 @@ jobs:
1110
- name: Checkout
1211
uses: actions/checkout@master
1312

13+
- run: yarn install
14+
- run: yarn test
15+
1416
- name: Login
1517
uses: atlassian/gajira-login@master
1618
env:
@@ -22,13 +24,11 @@ jobs:
2224
id: create
2325
uses: ./
2426
with:
25-
project: GA
26-
issuetype: Build
27-
summary: |
28-
Build completed for ${{ github.repository }}
29-
description: |
30-
Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
31-
fields: '{"customfield_10171": "field value from actions. Please do not remove"}'
27+
project: CREATE
28+
issuetype: Epic
29+
summary: Do the thing for ${{ github.repository }}
30+
description: Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
31+
# fields: '{"customfield_10171": "field value from actions. Please do not remove"}'
3232

3333
- name: Log created issue
34-
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
34+
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

‎.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn precommit

‎README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Jira Create
22
Create new issue
33

4-
For examples on how to use this, check out the [gajira-demo](https://github.com/atlassian/gajira-demo) repository
54
> ##### Only supports Jira Cloud. Does not support Jira Server (hosted)
65
76
## Usage
@@ -11,14 +10,12 @@ For examples on how to use this, check out the [gajira-demo](https://github.com/
1110
```yaml
1211
- name: Create
1312
id: create
14-
uses: atlassian/gajira-create@master
13+
uses: atlassian/gajira-create@3.0.0
1514
with:
1615
project: GA
1716
issuetype: Build
18-
summary: |
19-
Build completed for ${{ github.repository }}
20-
description: |
21-
Compare branch
17+
summary: Build completed for ${{ github.repository }}
18+
description: Compare branch
2219
fields: '{"customfield_10171": "test"}'
2320

2421
- name: Log created issue

‎__tests__/create.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const nock = require('nock')
32
const Action = require('../action')
43

‎__tests__/helpers/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable global-require */
2-
31
module.exports = {
42
mocks: require('./mocks'),
53
}

‎action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ outputs:
2323
issue:
2424
description: Key of the newly created issue
2525
runs:
26-
using: 'node12'
26+
using: 'node16'
2727
main: './dist/index.js'

‎common/net/client.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const fetch = require('node-fetch')
2-
// const moment = require('moment')
32

43
module.exports = serviceName => async (state, apiMethod = 'unknown') => {
54
// const startTime = moment.now()

0 commit comments

Comments
 (0)
Failed to load comments.