feat: adopt more fields from the appstream metadata file
Metadata
Current evaluation
Merged to add initial support for six appstream metadata fields including license, contact, and source-code. Approved by three reviewers with passing tests. Remaining update_project_metadata changes will be addressed in a follow-up PR.
Suggested action: —
No scores available.
Issue body
This commit adds initial support to adopt more metadata fields from the provided appstream metadata file. Those fields includes,
1. license
2. contact
3. source-code
4. issues
5. website
6. donations
----
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox run -m lint`?
- [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged to add initial support for six appstream metadata fields including license, contact, and source-code. Approved by three reviewers with passing tests. Remaining update_project_metadata changes will be addressed in a follow-up PR. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged initial support for adopting appstream metadata fields: license, contact, source-code, issues, website, and donations. Tests passed with improved coverage. Remaining updates and spread test adjustments are deferred to a follow-up PR. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged initial support for six appstream metadata fields: license, contact, source-code, issues, website, and donations. Tests passed. Updates to update_project_metadata were deferred to a follow-up PR. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4652 feat: adopt more fields from the appstream metadata file(part 2) | snapcraft | merged | Merged. Introduces _update_project_links to adopt additional appstream metadata fields. Core24 support was initially missing but resolved by refactoring the method to execute for both core22 and core24. Tests passed and the feature was integrated. | |
| #231 feat(app): add lists of adoptable and mandatory project fields | craft-application | merged | Merged after three approvals and passing CI. Introduces adoptable and mandatory project field lists to application metadata for craftctl configuration. Resolved validation errors by rebasing and stacking on related PRs, maintaining full test coverage. | |
| #3695 meta: add appstream metadata extractor | snapcraft | merged | Merged after reviewer approval and passing CI. Adds an appstream metadata extractor to parse application metadata from appstream files, modifying 9 files with a net addition of 1192 lines. |