Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

feature(Jira): add jira issue actions #36

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d178be0
initial cor jira ticketing
brian-welsh Nov 9, 2023
39a9a5f
Update pull_request_template.md
brian-welsh Nov 10, 2023
ade3cee
Update pull_request_template.md
brian-welsh Nov 10, 2023
f4a0a0b
daily:
brian-welsh Nov 11, 2023
71c57f9
daily:
brian-welsh Nov 11, 2023
2778b30
daily:
brian-welsh Nov 11, 2023
d18d605
daily:
brian-welsh Nov 11, 2023
a753036
Create ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
d73f9b7
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
934daf2
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
4707a41
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
8c9e485
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
3519771
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
e405222
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
ab3b8f4
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
b8444c3
Update ISSUE_BODY_TEMPLATE.md
brian-welsh Nov 12, 2023
f24472e
update before pul
brian-welsh Nov 12, 2023
235dad8
daily:update for issue creation
brian-welsh Nov 12, 2023
69ad6b6
daily:update for issue creation
brian-welsh Nov 12, 2023
87fbf83
daily:update for issue creation
brian-welsh Nov 12, 2023
85f6761
daily:update for issue creation
brian-welsh Nov 12, 2023
a7924dc
daily:update for issue creation
brian-welsh Nov 12, 2023
332f82b
daily:update for issue creation
brian-welsh Nov 12, 2023
37f2777
daily:update for issue creation
brian-welsh Nov 12, 2023
67d61e5
daily:update for issue creation
brian-welsh Nov 12, 2023
5df75d1
daily:update for issue creation
brian-welsh Nov 12, 2023
5ef8721
daily:update for issue creation
brian-welsh Nov 12, 2023
7bd1dd0
daily:update for issue creation
brian-welsh Nov 12, 2023
0181a08
daily:update for issue creation
brian-welsh Nov 12, 2023
550358a
daily:update for issue creation
brian-welsh Nov 12, 2023
6864bcb
daily:update for issue creation
brian-welsh Nov 12, 2023
961eb6d
daily:update for issue creation
brian-welsh Nov 12, 2023
1d28861
daily:update for issue creation
brian-welsh Nov 13, 2023
dc991b2
daily:update for issue creation
brian-welsh Nov 13, 2023
45302bb
Update dependabot.yml (#40)
brian-welsh Nov 13, 2023
13ad9df
Bump prettier from 3.0.3 to 3.1.0 (#41)
dependabot[bot] Nov 13, 2023
602f1f3
update description
brian-welsh Nov 16, 2023
5d1c1cd
update description
brian-welsh Nov 16, 2023
92b0ea2
update description
brian-welsh Nov 16, 2023
7ac61fe
Merge branch 'main' into feature/jira-issue
brian-welsh Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions _file-templates/action.ts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as core from '@actions/core'
import { IEnvironment } from './interfaces/environment'
import { loadEnvironment } from './helpers/cache-utils'
/**
* The main function for the action.
* @returns {Promise<void>} Resolves when the action is complete.
*/
export async function run(): Promise<void> {
try {
core.debug('Entering todo-action')

const env: IEnvironment = loadEnvironment(process.env['sba.environment'] as string)
core.warning('TODO: This action is not yet implemented.')

console.log(env)

} catch (error) {
// Fail the workflow run if an error occurs
/* istanbul ignore next */
if (error instanceof Error) core.setFailed(error.message)
}
}

run()
38 changes: 38 additions & 0 deletions _file-templates/action.yml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Setup Action'
description: 'Setup Action' # TODO: Better description needed!
author: 'Brian Welsh (@brian-welsh)'

# Define your inputs here.
inputs:
repository:
default: ${{ github.repository }}
required: true
description: >
should be self-evident what this is. Normally this would need no other value.

token:
default: ${{ github.token }}
required: true
description: >
should be self-evident what this is. Normally this would need no other value.

config-file:
required: true
description: >
path to a YAML config file
TBD format TBD

# Define your outputs here.
outputs:
staging-directory:
description: 'TODO:'
output-directory:
description: 'TODO:'
artifact-directory:
description: 'TODO:'
package-directory:
description: 'TODO:'

runs:
using: node20
main: ../../dist/setup-action/index.js
6 changes: 6 additions & 0 deletions _template/ISSUE_BODY_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

---

Created: {datetime}

Repository: {repository}
Empty file.
41 changes: 41 additions & 0 deletions actions/issue/jira/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Jira Action'
description: 'Jira Action' # TODO: Better description needed!
author: 'Brian Welsh (@brian-welsh)'

# Define your inputs here.
inputs:
repository:
default: ${{ github.repository }}
required: true
description: >
should be self-evident what this is. Normally this would need no other value.

command:
required: true
default: get
description: >
get
create
comment
validate

project-key:
required: false

issue-summary:
required: false

issue-description:
required: false


# Define your outputs here.
outputs:
issue-key:
description: >
TODO:


runs:
using: node20
main: ../../../dist/jira-action/index.js
10 changes: 6 additions & 4 deletions buildCommitPush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

npm run rebuild

git commit -a -m "daily-$1"
git push origin feature/dotnet
branch="$(echo "$(git branch --show-current)")"

git tag dev -m "dev-$1" --force && \
git commit -a -m "daily:$1"
git push origin $branch

git tag dev -m "dev:$1" --force && \
git push origin dev --force

git tag daily -m "daily-$1" --force && \
git tag daily -m "daily:$1" --force && \
git push origin daily --force
Loading