Skip to content

Commit 32b1b24

Browse files
committed
Fixed 4 Issues
1 parent 580fd17 commit 32b1b24

12 files changed

Lines changed: 417 additions & 5 deletions

docs/source/contributing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ Contribution Guidelines:
3434
contributing/writing_good_commit_messages
3535
contributing/testing
3636
contributing/contrib_doc
37+
contributing/release_news

docs/source/contributing/contrib_doc.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ following commands are examples::
9797
git add source/index.rst
9898
git add source/how-to-scan.rst
9999
git status
100-
git commit -m "New how-to document that explains how to scan"
100+
# Prefer full issue URLs for cross-repo clarity. Use shorthand #123 only
101+
# if the change will stay in the same repository.
102+
git commit -m "New how-to document that explains how to scan https://github.com/aboutcode-org/aboutcode/issues/106"
101103
git status
102104
git push
103105
git status
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
########################################
2+
Publishing release news to aboutcode.org
3+
########################################
4+
5+
Goal
6+
====
7+
Provide a repeatable way for any AboutCode project to publish a release
8+
announcement to the AboutCode news feed with minimal manual steps.
9+
10+
Generate a post locally
11+
=======================
12+
13+
Use the helper script in this repo to create a news file in
14+
``docs/source/news/posts``:
15+
16+
.. code-block:: bash
17+
18+
python tools/generate_release_post.py \
19+
--project "ScanCode Toolkit" \
20+
--version "32.0.0" \
21+
--release-url "https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v32.0.0"
22+
23+
This writes a dated file (for example,
24+
``docs/source/news/posts/2026-01-18-scancode-toolkit.rst``). Stage, commit, and
25+
open a PR to `aboutcode-org/aboutcode`.
26+
27+
Automate with GitHub Actions (template)
28+
=======================================
29+
30+
Add a workflow in the releasing project that runs on ``release`` events and
31+
opens a PR to the aboutcode site. This template assumes you store a token with
32+
push rights to your fork of ``aboutcode-org/aboutcode`` as
33+
``ABOUTCODE_DOCS_PAT``.
34+
35+
.. code-block:: yaml
36+
37+
name: Publish release news
38+
on:
39+
release:
40+
types: [published]
41+
42+
jobs:
43+
announce:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Check out aboutcode site
47+
uses: actions/checkout@v4
48+
with:
49+
repository: ${{ github.repository_owner }}/aboutcode
50+
token: ${{ secrets.ABOUTCODE_DOCS_PAT }}
51+
52+
- name: Set up Python
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: '3.11'
56+
57+
- name: Install deps (docs extra)
58+
run: |
59+
python -m pip install --upgrade pip
60+
pip install -e .[docs]
61+
62+
- name: Generate news post
63+
run: |
64+
python tools/generate_release_post.py \
65+
--project "${{ github.event.repository.name }}" \
66+
--version "${{ github.event.release.tag_name }}" \
67+
--release-url "${{ github.event.release.html_url }}"
68+
69+
- name: Create pull request
70+
uses: peter-evans/create-pull-request@v6
71+
with:
72+
token: ${{ secrets.ABOUTCODE_DOCS_PAT }}
73+
branch: release-news/${{ github.event.repository.name }}-${{ github.event.release.tag_name }}
74+
commit-message: "Add news post for ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}"
75+
title: "Add news post for ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}"
76+
body: "Automated release news post for ${{ github.event.release.html_url }}"
77+
78+
Notes and expectations
79+
======================
80+
- Keep posts concise: title, short summary, highlight bullets, and links.
81+
- The script is idempotent per date + project; reruns on the same day overwrite
82+
the file unless a new version is provided.
83+
- Review the generated post before merging; adjust highlights as needed.
84+
- If you cannot grant a token to push directly, run the workflow in a fork and
85+
open a PR manually.

docs/source/contributing/writing_good_commit_messages.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ The main style points are these:
1919

2020
Subject:
2121

22-
- Add a issue number at the end of the line when available as in "#234"
22+
- Prefer full issue URLs (e.g. ``https://github.com/aboutcode-org/aboutcode/issues/234``)
23+
to keep references valid if code moves to another repo.
24+
- Shorthand ``#234`` is acceptable only when the work is guaranteed to remain in
25+
the same repository.
2326
- Limit the subject line to 50 characters
2427
- Capitalize the subject line
2528
- Do not end the subject line with a period
@@ -38,9 +41,8 @@ Body:
3841

3942
Other comments:
4043

41-
We like to suffix the subject line with an issue number. If this was a
42-
trivial change it may not have one though. If it had one a you would use
43-
``#156`` as a suffix to the first line.
44+
We like to suffix the subject line with an issue reference. Use the full URL by
45+
default; shorthand ``#156`` only if the commit will stay in the same repository.
4446

4547
We like to tell why the commit is there and use an imperative style, like
4648
if you were giving an order to the codebase with your commit:

docs/source/index.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ Overview
2727

2828
aboutcode-project-overview
2929

30+
********
31+
Standards
32+
********
33+
34+
.. toctree::
35+
:maxdepth: 2
36+
37+
standards/index
38+
3039
************
3140
Contributing
3241
************
@@ -36,6 +45,15 @@ Contributing
3645

3746
contributing
3847

48+
****
49+
News
50+
****
51+
52+
.. toctree::
53+
:maxdepth: 1
54+
55+
news/index
56+
3957
******
4058
Others
4159
******
@@ -45,4 +63,5 @@ Others
4563

4664
aboutcode-data/abcd
4765
archive
66+
privacy-policy
4867
license

docs/source/news/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
############################
2+
News and release updates
3+
############################
4+
5+
AboutCode projects can publish release announcements here so readers see updates
6+
in one place.
7+
8+
- For instructions on generating a post automatically, see
9+
:doc:`../contributing/release_news`.
10+
- Posts live under the ``news/posts`` directory and are typically created by the
11+
automation script in ``tools/generate_release_post.py``.
12+
13+
.. toctree::
14+
:maxdepth: 1
15+
:glob:
16+
17+
overview
18+
posts/*

docs/source/news/overview.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#############################
2+
How release posts are structured
3+
#############################
4+
5+
Release posts are short and consistent so they can be generated automatically.
6+
Each post includes:
7+
8+
- A title in the form ``<Project> <version> released``.
9+
- A one-paragraph summary and bullet points for highlights.
10+
- A link to the project release page.
11+
- Optional links to changelogs, installation notes, or SBOMs if available.
12+
13+
Posts are stored in ``docs/source/news/posts`` and named with the date prefix,
14+
for example: ``2026-01-18-scancode-toolkit.rst``.
15+
16+
To add a post, run the helper script (documented in
17+
:doc:`../contributing/release_news`) or author a file manually following the
18+
same structure.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
################################
2+
ScanCode.io 21.12.17 released
3+
################################
4+
5+
ScanCode.io 21.12.17 is available. This release delivers pipeline and UI
6+
improvements for scanning and reviewing SBOM data produced by ScanCode Toolkit.
7+
8+
Highlights
9+
==========
10+
- Streamlined pipeline steps for common container and archive workflows.
11+
- Improved result review experience in the web UI.
12+
- Updated dependencies and security fixes.
13+
14+
Links
15+
=====
16+
- Release notes: https://github.com/aboutcode-org/scancode.io/releases
17+
- Project page: https://scancode.io

docs/source/privacy-policy.rst

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
################
2+
Privacy Policy
3+
################
4+
5+
This page describes how the AboutCode community websites and documentation
6+
handle personal data. It is intentionally simple and covers only what we
7+
currently do. We will update it when practices change.
8+
9+
Scope
10+
=====
11+
12+
- This policy applies to AboutCode-operated sites and documentation, including
13+
the content served from this repository and its published builds
14+
(for example, on Read the Docs).
15+
- Individual AboutCode projects may run their own services (for example,
16+
demo deployments or APIs). Those services may have additional terms; check
17+
their documentation or service pages.
18+
19+
What we collect
20+
===============
21+
22+
- Web server logs created by our hosting providers (for example, the IP
23+
address, requested URL, timestamp, user agent). These are used for routine
24+
operations, troubleshooting, and abuse prevention.
25+
- Information you choose to share when you participate in our communities
26+
(for example, names and emails in commits, issues, or mailing lists, or
27+
profile information in chats). This data is public because you chose to
28+
publish it.
29+
- Optional metrics collected by the platforms we use (for example, GitHub or
30+
Read the Docs may record usage for security and performance). That data is
31+
governed by the platform's own privacy terms.
32+
33+
What we do not do
34+
=================
35+
36+
- We do not sell personal data.
37+
- We do not run advertising or behavioral tracking on the documentation site.
38+
- We do not use third-party analytics or cookies on the documentation site
39+
beyond what the hosting platforms require to operate.
40+
41+
How we use the data we have
42+
===========================
43+
44+
- Operate and secure the sites and community services.
45+
- Detect and mitigate abuse (for example, denial of service or spam).
46+
- Improve documentation quality based on aggregated, non-identifying usage
47+
trends made available by the hosting platforms.
48+
49+
Retention
50+
=========
51+
52+
- Hosting platforms control retention of their operational logs; these are
53+
typically short-lived and used for security and performance.
54+
- Public contribution data (for example, issues, commits, and mailing list
55+
archives) remains publicly visible as part of the project history unless
56+
removed for legal or safety reasons.
57+
58+
Sharing
59+
=======
60+
61+
- Hosting providers such as GitHub and Read the Docs process and may share data
62+
under their own terms and applicable law.
63+
- We may disclose data if required to comply with legal obligations or to
64+
protect the security of the project and its community.
65+
66+
Your choices and requests
67+
=========================
68+
69+
- You can avoid publishing personal data by limiting what you include in public
70+
contributions (for example, use a non-identifying email for commits).
71+
- You can request removal of personal data that appears in our documentation or
72+
project materials when feasible and legally permissible.
73+
- For analytics or cookies controlled by the hosting platforms, refer to their
74+
privacy settings and policies.
75+
76+
Contact
77+
=======
78+
79+
Questions or requests about this policy can be sent to **info@aboutcode.org**.
80+
81+
Last updated: 2026-01-18
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
##########################
2+
ABC-0000: Title goes here
3+
##########################
4+
5+
:Status: Draft
6+
:Created: 2026-01-18
7+
:Authors: Your Name <you@example.com>
8+
:Related: (issue/PR links)
9+
10+
Summary
11+
=======
12+
A short, reader-friendly summary (3–5 sentences) of the proposal.
13+
14+
Motivation
15+
==========
16+
- What problem are we solving?
17+
- Why now? Who benefits?
18+
19+
Proposal
20+
========
21+
- The concrete change being proposed (policies, standards, processes).
22+
- Scope: which AboutCode projects are affected?
23+
- Defaults and configuration (if applicable).
24+
25+
Impact
26+
======
27+
- Benefits and trade-offs.
28+
- Migration/rollout steps (if any).
29+
- Compatibility considerations for downstream projects.
30+
31+
Alternatives considered
32+
=======================
33+
- Briefly list rejected or non-chosen options and why.
34+
35+
Adoption and follow-up
36+
======================
37+
- How this will be enforced (lint, CI, docs, checklists, etc.).
38+
- Owners for ongoing maintenance, if needed.
39+
40+
Changelog for this ABC
41+
======================
42+
- 2026-01-18: Initial draft

0 commit comments

Comments
 (0)