Skip to content

Add airflow GitHub script#9270

Merged
kaxil merged 7 commits intoapache:masterfrom
astronomer:add-airflow-github-script
Jun 14, 2020
Merged

Add airflow GitHub script#9270
kaxil merged 7 commits intoapache:masterfrom
astronomer:add-airflow-github-script

Conversation

@jhtimmins
Copy link
Contributor

@jhtimmins jhtimmins commented Jun 13, 2020

This adds a Github counterpart to the airflow-jira script that generates comparisons between releases as well as changelogs.


Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Unit tests coverage for changes (not needed for documentation changes)
  • Target Github ISSUE in description if exists
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@kaxil kaxil force-pushed the add-airflow-github-script branch from 1ca1b53 to c8e930c Compare June 13, 2020 18:08
Comment on lines 149 to 150
if not commit:
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of this the PRs/Issues that are not merged yet won't show in the list

Comment on lines 143 to 148
for issue in milestone_issues:
commit = None
for event in issue.get_events():
# Checks if event is a commit getting merged into master.
if event.event == 'merged':
commit = event.commit_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop is time-consuming, takes a good amount of time on my machine to load all commits.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will push some improvements

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f93f0ee

kaxil added 2 commits June 13, 2020 22:59
- Fetch the commit in Master locally first without using Github API.
- If not present, find the `merge_commit_sha` using the Github API
@jhtimmins jhtimmins force-pushed the add-airflow-github-script branch from 9ab8c72 to a77f567 Compare June 14, 2020 01:51
@kaxil kaxil merged commit cef1df4 into apache:master Jun 14, 2020
@kaxil kaxil deleted the add-airflow-github-script branch June 14, 2020 16:07
kaxil added a commit that referenced this pull request Jun 17, 2020
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit cef1df4)
potiuk pushed a commit that referenced this pull request Jun 29, 2020
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit cef1df4)
kaxil added a commit that referenced this pull request Jul 1, 2020
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit cef1df4)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit cef1df4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants