You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#This workflow is centrally managed in https://github.com/asyncapi/.github/
2
+
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3
+
4
+
#Purpose of this workflow is to allow people to merge PR without a need of maintainer doing it. If all checks are in place (including maintainers approval) - JUST MERGE IT!
5
+
name: Automerge For Humans
6
+
7
+
on:
8
+
pull_request_target:
9
+
types:
10
+
- labeled
11
+
- unlabeled
12
+
- synchronize
13
+
- opened
14
+
- edited
15
+
- ready_for_review
16
+
- reopened
17
+
- unlocked
18
+
19
+
jobs:
20
+
automerge-for-humans:
21
+
if: github.event.pull_request.draft == false && (github.event.pull_request.user.login != 'asyncapi-bot' || github.event.pull_request.user.login != 'dependabot[bot]' || github.event.pull_request.user.login != 'dependabot-preview[bot]') #it runs only if PR actor is not a bot, at least not a bot that we know
#This action is centrally managed in https://github.com/asyncapi/.github/
2
+
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3
+
4
+
#This workflow is designed to work with:
5
+
# - autoapprove and automerge workflows for dependabot and asyncapibot.
6
+
# - special release branches that we from time to time create in upstream repos. If we open up PRs for them from the very beginning of the release, the release branch will constantly update with new things from the destination branch they are opened against
7
+
8
+
# It uses GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch.
9
+
#Autoupdating to latest destination branch works only in the context of upstream repo and not forks
#This action is centrally managed in https://github.com/asyncapi/.github/
2
+
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3
+
4
+
#Purpose of this action is to update npm package in libraries that use it. It is like dependabot for asyncapi npm modules only.
5
+
#It runs in a repo after merge of release commit and searches for other packages that use released package. Every found package gets updated with lates version
6
+
7
+
name: Bump package version in dependent repos - if Node project
8
+
9
+
on:
10
+
#It cannot run on release event as when release is created then version is not yet bumped in package.json
11
+
#This means we cannot extract easily latest version and have a risk that package is not yet on npm
12
+
push:
13
+
branches:
14
+
- master
15
+
16
+
jobs:
17
+
bump:
18
+
runs-on: ubuntu-latest
19
+
steps:
20
+
- name: Checkout repo
21
+
uses: actions/checkout@v2
22
+
- name: Check if Node.js project and has package.json
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
24
+
25
+
At the moment the following comments are supported in pull requests:
26
+
27
+
- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
28
+
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
# There is no need to substract "v" from the tag as version script handles it
35
+
# When adding "bump:version" script in package.json, make sure no tags are added by default (--no-git-tag-version) as they are already added by release workflow
36
+
# When adding "bump:version" script in package.json, make sure --allow-same-version is set in case someone forgot and updated package.json manually and we want to avoide this action to fail and raise confusion
37
+
run: VERSION=${{github.event.release.tag_name}} npm run bump:version
38
+
- if: steps.packagejson.outputs.exists == 'true'
39
+
name: Create Pull Request with updated asset files including package.json
0 commit comments