Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
4f30dd6
[PETOSS-829] added OAS-release actions and PR- Health check
ryanNexus Oct 23, 2025
27ddddf
fix: change npm ci to npm install and add package-lock.json
ryanNexus Oct 23, 2025
a07f371
[PETOSS-829] use npm ci not install as its faster
ryanNexus Oct 23, 2025
4f15215
[PETOSS-829] use latest version of npm
ryanNexus Oct 23, 2025
a950752
[PETOSS-829] gha fixes
ryanNexus Oct 23, 2025
8a7e8c0
[PETOSS-829] gha fixes +1
ryanNexus Oct 23, 2025
d046385
[PETOSS-829] gha fixes +2
ryanNexus Oct 23, 2025
87c005e
[PETOSS-829] gha fixes +3
ryanNexus Oct 23, 2025
3ae3ee1
[PETOSS-829] gha fixes +4
ryanNexus Oct 23, 2025
9492985
fix: use public npm registry instead of Xero Artifactory
ryanNexus Oct 23, 2025
92c753e
[PETOSS-829] removed linter as its now a seperate action
ryanNexus Oct 23, 2025
fd4f976
[PETOSS-829] gha fixes +5
ryanNexus Oct 23, 2025
4d31438
[PETOSS-829] rolledback to v1 of dispatch as v2 creates a distinct i…
ryanNexus Oct 23, 2025
baf70ab
[PETOSS-829] updated how the sdk generation is called
ryanNexus Oct 23, 2025
f9bf5b2
[PETOSS-829] increase timeout
ryanNexus Oct 23, 2025
1d8fa8f
[PETOSS-829] removed disabled linting steps
ryanNexus Oct 23, 2025
0ae6260
[PETOSS-829] re phrased readme
ryanNexus Oct 23, 2025
f3f6795
[PETOSS-829] re named OAS release to Github release
ryanNexus Oct 23, 2025
bc66166
[PETOSS-829] removed auto merge GHA step
ryanNexus Oct 23, 2025
f351437
[PETOSS-829] removed redundant code
ryanNexus Oct 23, 2025
d884869
[PETOSS-829] removed more auto merging code
ryanNexus Oct 23, 2025
cd1d669
[PETOSS-829] renamed package to function name
ryanNexus Oct 23, 2025
5833874
[PETOSS-829] moved commit lint files to .github folder
ryanNexus Oct 23, 2025
499a03e
[PETOSS-829] set working directory for commit lint
ryanNexus Oct 23, 2025
e5e3798
[PETOSS-829] Update package config
the-chris-mitchell Oct 24, 2025
6b0ee15
[PETOSS-829] Remove workflow and generator code
the-chris-mitchell Oct 24, 2025
2948e67
[PETOSS-829] Rename workflows
the-chris-mitchell Oct 24, 2025
309009a
[PETOSS-829] Make consistent and update naming
the-chris-mitchell Oct 24, 2025
2b26a3d
[PETOSS-829] Increase timeout
the-chris-mitchell Oct 24, 2025
3f39109
[PETOSS-829] Change config file format
the-chris-mitchell Oct 27, 2025
619da55
[PETOSS-829] Update installation process and paths
the-chris-mitchell Oct 27, 2025
1eb1bcc
[PETOSS-829] Rename jobs
the-chris-mitchell Oct 27, 2025
500f0b7
[PETOSS-829] Reformat yaml
the-chris-mitchell Oct 27, 2025
0502525
[PETOSS-829] Consolidate pr validation steps
the-chris-mitchell Oct 28, 2025
04e9e89
[PETOSS-829] Update linter version
the-chris-mitchell Oct 28, 2025
71173b0
[PETOSS-829] Add specific job names
the-chris-mitchell Oct 28, 2025
742f826
[PETOSS-829] Use correct option key
the-chris-mitchell Oct 28, 2025
996aeab
[PETOSS-829] Move spectral into megalinter
the-chris-mitchell Oct 28, 2025
8a063d3
[PETOSS-829] Tidy up file no longer required
the-chris-mitchell Oct 28, 2025
f1d9de5
[PETOSS-829] Update megalinter and spectral config
the-chris-mitchell Oct 28, 2025
240ddb8
[PETOSS-829] Rename file
the-chris-mitchell Oct 28, 2025
1ae9e67
[PETOSS-829] Install spectral plugin
the-chris-mitchell Oct 28, 2025
3121e22
[PETOSS-829] Update megalinter config
the-chris-mitchell Oct 28, 2025
6aa3759
[PETOSS-829] Remove actionslint
the-chris-mitchell Oct 28, 2025
438a948
[PETOSS-829] Disable rules
the-chris-mitchell Oct 28, 2025
384192a
Merge branch 'master' of https://github.com/XeroAPI/Xero-OpenAPI into…
the-chris-mitchell Oct 28, 2025
be02f96
[PETOSS-829] Only lint OAS files
the-chris-mitchell Oct 28, 2025
6cc7239
[PETOSS-829] Disable rules
the-chris-mitchell Oct 28, 2025
79492f1
[PETOSS-829] Disable flavor suggestions
the-chris-mitchell Oct 28, 2025
70a0f90
[PETOSS-829] Rename package
the-chris-mitchell Oct 28, 2025
f089547
[PETOSS-829] Add comments and newlines back in
the-chris-mitchell Oct 28, 2025
a56eb31
[PETOSS-829] Remove mention of commitlint
the-chris-mitchell Oct 28, 2025
a4820db
[PETOSS-829] Reword note
the-chris-mitchell Oct 28, 2025
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
27 changes: 27 additions & 0 deletions .github/get-access-token/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {Octokit} from "@octokit/rest";
import {createAppAuth} from "@octokit/auth-app"

export const getAccessToken = async () => {

const {GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY} = process.env

const octoKitInstance = new Octokit({
authStrategy: createAppAuth,
auth: {
appId: GITHUB_APP_ID,
privateKey: GITHUB_APP_PRIVATE_KEY
}
});

const {data: installations} = await octoKitInstance.rest.apps.listInstallations()

if(!installations.length) {
throw new Error("No Installations found for this github app")
}

const installationId = installations[0].id;

const installationAccessToken = await octoKitInstance.rest.apps.createInstallationAccessToken({installation_id: installationId})

return installationAccessToken.data.token
}
331 changes: 331 additions & 0 deletions .github/get-access-token/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .github/get-access-token/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "get-access-token",
"main": "index.js",
"type": "module",
"dependencies": {
"@octokit/auth-app": "^7.1.1",
"@octokit/rest": "^21.0.2"
}
}
21 changes: 21 additions & 0 deletions .github/semantic-release/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"branches": [
"master"
],
"tagFormat": "${version}",
"plugins": [
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"writerOpts": {
"headerPartial": "## What's changed",
"footerPartial": "\n**Full Changelog**:https://github.com/XeroAPI/Xero-OpenAPI/compare/{{previousTag}}...{{version}}"
}
}
],
"@semantic-release/commit-analyzer",
"@semantic-release/github",
"@semantic-release/git"
]
}
Loading
Loading