Commit Graph

741 Commits

Author SHA1 Message Date
patchback[bot]
ce6bf70534 Only run pr_labeler on devel or stable-* branches (#2552) (#2604)
(cherry picked from commit a2067ce183)

Co-authored-by: Lyle McKarns <x1101@users.noreply.github.com>
2025-05-14 15:59:27 -04:00
Maxwell G
fab16919cb ci: use official create-github-app-token action (#2499)
We should use the official action for retrieving the token to use for
the issue/PR triage and dependency update workflows instead of the one
we were using before.
2025-04-09 13:15:57 +01:00
Don Naro
eb56ee1ab5 Bump wntrblm/nox from 2024.10.09 to 2025.02.09 (#2411)
Manual backport of 1200ee3bc6
2025-02-12 20:54:26 +01:00
Andrew Klychkov
6c842f5140 [Needs SC review] community/other_tools_and_programs.rst: update (#2284) (#2307)
* community/other_tools_and_programs.rst: update

* Add a link to Awesome Ansible for editors info

* Fix

* Update docs/docsite/rst/community/other_tools_and_programs.rst

Co-authored-by: Sandra McCann <samccann@redhat.com>

* Add SC as codeowners

* Fix

---------

Co-authored-by: Sandra McCann <samccann@redhat.com>
(cherry picked from commit fd41e24701)
2024-12-19 12:58:49 -05:00
Don Naro
07a3eef382 LICENSE and DCO in CODEOWNERS (#2207)
This change adds the LICENSE and DCO files to CODEOWNERS and
specifies the community docs maintainers team as owners.
The purpose of this change is to prevent any unintentional or
unauthorized modifications to these files. Resolves #2178
2024-11-20 15:00:52 -05:00
Don Naro
760838ab40 Bump wntrblm/nox from 2024.04.15 to 2024.10.09 (#2006) (#2043)
Bumps [wntrblm/nox](https://github.com/wntrblm/nox) from 2024.04.15 to 2024.10.09.
- [Release notes](https://github.com/wntrblm/nox/releases)
- [Changelog](https://github.com/wntrblm/nox/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wntrblm/nox/compare/2024.04.15...2024.10.09)

---
updated-dependencies:
- dependency-name: wntrblm/nox
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit e80f481e51)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-23 10:25:27 +01:00
Maxwell G
5b741c8850 [stable-2.16] support pip-compile check mode and remove pip-compile workflows from stable branch (#1948)
* nox pip-compile: support check mode

Support a custom --check flag to fail if pip-compile made any changes so
we can check that that lockfiles are in sync with the input (.in) files.

(cherry picked from commit cb295b1f78)

* ci: remove pip-compile workflows from stable branch

We don't need these on stable branches, as they can be triggered from
the devel branch with a custom base-branch input.
They were also missing backports of various fixes from the devel branch.
Rather than trying to backport all the changes, let's just remove it
from stable branches and make sure we do so after each branching.

(cherry picked from commit 0d8d26e92f)
2024-10-15 19:08:31 +01:00
Maxwell G
386ee1ec17 [stable-2.16] Backport pr_labeler changes (#1909)
* pr_labeler: improve create_boilerplate_comment logging

(cherry picked from commit 5730ba9a01)

* pr_labeler: add --force-process-closed flag

(cherry picked from commit 44ffe0f210)

* pr_labeler: add warning for porting_guides changes

This adds a warning message when PRs are created that edit
porting_guides by someone outside of the Release Management WG. These
files are automatically generated during the ansible release process and
should not be modified.

Fixes: https://github.com/ansible/ansible-documentation/issues/503
(cherry picked from commit d2e6625e8b)

* pr_labeler: use @release-management-wg team for porting_guide check

Instead of hardcoding the list of release managers, we can use the
Github API to retrieve the members of the
`@ansible/release-management-wg` team.

(cherry picked from commit dddfd7eb55)

* pr_labeler: exempt bots from porting_guide check

For example, patchback is not a release manager, but we still want it to
backport Porting Guide PRs.

(cherry picked from commit 746662c255)

* pr_labeler: improve porting_guide_changes template wording

Co-authored-by: Sandra McCann <samccann@redhat.com>
(cherry picked from commit 95ece7e9d6)

* pr_labeler: refactor new_contributor_welcome code (#990)

* pr_labeler: add GlobalArgs.full_repo property

* pr_labeler: refactor new_contributor_welcome code

As of https://github.com/ansible/ansible-documentation/issues/69, the
pr_labeler responds with a welcome message when an issue or PR is opened
by a new contributor. It turns out this never actually worked properly.

The previous method that relied on Github's `author_association` flag
did not work with the app token that the pr_labeler uses. This refactors
the code to figure out whether a user is a new contributor by
searching the list of issues and PRs.

Fixes: https://github.com/ansible/ansible-documentation/issues/204

* pr_labeler: address potential race condition

(cherry picked from commit 763815d1ad)

* Bump actions/setup-python from 4 to 5 (#966)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

(cherry picked from commit 466b1fdc43)

* pr_labeler: re-architect triager script (#1882)

This commit reorganizes the issue/PR triager script and updates the
workflow to run more efficiently.

- Make the script a proper Python package instead of an unwieldy single
  file
- Use locked dependencies and UV to decrease workflow runtime to under
  10 seconds.

(cherry picked from commit 7138e42716)
(cherry picked from commit 1cf9f7917b)

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-20 10:48:51 +01:00
patchback[bot]
a3a8c8b3d3 ci: avoid interpolating inputs into run: scripts (#740) (#1911)
Github Actions makes it easy to inject arbitrary shell code into Github
Actions scripts thanks to the way its templating language works.
This change mediates that issue by passing action inputs to the `run:`
scripts as env vars instead of using `${{ }}` expansions directly in the
script bodies.

The pr_labeler job is the only one that both runs on pull requests and
has access to secrets, but we don't interpolate anything other than
`github.event.number`, so that wouldn't allow any malicious person to
steal credentials.
reusable-pip-compile has access to secrets and accepts user input, but
only from trusted sources (i.e., developers who already have write
access to this repository) and can manually trigger workflows.
Still, it's a good to tighten this up.

(cherry picked from commit 5ebf9f1686)

Co-authored-by: Maxwell G <maxwell@gtmx.me>
2024-09-18 11:46:56 +01:00
dependabot[bot]
85eef7db71 Bump wntrblm/nox from 2024.03.02 to 2024.04.15
Bumps [wntrblm/nox](https://github.com/wntrblm/nox) from 2024.03.02 to 2024.04.15.
- [Release notes](https://github.com/wntrblm/nox/releases)
- [Changelog](https://github.com/wntrblm/nox/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wntrblm/nox/compare/2024.03.02...2024.04.15)

---
updated-dependencies:
- dependency-name: wntrblm/nox
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-24 09:26:18 +01:00
Don Naro
d89655750e Merge pull request #1174 from ansible/dependabot/github_actions/wntrblm/nox-2024.03.02
Bump wntrblm/nox from 2023.04.22 to 2024.03.02

(cherry picked from commit b19ac7a081)
2024-03-05 19:18:35 +00:00
Maxwell G
46cf38d645 ci pr_labeler: also use the app token for issues (#636)
`label.py pr` used the app token, but `label.py issue` still used the
old builtin GHA token. Oops!

(cherry picked from commit 47e2248f86)
2023-12-05 17:10:15 +00:00
Maxwell G
bc73518b17 ci pip-compile: remove duplicate environment key (#633)
We apparently need `secrets: inherit` in the caller but not `environment:`.

(cherry picked from commit 8a8b3b4285)
2023-12-05 17:10:15 +00:00
Maxwell G
df59a192b5 ci: use Github App token to authenticate (#621)
This uses the new Ansible Documentation Bot Github app to authenticate with
the Github API instead of the limited token built in to Github Actions.
The app token allows creating automatic dependency update PRs that
trigger CI properly.
A github-bot environment to store the BOT_APP_ID and BOT_APP_KEY
secrets.

(cherry picked from commit 1efa06b8a6)

Fixes: https://github.com/ansible/ansible-documentation/issues/382
2023-12-05 17:10:15 +00:00
patchback[bot]
5b456b292f [PR #668/8d847046 backport] Integrate docs checkers into the noxfile (#727)
**This is a backport of PR #668 as merged into devel
(8d8470468b).**

## Run docs checkers in the noxfile

This adds a checkers session to the noxfile to run docs checkers in
tests/checkers.py.
`nox -e checkers` runs all the docs checkers.
`nox -e 'checkers(rstcheck)'` and `nox -e 'checkers(docs-build)'` can
also be used to call individual checkers.

Simply executing `nox` will clone ansible-core, run the Python linters,
and the docs checkers (docs build test, rstcheck).
This makes it a lot easier for contributors,
as they can just run one command to make sure there changes will pass CI
before submitting a PR
and don't need to muck around with virtual environments and
dependencies.

##  Use nox checkers session in CI 

Now that the docs checkers are integrated into the noxfile, we can use
the nox session in CI instead of having to maintain separate CI
configurations for these jobs.

This change will cause branch protection to fail, as we no longer have
the docs-build and rstcheck CI jobs. I'll fix that when we're ready to
merge this.

Co-authored-by: Don Naro <dnaro@redhat.com>
2023-10-25 21:34:55 -05:00
patchback[bot]
dfb6ce6bb8 Rename tests/sanity.py to tests/checkers.py (#563) (#665)
This change renames tests/sanity.py -> tests/checkers.py.

The term sanity is not very clear and potentially offensive, and it's
already used by `ansible-test sanity` to mean something different.

(cherry picked from commit a986664e99)

Fixes: https://github.com/ansible/ansible-documentation/issues/530
Co-authored-by: Maxwell G <maxwell@gtmx.me>
2023-10-18 15:44:18 -05:00
patchback[bot]
43a1f24a7d Add RST spellcheck (#524) (#618)
* Add docs spelling check
* Add codespell config to noxfile and ci
* Update README with details on spelling checks

Co-authored-by: Maxwell G <9920591+gotmax23@users.noreply.github.com>
(cherry picked from commit 2f8810b255)

Co-authored-by: Don Naro <dnaro@redhat.com>
2023-10-17 20:39:50 +01:00
patchback[bot]
89d7058ae8 build(deps): bump actions/checkout from 3 to 4 (#372) (#403)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 271e50083a)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 20:12:49 +02:00
Don Naro
65d4d8bae4 use requirements lockfile in ci workflow (#328) 2023-08-24 11:04:16 +01:00
Maxwell G
0ad5af05de ci: fix reusable-pip-compile changed-files input type (#314) 2023-08-21 13:43:39 -05:00
Maxwell G
c074d63bda ci: make nox a reusable workflow
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
2023-08-21 13:38:42 -05:00
Maxwell G
70775c5180 ci: enable workflow_dispatch
This allows running the tests on an adhoc basis.
2023-08-21 13:38:42 -05:00
Maxwell G
d73b01e9c7 ci: add workflow to refresh pinned dependencies
This workflow updates pinned dependencies and files a PR if necessary.
For now, it only applies to the devel branch.

Co-authored-by: Don Naro <dnaro@redhat.com>
2023-08-21 13:38:42 -05:00
Maxwell G
2f5f79ea6b ci: add workflow to run nox linters 2023-08-21 13:38:42 -05:00
Maxwell G
059db40867 add dependabot config for updating Github Actions
This is copied from antsibull.
2023-08-21 13:38:42 -05:00
Maxwell G
09f8d8dbdb ci: don't run push action on patchback branches (#212) 2023-07-31 19:24:16 +01:00
Maxwell G
1f1252d356 labeler: pass Github Action event data to script
This way, the script can take action based on specific events when that
data is available.
2023-07-31 14:52:56 +01:00
Maxwell G
dd02af13e6 ci labeler: allow running via workflow_dispatch (#203)
In some cases, it may be necessary to forcibly re-run the triager for an
issue.
2023-07-30 17:11:55 -05:00
Maxwell G
a128596956 ci labeler: print PR event information (#202)
Using an environment variable prevents quoting and injection issues.
2023-07-30 16:52:24 -05:00
Maxwell G
6000a6c991 ci labeler: remove Print event information step (#170) 2023-07-25 13:35:39 -05:00
Maxwell G
b45cdeed96 ci labeler: fix Print event information step (#166) 2023-07-25 12:13:05 -05:00
Maxwell G
0c56c51999 Add Github Action to label issues and PRs (#118) 2023-07-25 11:20:26 -04:00
Felix Fontein
e52c20ee95 Add patchback config. (#50) 2023-07-12 21:14:35 +02:00
Maxwell G
8887cc01e6 Add CODEOWNERS for docs owned by the Steering Committee (#70) 2023-07-11 09:16:50 +01:00
Matt Clay
2b2fda97ba Add sanity tests (#1) 2023-06-09 17:19:47 -07:00
Matt Davis
057da896a9 docs-build and rstcheck sanity GHA workflow 2023-06-09 17:19:06 -07:00
Matt Davis
441fd01efb remove all non-docsite contents 2023-06-09 17:18:33 -07:00
Matt Davis
5e131a96c0 bump devel to 2.16.0.dev0 (#80390) 2023-04-03 15:26:32 -07:00
Bobby Wertman
45df14a2e0 Fix spelling of "triple" in Issue Templates (#79628) 2022-12-27 02:22:32 +01:00
Matt Martz
f8e8326437 Bump devel to 2.15.0.dev0 (#78817) 2022-09-20 14:04:29 -05:00
Brian Coca
a01815f3ce added note to omit -t all (#77956) 2022-06-03 05:19:45 +10:00
Brian Coca
f6ac2b4f93 Update config dumping info to include 'all info' (#77802) 2022-05-17 17:19:56 +02:00
Matt Clay
50d4cf931c Start of 2.14 development cycle. (#77378)
* Delete old changelog fragments.
* Add 2.14 changelog stub.
* Add porting guide.
* Update version and codename.
* Add temporary deprecated version ignores.
2022-03-28 16:07:24 -07:00
Sandra McCann
23414869e2 update Edit on Github hint (#76341) 2021-11-22 08:28:34 -08:00
Matt Davis
bb59d9afe9 bump devel to 2.13 (#75833) 2021-09-30 09:18:32 -05:00
Matt Clay
99a79e1969 ansible-test - Move code from _data to _util. (#75495)
* Update paths to match relocated files.
* Update ansible-test symlink paths.
* Update path classification.
* Update MANIFEST.in
* Update sanity test context paths.
* Update sanity ignores.
* Update shebang sanity test.
* Update configure-remoting-ps1 sanity test.
* Update BOTMETA.yml to reflect new paths.
* Update paths in collection loader comments.
* Update Makefile for ansible-test.
* Update docs.
* Add changelog fragment.
2021-08-12 15:07:06 -07:00
Sviatoslav Sydorenko
8502c23028 Fix links to the collections org in doc & FR forms 2021-04-13 16:23:26 +02:00
Sviatoslav Sydorenko
9f002d9f60 📝 Make issue forms verbose and helpful (#74185)
Co-authored-by: John R Barker <john@johnrbarker.com>
Co-authored-by: Sloane Hertel <shertel@redhat.com>
2021-04-13 15:52:03 +02:00
Sviatoslav Sydorenko
ecd69ed36e Use render for code blocks in issue forms 2021-04-06 18:02:41 +02:00
Sviatoslav Sydorenko
282dd1bbc7 Drop deprecated issue_body from issue forms
This change removes the deprecated attribute and also adds an explicit
textarea at the end of the docs report form to replace it.
2021-04-06 17:06:05 +02:00