mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
Merge pull request #97 from Deutscher-Tischfussballbund/sportsmanager2-stage
Stage to Prod PR
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
name-template: "Release $COMPLETE"
|
name-template: "Release $COMPLETE"
|
||||||
tag-template: "v$COMPLETE"
|
tag-template: "v$COMPLETE"
|
||||||
|
draft: false
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
pulls: true
|
pulls: true
|
||||||
exclude-labels:
|
exclude-labels:
|
||||||
- prod-merge
|
- changelog-ignore
|
||||||
- stage-merge
|
|
||||||
|
|
||||||
categories:
|
categories:
|
||||||
- title: "Features"
|
- title: "Features"
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
name-template: "Release $COMPLETE"
|
name-template: "Release $COMPLETE"
|
||||||
tag-template: "v$COMPLETE"
|
tag-template: "v$COMPLETE"
|
||||||
|
draft: false
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
pulls: true
|
pulls: true
|
||||||
exclude-labels:
|
exclude-labels:
|
||||||
- prod-merge
|
- changelog-ignore
|
||||||
- stage-merge
|
|
||||||
|
|
||||||
categories:
|
categories:
|
||||||
- title: "Features"
|
- title: "Features"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ on:
|
|||||||
types: [opened, reopened, synchronize, edited]
|
types: [opened, reopened, synchronize, edited]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label-stage-to-prod:
|
label-changelog-ignore:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Label PRs
|
- name: Label PRs
|
||||||
@@ -16,16 +16,10 @@ jobs:
|
|||||||
const base = context.payload.pull_request.base.ref;
|
const base = context.payload.pull_request.base.ref;
|
||||||
const head = context.payload.pull_request.head.ref;
|
const head = context.payload.pull_request.head.ref;
|
||||||
|
|
||||||
if (base === 'sportsmanager2-prod' && head === 'sportsmanager2-stage') {
|
if ((base === 'sportsmanager2-prod' && head === 'sportsmanager2-stage') || (base === 'sportsmanager2-stage' && head === 'sportsmanager2-dev')) {
|
||||||
await github.rest.issues.addLabels({
|
await github.rest.issues.addLabels({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
issue_number: context.payload.pull_request.number,
|
issue_number: context.payload.pull_request.number,
|
||||||
labels: ['prod-merge']
|
labels: ['changelog-ignore']
|
||||||
});
|
|
||||||
} else if (base === 'sportsmanager2-stage' && head === 'sportsmanager2-dev') {
|
|
||||||
await github.rest.issues.addLabels({
|
|
||||||
...context.repo,
|
|
||||||
issue_number: context.payload.pull_request.number,
|
|
||||||
labels: ['stage-merge']
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user