Skip to content

Commit

Permalink
ARC-1820 transfer ownership (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudreau authored Nov 18, 2022
1 parent c0a9c69 commit 1ff0b6b
Show file tree
Hide file tree
Showing 19 changed files with 37,884 additions and 6,064 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

[*.{js,jsx,json,ts,tsx,yml}]
indent_size = 2
indent_style = tab
tab_width = 2
12 changes: 6 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@atlassian-partner-engineering",
"rules": {
"no-plusplus": "off"
}
}
"extends": [
"eslint:recommended"
],
"rules": {
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @atlassian/fusion-arc
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**What's in this PR?**

**Why**

**Affected issues**
_Jira Issues_

**How has this been tested?**
_Include how to test if applicable_

**Whats Next?**
20 changes: 10 additions & 10 deletions .github/workflows/create.yml → .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
on:
push
on: push

name: Test Create Issue

Expand All @@ -11,6 +10,9 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- run: yarn install
- run: yarn test

- name: Login
uses: atlassian/gajira-login@master
env:
Expand All @@ -22,13 +24,11 @@ jobs:
id: create
uses: ./
with:
project: GA
issuetype: Build
summary: |
Build completed for ${{ github.repository }}
description: |
Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
fields: '{"customfield_10171": "field value from actions. Please do not remove"}'
project: CREATE
issuetype: Epic
summary: Do the thing for ${{ github.repository }}
description: Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
# fields: '{"customfield_10171": "field value from actions. Please do not remove"}'

- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn precommit
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Jira Create
Create new issue

For examples on how to use this, check out the [gajira-demo](https://github.com/atlassian/gajira-demo) repository
> ##### Only supports Jira Cloud. Does not support Jira Server (hosted)
## Usage
Expand All @@ -11,14 +10,12 @@ For examples on how to use this, check out the [gajira-demo](https://github.com/
```yaml
- name: Create
id: create
uses: atlassian/gajira-create@master
uses: atlassian/gajira-create@3.0.0
with:
project: GA
issuetype: Build
summary: |
Build completed for ${{ github.repository }}
description: |
Compare branch
summary: Build completed for ${{ github.repository }}
description: Compare branch
fields: '{"customfield_10171": "test"}'

- name: Log created issue
Expand Down
1 change: 0 additions & 1 deletion __tests__/create.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const nock = require('nock')
const Action = require('../action')

Expand Down
2 changes: 0 additions & 2 deletions __tests__/helpers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable global-require */

module.exports = {
mocks: require('./mocks'),
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ outputs:
issue:
description: Key of the newly created issue
runs:
using: 'node12'
using: 'node16'
main: './dist/index.js'
1 change: 0 additions & 1 deletion common/net/client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fetch = require('node-fetch')
// const moment = require('moment')

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

0 comments on commit 1ff0b6b

Please sign in to comment.