Apache Airflow
A platform to programmatically author, schedule and monitor workflows.
Mostly friendly. Welcome, with extra rules.
Apache Airflow generally permits using generative AI tools to help create pull requests, provided contributors review and understand the generated code, run checks and tests, disclose AI use in the PR description, follow coding standards, and remain responsible for licensing and the final code. Blind copy-pasting is prohibited, and maintainers may close non-compliant PRs.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Mostly friendly
- AI use must be disclosed
- Contributor takes full responsibility
- A human must review the output
- Output must be license-compatible
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- No policy
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- No policy
What is allowed and what is not
Code contributions
Autocomplete · Allowed with conditions
Autocomplete and other AI help that results in submitted code is allowed if the code is reviewed and understood, checks and tests are run, AI use is disclosed in the PR, and responsibility and licensing are accepted.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Small fixes · Allowed with conditions
AI-assisted small or targeted code changes are allowed under the same review, testing, disclosure, responsibility and licensing requirements.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Large or generated changes · Allowed with conditions
AI-assisted large or mostly generated changes are allowed; Airflow sets no AI-specific size cap, but the contributor must review and test them, disclose AI use, and remain responsible and licensing-compliant.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Mechanical changes · Allowed with conditions
AI-assisted repetitive or mechanical changes are allowed under the same review, testing, disclosure, responsibility and licensing requirements.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Tests · Allowed with conditions
AI-written tests and benchmarks are allowed under the same review, testing, disclosure, responsibility and licensing requirements.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Build and CI · Allowed with conditions
AI-written build, CI or other infrastructure code is allowed under the same review, testing, disclosure, responsibility and licensing requirements.
- Disclose AI use: State in the PR description that Gen-AI tools were used.
- Take full responsibility: Be prepared to explain and justify AI use if asked; final responsibility for the code remains with the contributor.
- Review AI output first: Review and understand generated code, run relevant static checks and tests locally, and remove unrelated AI-introduced changes.
- License-safe output: Comply with the project's licensing terms and applicable laws and regulations.
9 quotes
Generally, it's fine to use Gen-AI tools to help you create Pull Requests for Apache Airflow as long as you adhere to the following guidelines:
05_pull_requests.rst Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Ensure that you review and understand all code generated by Gen-AI tools before including it in your PR - do not blindly trust the generated code.
05_pull_requests.rst Make sure to run all relevant static checks and tests locally to verify that the generated code works as intended and does not introduce any issues.
05_pull_requests.rst State in your PR description that you have used Gen-AI tools to assist in creating the PR.
05_pull_requests.rst Be prepared to explain and justify the use of Gen-AI tools if asked by project maintainers or reviewers.
05_pull_requests.rst Remember that the final responsibility for the code in your PR lies with you, regardless of whether it was generated by a tool or written by you.
05_pull_requests.rst By contributing code generated by Gen-AI tools, you agree to comply with the project's licensing terms and any applicable laws and regulations.
05_pull_requests.rst If the PR was created with the assistance of generative AI tools, the description must include a disclosure (see `Gen-AI Assisted contributions`_ below).
05_pull_requests.rst Other code contributions rule · Allowed with conditions
Contributors using Gen-AI tools to create Airflow pull requests must follow the Apache Software Foundation's Generative Tooling guidelines.
Quote
Follow the `Apache Software Foundation (ASF) Generative Tooling guidelines <https://www.apache.org/legal/generative-tooling.html>`__.
05_pull_requests.rst Other code contributions rule · Allowed with conditions
Generated code must adhere to Airflow's coding standards and best practices.
Quote
Make sure that the generated code adheres to the project's coding standards and best practices described above
05_pull_requests.rst Other code contributions rule · Allowed with conditions
AI-assisted changes must be reviewed for unrelated edits, and those edits removed before review; relying on maintainers to find them is unacceptable.
2 quotes
Review your code to make sure it does not contain unrelated changes. Often Gen-AI tools might introduce changes that are not related to the problem you are trying to solve.
05_pull_requests.rst Such unrelated changes should be removed from the PR before it is submitted for review. Relying on maintainers to spot such unrelated changes is unfair and adds extra burden on them.
05_pull_requests.rst Other code contributions rule · Not allowed
Blindly copying and pasting code from Gen-AI tools is prohibited and can lead maintainers to close the PR and block the contributor.
2 quotes
Blindly copy & pasting code from Gen-AI tools is detrimental as it might introduce security and stability risks to the project. Maintainers that spot such behaviours will have no choice but to close the related PRs.
05_pull_requests.rst It adds extra burden on the maintainers and doesn't help the project. The contributor reputation is also impacted as maintainers will lose confidence and might block the user from making further contributions.
05_pull_requests.rst Other code contributions rule · Allowed with conditions
Maintainers may close a PR, or all of a contributor's open PRs, for not following the Gen-AI guidelines; repeated disregard is handled through the project's Community escalation process.
2 quotes
When a contributor does not follow these guidelines, maintainers may close the PR (or all of that contributor's open PRs) with a comment pointing to this section of the documentation, so that maintainer review time is not spent on unvetted Gen-AI-generated code.
05_pull_requests.rst Repeated disregard of the Gen-AI guidelines is treated the same way as any other sustained disruptive behaviour toward the project
05_pull_requests.rst
Not covered by the policy (7)
Documentation, Translating the software, Images and media, Research and learning, Checking own work, AI as author, Autonomous agents.
Issues & bug reports
The policy does not cover this area.
AI-written text
The policy does not cover this area.
Sources
- 05_pull_requests.rstgithub.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rstSnapshot 9 Nov 2026