Skip to content

Commit

Permalink
Merge pull request #489 from statisticsnorway/MIM-1889_setup_auto_ass…
Browse files Browse the repository at this point in the history
…ign_and_auto_patch_merge

Mim 1889 setup auto assign and auto patch merge
  • Loading branch information
johnnadeluy authored Apr 11, 2024
2 parents 1fd1c62 + ef3cdbf commit c37150d
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 102 deletions.
27 changes: 27 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Set to true to add reviewers to pull requests
addReviewers: false

# Set to true to add assignees to pull requests
addAssignees: true

# A list of assignees, overrides reviewers if set
assignees:
- ssb-cgn
- Glenruben
- johnnadeluy
- annesiri
- Carl-OW
- michaelpande

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
numberOfAssignees: 1
# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- dependabot

# filterLabels:
# # Run
# include:
# - dependencies
26 changes: 26 additions & 0 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dependabot auto-merge patch
on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: approve
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr review --approve "$PR_URL"
- name: merge
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --squash "$PR_URL"
102 changes: 51 additions & 51 deletions package-lock.json

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

102 changes: 51 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,60 +17,60 @@
"lint:css": "stylelint '**/*.scss'"
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@statisticsnorway/ssb-component-library": "^2.0.78",
"bootstrap": "^4.6.2",
"core-js": "^3.27.1",
"gh-pages": "^4.0.0",
"history": "^5.3.0",
"prismjs": "^1.29.0",
"prop-types": "^15.8.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-feather": "^2.0.10",
"react-router-dom": "^5.3.4",
"regenerator-runtime": "^0.13.11",
"uuid": "^9.0.0"
"@babel/runtime": "~7.21.0",
"@statisticsnorway/ssb-component-library": "~2.0.78",
"bootstrap": "~4.6.2",
"core-js": "~3.27.1",
"gh-pages": "~4.0.0",
"history": "~5.3.0",
"prismjs": "~1.29.0",
"prop-types": "~15.8.1",
"react": "~16.14.0",
"react-dom": "~16.14.0",
"react-feather": "~2.0.10",
"react-router-dom": "~5.3.4",
"regenerator-runtime": "~0.13.11",
"uuid": "~9.0.0"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"babel-jest": "^29.3.1",
"babel-loader": "^9.1.2",
"babel-plugin-prismjs": "^2.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"dotenv": "^16.0.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.7",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.32.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"@babel/cli": "~7.20.7",
"@babel/core": "~7.20.12",
"@babel/eslint-parser": "~7.19.1",
"@babel/preset-env": "~7.20.2",
"@babel/preset-react": "~7.18.6",
"babel-jest": "~29.3.1",
"babel-loader": "~9.1.2",
"babel-plugin-prismjs": "~2.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "~6.26.2",
"cross-env": "~7.0.3",
"css-loader": "~6.7.3",
"dotenv": "~16.0.3",
"enzyme": "~3.11.0",
"enzyme-adapter-react-16": "~1.15.7",
"enzyme-to-json": "~3.6.2",
"eslint": "~8.32.0",
"eslint-config-airbnb": "~19.0.4",
"eslint-plugin-import": "~2.27.5",
"eslint-plugin-jsx-a11y": "~6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-webpack-plugin": "^3.2.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.3.1",
"path": "^0.12.7",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"style-loader": "^3.3.1",
"stylelint": "^14.16.1",
"stylelint-webpack-plugin": "^3.3.0",
"svg-url-loader": "^8.0.0",
"terser-webpack-plugin": "^5.3.6",
"url-loader": "^4.1.1",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1",
"webpack-merge": "^5.8.0"
"eslint-webpack-plugin": "~3.2.0",
"file-loader": "~6.2.0",
"html-webpack-plugin": "~5.5.0",
"identity-obj-proxy": "~3.0.0",
"jest": "~29.3.1",
"path": "~0.12.7",
"sass": "~1.57.1",
"sass-loader": "~13.2.0",
"style-loader": "~3.3.1",
"stylelint": "~14.16.1",
"stylelint-webpack-plugin": "~3.3.0",
"svg-url-loader": "~8.0.0",
"terser-webpack-plugin": "~5.3.6",
"url-loader": "~4.1.1",
"webpack": "~5.75.0",
"webpack-cli": "~5.0.1",
"webpack-dev-server": "~4.11.1",
"webpack-merge": "~5.8.0"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit c37150d

Please sign in to comment.