Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Bug report
description: Report broken or incorrect behavior.
type: bug
body:
- type: markdown
attributes:
value: |
Thanks for helping improve Allure Codeception. Please include enough detail for us to reproduce the problem.
- type: textarea
id: description
attributes:
label: What happened?
description: Describe the bug and the behavior you observed.
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: How can we reproduce it?
description: Include commands, configuration, test code, or a minimal repository when possible.
placeholder: |
1. Configure ...
2. Run ...
3. See ...
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect?
description: Describe the behavior you expected instead.
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: Share versions and platform details relevant to the issue.
value: |
- Allure Codeception version:
- PHP version:
- Codeception version:
- OS:
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add logs, generated reports, or links that help explain the issue.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Feature request
description: Suggest a user-facing feature or improvement.
type: feature
body:
- type: markdown
attributes:
value: |
Thanks for suggesting an improvement for Allure Codeception. Please describe the outcome you need, not only a possible implementation.
- type: textarea
id: problem
attributes:
label: What problem should this solve?
description: Describe the workflow, limitation, or user need behind the request.
validations:
required: true
- type: textarea
id: proposal
attributes:
label: What would you like to happen?
description: Describe the behavior or capability you want Allure Codeception to provide.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Share any current workaround or alternative design you have considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add examples, links, screenshots, or related issues.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Task
description: Track internal maintenance or repository work.
type: task
body:
- type: textarea
id: goal
attributes:
label: Goal
description: Describe the maintenance, cleanup, or repository task.
validations:
required: true
- type: textarea
id: details
attributes:
label: Details
description: Add relevant context, constraints, links, or acceptance criteria.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ updates:
schedule:
interval: "daily"
labels:
- "type:dependencies"
- "pr:dependencies"

- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
labels:
- "type:dependencies"
- "pr:dependencies"
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!---
Thank you so much for sending us a pull request!

Make sure you have a clear name for your pull request.
The name should start with a capital letter and no dot is required in the end of the sentence.
To link the request with issues use the following notation: (fixes #123, fixes #321\)

An example of good pull request names:
* Add Codeception metadata support (fixes #123\)
* Add an ability to configure result links
* Support emoji in test descriptions
-->

### Context

<!---
Describe the problem or feature in addition to a link to the issues
-->

#### Checklist

- [ ] [Sign Allure CLA][cla]
- [ ] Provide unit tests

[cla]: https://cla-assistant.io/accept/allure-framework/allure-codeception
19 changes: 13 additions & 6 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
# release.yml

changelog:
exclude:
labels:
- 'pr:invalid'
- 'pr:tests'
categories:
- title: '🚀 New Features'
labels:
- 'type:new feature'
- 'pr:new feature'
- title: '🔬 Improvements'
labels:
- 'type:improvement'
- 'pr:improvement'
- title: '🐞 Bug Fixes'
labels:
- 'type:bug'
- 'pr:bug'
- title: '⬆️ Dependency Updates'
labels:
- 'type:dependencies'
- 'pr:dependencies'
- title: '📖 Documentation improvements'
labels:
- 'pr:documentation'
- title: '⛔️ Security'
labels:
- 'type:security'
- 'pr:security'
- title: '👻 Internal changes'
labels:
- 'type:internal'
- 'pr:internal'
16 changes: 0 additions & 16 deletions .github/workflows/labels-verify.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Pull Request Labels

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
- unlabeled
- edited

permissions:
contents: read
pull-requests: read
issues: read

jobs:
require-pr-label:
name: Require exactly one pr label
runs-on: ubuntu-latest
steps:
- name: Validate release notes label
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
shell: bash
run: |
labels="$(gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/labels" --jq '.[].name')"
pr_labels="$(printf '%s\n' "${labels}" | grep '^pr:' || true)"

if [ -z "${pr_labels}" ]; then
count=0
else
count="$(printf '%s\n' "${pr_labels}" | wc -l | tr -d ' ')"
fi

if [ "${count}" -eq 1 ]; then
echo "Found PR release-note label: ${pr_labels}"
exit 0
fi

{
echo "Pull requests must have exactly one label with the pr: prefix."
echo "Found ${count} pr: labels."
if [ "${count}" -gt 0 ]; then
printf 'Matching labels:\n'
printf '%s\n' "${pr_labels}" | sed 's/^/- /'
fi
echo
echo "Available labels on this PR:"
if [ -n "${labels}" ]; then
printf '%s\n' "${labels}" | sed 's/^/- /'
else
echo "- <none>"
fi
} >> "${GITHUB_STEP_SUMMARY}"

echo "::error title=Invalid pr: label count::Pull requests must have exactly one label with the pr: prefix. Found ${count}."
exit 1
Loading